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 18.104.22.168 (which is the Google IP, figured that out by pinging on my mac) I get:
PING 22.214.171.124 (126.96.36.199) 56(84) bytes of data. 64 bytes from 188.8.131.52: 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