fixing some dns bugs if running in VM

This commit is contained in:
brent s. 2015-07-03 15:42:27 -04:00
parent 951333ae10
commit 683fdc89b0
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# Configuration for resolvconf(8)
# See resolvconf.conf(5) for details

resolv_conf=/etc/resolv.conf
# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
#name_servers=127.0.0.1
name_servers='4.2.2.1 4.2.2.2 4.2.2.3'

View File

@ -39,6 +39,8 @@ do
ifconfig ${i} down ifconfig ${i} down
fi fi
netctl restart ${i} > /dev/null 2>&1 netctl restart ${i} > /dev/null 2>&1
cat /etc/resolvconf.conf.failover > /etc/resolvconf.conf
resolvconf -u
done done
} }