resolver problem

Uwe Doering gemini at geminix.org
Wed Jun 11 23:57:07 PDT 2003


exec wrote:
> It seems I have a problem with resolver.
> [...]
> 
> /etc/resolv.conf is right:
> 
> domain my.uni.org
> nameserver xx.xx.xx.xx
> nameserver yy.yy.yy.yy
> nameserver zz.zz.zz.zz
> 
> All nameservers are working properly on every other machine. I deleted 
> host.conf file (which was also right) and nothing changes.

What makes you think that deleting host.conf was the right thing to do?

> Commands host, nslookup, and dig all work very well for both internal an
> external sites. But ping for example fails:
> 
> cannot resolve www.xxx.yy: Unknown host
> [...]

Host, nslookup, and dig use DNS automatically and exclusively, so there 
doesn't have to be any directive in the system telling them to do so. 
Most programs, however, use gethostbyname() etc. and need the 'bind' 
entry in host.conf, which you just removed by deleting this file.  If 
you restore the file DNS lookups will work.

    Uwe
-- 
Uwe Doering         |  EscapeBox - Managed On-Demand UNIX Servers
gemini at geminix.org  |  http://www.escapebox.net



More information about the freebsd-questions mailing list