Discussion Locked

Not resolving internally

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi.

I just installed a Linux 7.2 box and I can't get it to resolve names within our network. Pinging "linux.xyz.com" or "linux" returns a "bad ip address" on windows machines, and pinging a machine within our network from the linux box by name returns "unknown host". Our primary and secondary DNS servers are SCO boxes we're using bind. The linux box is resolving names outside of the network perfectly. For now, resolv.conf shows similar to the following:
nameserver 38.166.146.2
domain xyz.com

Named is not running on this machine as this will not be a DNS server.

Any help would be appreciated. Thanks!

5 replies

by rapidad

what does your /etc/hosts file say???
how about your /etc/defaultrouter ??
and last but not least your
/etc/nsswitch.conf
should have a line in it saying
hosts files dns
which means it checks files (hosts) first and DNS second. this can be changed to
hosts dns files
if the default gateway (/etc/defaultrouter) is wrong it will time out waiting

by les

If you already have a primary and secondary name server then why not let it alone do all your DNS lookups? You should set your new linux box to point to your current dns servers (i.e resolv.conf has nameserver primaryscobox.xyz.com). These servers should have records for all your local servers and be set to forward any external queries to 38.166.146.2.
These any local queries get resolved without a hitch and any external queries go through the proper channels.

This discussion is closed to new replies.