Comment 313 for bug 417757

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 417757] Re: [regression] all network apps / browsers suffer from multi-second delays by default due to IPv6 DNS lookups

Hello,

Neil [2011-02-01 7:32 -0000]:
> I would be interested if it works for other people.

Yes, for me as well.

> But I have to do this each time I start up.

I created a script for that:

$ cat /etc/network/if-up.d/0nameserver
#!/bin/sh
grep -q Speedport_W_303V_Typ_B /etc/resolv.conf || exit 0
cat <<EOF > /etc/resolv.conf
nameserver 217.0.43.81
nameserver 217.0.43.65
EOF

The first line checks if I'm in my "home" network, as I only want to apply this
workaround when I'm at home.

(The script needs to be executable)

--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)