| ||||||||
Line: 10 to 10 | ||||||||
---|---|---|---|---|---|---|---|---|
Can ping ip addresses, but not names | ||||||||
Changed: | ||||||||
< < |
I had a linux machine configured with a static 192.* ip address. When I tried pinging ip addresses outside my network (ie on the internet) it was fine, but when I tried pinging the same ip but using it's DNS name, it failed. The answer was to add the ip address of my router to /etc/resolv.conf: | |||||||
> > |
I had a linux machine configured with a static 192.* ip address. When I tried pinging ip addresses outside my network (ie on the internet) it was fine, but when I tried pinging the same ip, but using it's DNS name, it failed. The answer was to add the ip address of my router to /etc/resolv.conf: | |||||||
nameserver 192.168.1.1
If other nameservers appear in the list, make sure this server is above the others.
| ||||||||
Changed: | ||||||||
< < |
The ip address of your router (or nameserver) maybe different. | |||||||
> > |
Note: the ip address of your router (or nameserver) maybe different. | |||||||