Domains resolve to IP addresses, but the server can't seem to access the outside world
Posted: 2010/07/08 21:35:26
I'm having a strange issue with DNS resolution and lack of access to the outside world. I just installed CentOS 4.8 and haven't done anything with it yet aside from setting up a user and enabling SSH. I can log into the server via SSH on the local network, ping any server/machine on the local network and resolve domains. What I can't seem to do is access servers outside the local network.
The situation seems to be same if I define a static IP vs using DHCP.
[code]
$ nslookup google.com
Server: 10.254.2.5
Address: 10.254.2.5#53
Non-authoritative answer:
Name: google.com
Address: 74.125.47.147
Name: google.com
Address: 74.125.47.99
Name: google.com
Address: 74.125.47.103
Name: google.com
Address: 74.125.47.104
Name: google.com
Address: 74.125.47.105
Name: google.com
Address: 74.125.47.106
[/code]
Where 10.254.2.5 is a Windows 2003 server acting as an Active Directory/DNS/DHCP server.
[code]
$ ping google.com
PING google.com (74.125.47.106) 56(84) bytes of data.
[/code]
It just hangs here.
[code]
$ cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search <companyname>.local
nameserver 10.254.2.5
nameserver 10.254.2.124
[/code]
Where company name is actually our company name. I don't have angle brackets in the conf file.
I've tried completely disabling the firewall, and configuring the firewall to allow HTTP traffic, but that didn't seem to have any effect.
The situation seems to be same if I define a static IP vs using DHCP.
[code]
$ nslookup google.com
Server: 10.254.2.5
Address: 10.254.2.5#53
Non-authoritative answer:
Name: google.com
Address: 74.125.47.147
Name: google.com
Address: 74.125.47.99
Name: google.com
Address: 74.125.47.103
Name: google.com
Address: 74.125.47.104
Name: google.com
Address: 74.125.47.105
Name: google.com
Address: 74.125.47.106
[/code]
Where 10.254.2.5 is a Windows 2003 server acting as an Active Directory/DNS/DHCP server.
[code]
$ ping google.com
PING google.com (74.125.47.106) 56(84) bytes of data.
[/code]
It just hangs here.
[code]
$ cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search <companyname>.local
nameserver 10.254.2.5
nameserver 10.254.2.124
[/code]
Where company name is actually our company name. I don't have angle brackets in the conf file.
I've tried completely disabling the firewall, and configuring the firewall to allow HTTP traffic, but that didn't seem to have any effect.