vm/network: ignore IPv6 DNS entries in /etc/resolv.conf

This commit is contained in:
Marek Marczykowski 2012-01-30 13:41:41 +01:00
parent 4a0df35815
commit 18f32efe90

View File

@ -14,7 +14,7 @@ source /var/run/qubes/qubes_ns
if [ "X"$NS1 = "X" ] ; then exit ; fi
iptables -t nat -F PR-QBS
FIRSTONE=yes
grep ^nameserver /etc/resolv.conf | head -2 |
grep ^nameserver /etc/resolv.conf | grep -v ":.*:" | head -2 |
(
while read x y z ; do
addrule "$y"