DNS and Sockets

Kenneth Porter shiva at well.com
Fri Feb 12 11:00:18 GMT 1999


On Sat, 13 Feb 1999 01:30:11 +1100, Paul Sherwin
<psherwin at telinco.co.uk> wrote:

>Linux sockets seem to react badly to DNS problems - an inability to resolve
>a name causes the socket opening to hang for about 2 minutes before
>continuing.

Sockets do not use names, just IP addresses, so they can't be affected
by DNS outages. *Applications* use DNS (a socket-based service) to
lookup a name and get an IP number to plug into a socket call. If the
DNS is inaccessible, then this lookup step is what takes a long time.

There may be a named.conf setting that will reduce the timeout on a DNS
request. Look at the BIND documentation.


Ken
mailto:shiva at well.com
http://www.well.com/user/shiva/

http://www.e-scrub.com/cgi-bin/wpoison/wpoison.cgi (Death to Spam!)



More information about the samba mailing list