PDA

View Full Version : [ubuntu] Not able to ping www.google.com or 72.14.213.147 or any external sites from pc



anupindi007
October 28th, 2009, 10:04 PM
Hi,
Problem: Not able to ping( www.google.com (http://www.google.com) (but resolves ip 72.14.213.147) or Browse any external sites.

a. able to ping from pc to Server - eth0
b. able to ping from pc to Server - eth1
c. able to browse Internet from Server
d. while trying to ping www.google.com (http://www.google.com)
--says: pinging www.1.google.com (http://www.1.google.com)[72.14.213.103] with 32 bytes of data: Request time out.


Setup:
PC --> Router > Server(eth1(internal) ->eth0(external), DNS/firewall --> Internet


Study Notes:
Server eth0 IP: 10.10.10.95 subnet 255.255.255.0
Server eth1 IP: 10.5.5.1 subnet 255.255.255.224

Router ip external: 10.5.5.10
Router ip internal: 172.16.2.1
Router Default GW : 10.5.5.1

PC IP: 172.16.2.10

# route -n
Kernel IP routing table
Destination ---- Gateway ----Genmask ------------Flags Metric Ref Use ----Iface
10.5.5.0 ------ 0.0.0.0 ----255.255.255.224 ----U 0 0 0 ----------------------- eth1
10.1.10.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 1000 0 0 ------------------ eth0
0.0.0.0 --------10.1.10.1---0.0.0.0 ------------------UG 100 0 0 ------------------ eth0

#cat /etc/resolv.conf
nameserver 10.1.10.1


# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 10.5.5.1
netmask 255.255.255.224

#cat /etc/dhcp3/dhcpd.conf
...
A slightly different configuration for an internal subnet.
subnet 10.5.5.0 netmask 255.255.255.224 {
range 10.5.5.10 10.5.5.15;
option domain-name-servers 10.10.10.1;
# option domain-name "internal.example.org";
# option routers ;
# option broadcast-address 10.5.5.31;
default-lease-time 864600;
max-lease-time 60480;
}

any help is very much appreciated.
Thanks,
Srinivas

anupindi007
October 28th, 2009, 11:15 PM
Updates:
From pc while typing > nslookup www.google.com (http://www.google.com)
*** Can't find server name for address 10.5.5.1 : Non-existent domain
*** Default servers are not available
Server: Unknown
Address: 10.5.5.1

Non-authoritative answer:
Name: www.1.google.com (http://www.1.google.com)
Addresses: 74.125.127.147,72.14.213.104,...
Aliases: www.google.com (http://www.google.com)

> ping www.google.com (http://www.google.com)
Pinging www.1.google.com (http://www.1.google.com) [72.14.213.104] with 32bytes of data:
Request timed out.
Request timed out.

Note:
a. 10.5.5.1 is Server eth1 local ip and i am able to ping too.

b. DNS server is running on 10.5.5.1(on eth1) and where is the problem ???:(
i # sh dnsmasq status
* Checking DNS forwarder and DHCP server dnsmasq * (running)

ii #sh dnsmasq stop ; ping www.yahoo.com
Pinging request could not find host www.yahoo.com . Please check the name and try again.

iii #sh dnsmasq start; ping www.yahoo.com
Pinging www-real.wa1.b.yahoo.com [209.131.36.158] with 32 bytes of data: ...