dns resolution: nslookup/other command

Barry Margolin barmar at genuity.net
Fri Jul 6 18:49:31 UTC 2001


In article <9i5004$9nu at pub3.rc.vix.com>, Vi. <viper at gmx.fr> wrote:
>I have a problem with dns resolution. 
>The dns resolution works fins with nslookup but doesn't work with the
>other bash commands (such as ping).
>
># nslookup host.domain.com
>  server: ns
>  address: 192.168.1.2
>
>  name: host.domain.com
>  address: 192.168.1.10
>
>So nslookup works but:
>
># ping host.domain.com
>ping: unknown host host.domain.com

Is this a Solaris system?  Make sure you have "dns" in the "hosts" line of
/etc/nsswitch.conf.

-- 
Barry Margolin, barmar at genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


More information about the bind-users mailing list