RE: dnsserver problem (and one for the FAQ)

From: Armistead, Jason <>
Date: Mon, 22 Dec 1997 01:53:00 -0500


Check out your /etc/nsswitch.conf file.

It determines the order of searches for naming (amongst other things).
You might only have it set up to allow NIS and HOSTS files to work.
Here is an excerpt from my file (Solaris 2.5.1)

# /etc/nsswitch.nis:
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet"

# the following two lines obviate the "+" entry in /etc/passwd and
passwd: files nis
group: files nis

# consult /etc "files" only if nis is down.
hosts: nis dns [NOTFOUND=return] files

Note the word "dns" in the hosts line. It's not there in the standard
NIS setup (notice the TEMPLATE file name /etc/nsswitch.nis is at the top
- it's copied to nsswitch.conf and there are about 3 templates to choose

Give that a whirl

PS: You'll find that although nslookup works (bypassing nsswitch.conf
altogether), that just like your failing dnsserver, utilities such as
ping probably don't work either, because it calls Solaris system
routines which use nsswitch.conf.

PPS: This is a FAQ-able question for Solaris operating system problems



> ----------
> From: David Cragg[]
> Sent: Thursday, 18 December 1997 12:25
> To:
> Subject: dnsserver problem
> Hi,
> I am trying to run Squid 1.1.18 on Solaris 2.6.
> The install was going fine right up to the DNS
> part. The cache.log says:
> FATAL: ipcache_init: DNS name lookup tests failed.
> I have tried the suggestions in the FAQ and my configuration
> of resolv.conf seems fine. In fact using Sun's nslookup
> I get results from my DNS server running on another server.
> When I run tests against dnsserver I get:
> # echo | ./dnsserver
> $fail
> $message DNS Domain '' is invalid: Host not found
> (authoritative)
> $end
> Does anybody have any ideas what might be going wrong here?
> Thanks in advance,
> David.
Received on Sun Dec 21 1997 - 21:20:57 MST

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