Trouble with resolving hostnames on CentOS using Bind

Posted by cabaret on Server Fault See other posts from Server Fault or by cabaret
Published on 2011-11-12T12:01:03Z Indexed on 2011/11/12 17:54 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

I'm taking a course on server administration at school and I have managed to set up virtual hosting in apache and a dns server on a virtual machine. However, I have now set up an old pc to run CentOS and I'm trying the same on that box.

The problem I ran into now is that I can't resolve hostnames from the linux box. I have set up the nameserver in /etc/resolv.conf to the IP of the CentOS machine, but when I try for example

ping google.com I get ping: unknown host google.com

However, when I do ping 66.102.13.105 (which is the Google IP, figured that out by pinging on my mac) I get:

PING 66.102.13.105 (66.102.13.105) 56(84) bytes of data.
64 bytes from 66.102.13.105: icmp_seq=1 ttl=52 time=15.5 ms

Slightly confused why this is happening. Could it be because of my router sitting in between the linux machine and the cable modem? It's a D-Link somethingsomething.

Thanks in advance

© Server Fault or respective owner

Related posts about dns

Related posts about centos