fixing some dns bugs if running in VM
This commit is contained in:
parent
951333ae10
commit
683fdc89b0
8
extra/pre-build.d/etc/resolvconf.conf.failover
Normal file
8
extra/pre-build.d/etc/resolvconf.conf.failover
Normal 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'
|
@ -39,6 +39,8 @@ do
|
||||
ifconfig ${i} down
|
||||
fi
|
||||
netctl restart ${i} > /dev/null 2>&1
|
||||
cat /etc/resolvconf.conf.failover > /etc/resolvconf.conf
|
||||
resolvconf -u
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user