#!/bin/bash
cd /etc
echo "备份文件"
mv resolv.conf  resolv.conf_back
echo "创建新文件"
touch resolv.conf
echo "change-dns-config"
echo "# Generated by NetworkManager" > resolv.conf
echo "nameserver 172.16.88.252" > resolv.conf
echo "nameserver 192.168.5.100" > resolv.conf
echo "nameserver 223.5.5.5" > resolv.conf