finally fixing ipxe dns bug.
This commit is contained in:
parent
683fdc89b0
commit
334cf89cb5
@ -5,4 +5,4 @@ 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'
|
||||
append_nameservers='4.2.2.1 4.2.2.2 4.2.2.3'
|
@ -39,8 +39,8 @@ do
|
||||
ifconfig ${i} down
|
||||
fi
|
||||
netctl restart ${i} > /dev/null 2>&1
|
||||
cat /etc/resolvconf.conf.failover > /etc/resolvconf.conf
|
||||
resolvconf -u
|
||||
#cat /etc/resolvconf.conf.failover > /etc/resolvconf.conf
|
||||
#resolvconf -u
|
||||
done
|
||||
}
|
||||
|
||||
@ -50,3 +50,10 @@ then
|
||||
fuck_you_gimme_net
|
||||
systemctl restart openvpn@*
|
||||
fi
|
||||
|
||||
# And lastly, do we need to set custom DNS servers?
|
||||
host -s -W1 bdisk.square-r00t.net | egrep -q '^bdisk\.square-r00t\.net\ has\ address'
|
||||
if [[ "${?}" != "0" ]];
|
||||
then
|
||||
resolvconf -u
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user