Is bind listed in /etc/host.conf ?
Hi all,
I have a small box runing CentOS 4.2 here at school. This is a minimal, text based install. The system works fine, and I can ping and ssh to it from any workstation on the LAN, however, I do not seem to have DNS (i.e. it works from the IP adress, not from the Hostname.
DNS is handled by the router, but I think I am missing something.
Any ideas?
TANSTAAFL
Is bind listed in /etc/host.conf ?
If its an isolated LAN, you probably have no DNS. Can check by doing a. If you think you should have DNS, make sure /etc/resolv.conf contains entries. Otherwise, populate your /etc/hosts on each machine with all the others IPs and names.Code:host www.google.com
Yes.Originally Posted by Compunuts
order hosts,bind
TANSTAAFL
Yeah, I have /etc/resolv.conf as follows:Originally Posted by Outlaw
nameserver 192.168.9.105
nameserver 192.168.9.1
The second one is the default gateway/router.
Host www.google.com works fine.
TANSTAAFL
OK, if I try to ping the DNS server, I get a host unreachable result. From the CentOS box -- I can ping the DNS from XP just fine.
TANSTAAFL
Does netstat -rn return a gateway?
If not, then see if you can extract the gateway to use from XP box and put it in the Linux one.Code:netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0
If this is a small LAN then chances are, they themselves wont be in DNS. You'll have to depend on hosts files.
whoops, I didnt see your other post.
So it's probably that these machines themselves are not in DNS and you have to rely on hosts files
edit-
it's odd though that you cant ping the dns servers but you can resolve internet addresses.
Last edited by Outlaw; 04-07-2006 at 03:48 PM.
I can't resolve them from a browser or ping an address by name -- only by IP address. It's weird. I must be missing something.Originally Posted by Outlaw
TANSTAAFL
Bookmarks