DNS Lag?

Kevin Darcy kcd at daimlerchrysler.com
Thu Jan 2 17:46:16 UTC 2003


Hmmm, not quite. The lag happens because DNS tries its best to resolve
names and when you're configured to resolve names over the Internet --
which is how you're configured by default -- and you're not connected to
the Internet, then named just tries and tries and tries and has no
success. This kind of failure takes time to complete though.

What I think Simon meant is that you could speed up the timeout by
defining your own local copy of the root zone, which would be basically
empty, so that things will fail immediately with a "no such name" error.
Then, you'd have to have some way of switching between that "bogus" root
zone and the real one, when you connect or disconnect from the Internet.


- Kevin

Andrey Tapkin wrote:

> You mean that this lag happens because of root-servers? Right?
>
> "Simon Waters" <Simon at wretched.demon.co.uk> =D3=CF=CF=C2=DD=C9=CC/=D3=CF=
=CF=C2=DD=C9=CC=C1 =D7 =CE=CF=D7=CF=D3=D4=D1=C8
> =D3=CC=C5=C4=D5=C0=DD=C5=C5: news:av0k36$5jp9$1 at isrv4.isc.org...
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: RIPEMD160
> >
> > Andrey Tapkin wrote:
> > | Good Day!
> > | I've installed bind 9.2.1 on my home computer for testing sites.
> > | It's offline. When some sites try to load ads from external sites
> > | (internet),
> > | it is a lag for 10-15 sec., while dns tries to reach/find
> > those sites.
> > | How can i turn this off or set timeout to 1-2 sec instead of
> > 10-15? Help,
> > | plz.
> >
> > By default BIND 9 expects to be on the Internet, it has a built
> > in list of hints for the root name-server, and so has an implied
> > 'zone "." { type hint; }' entry.
> >
> > You could place a 'zone "." { type master ; }' entry.
> >
> > Rather than alter BIND you could also check your operating
> > system resolver settings - on mine this would be timeout and
> > attempts in /etc/resolv.conf but YMMV.
> >
> > Ultimately perhaps you should test online, I hate it when a page
> > is broken because of broken advert markup, guess I want quality
> > assurance about broken advertising markup in case a cracker
> > places an "advert" with a broker.
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.2 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> >
> > iQIeBAEUAwAGBQI+E9I0AAoJEDtriE+y8e2ezaAH/jacmcxsU+MMx+3eykTI5RFM
> > kdjx4z3Y++MKhan2fMQGzUyo4RVM3MqZH4nPUJjR8KabGxWOUSrWjxfv84vHK/g3
> > hU9cHnBjCKHqUxzMTMr9C8pq91onEuk+zqaXH8gnHNo/0HtWImkyElaFIPnMmcHb
> > KIjsxjsGpvOgO/YRvJy9iPIa12ogD1b00iqwIw5Hoa5w2A6qhS34azCKGxJQFhSF
> > zZq+TYCHOM0vmeV434h1GSmWH4JguBZRfWA2shLl8WVWerPoc+2L6maMBQ9IjmiL
> > pvEE0K5zjOpcUMe/zrxNz3M3fQqMzyDBJZNIm6jlaOhS8WTRc4YDS+gltxD0hrsH
> > /RsOV4UJMOpBr3gVKeNf6fJePZ3tMHV8M+0n3aNKrVH4lDPat/LeH2ozFZHGj9fV
> > djdbA5d3R3isyjwGJ8yTgm66hC9PaxZLZCn+ddpImTplDDdgOQe3mVsaME0leXzg
> > 892Cja3BTiZDcKUciEycey5Vmby+A/d4ygUwJWINLhFVxQIrmnS0r0w1y6sqhPa8
> > QQPmwTvw/xm3OTcqA76qQuCs3t8dTOh9KF3ZhUJOh2GB9IRnYWled6F69TR7dNjG
> > cJqdzbOt3BZZDp9EKnCh0LKqEXgoA1Ri5ABY9JFSTQZ9hxOzjr7J6A2IUOwaQ72p
> > 5h3JTWle+imEYE9FC4zdeFk=3D
> > =3DMkqR
> > -----END PGP SIGNATURE-----
> >
> >



More information about the bind-users mailing list