Re: dnsserver probs with two network interfaces

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 28 Nov 1998 01:24:17 +0100

Adalto Silva Correia Filho wrote:

> > $fail DNS Domain 'www.yahoo.com' is invalid: Host not found (authoritative).

> > ... and now 'nslookup':
> > Non-authoritative answer:
> > Name: www7.yahoo.com
> > Address: 204.71.200.72
> > Aliases: www.yahoo.com

> > Any ideas what's going wrong?? Thanks for the help!

* dnsserver uses your OS gethostbyname() call.
* nslookup calls the DNS resolver libraries directly.

Some OS:es has a /etc/nsswitch.conf file that specifies with
nameservives gethostbyname() and other lookups should use. Some OS:es
gethostbyname is more buggy than other....

If you have libresolv and it defines res_gethostbyname, then you could
try the following hack to force Squid to use DNS directly:

  edit include/config.h and add the following after the line saying
"#define _CONFIG_H_"

#define gethostbyaddr res_gethostbyaddr
#define gethostbyname res_gethostbyname

---
Henrik Nordstrom
Spare time Squid hacker
Received on Fri Nov 27 1998 - 17:10:37 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:23 MST