PB : DNS Client don't ping internet

 
Thread Tools Search this Thread
Operating Systems Linux Debian PB : DNS Client don't ping internet
# 1  
Old 02-28-2011
PB : DNS Client don't ping internet

Hi,

I have my router (192.168.1.1) connected to the internet.
I have installed Debian on a server with Bind9 (192.168.1.254).
The configurations files are :

Code:
$ cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0 
iface eth0 inet static
address  192.168.1.254
netmask  255.255.255.0
network  192.168.1.0
broadcast  192.168.1.255
gateway  192.168.1.1

Code:
$ cat /etc/bind/named.conf
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

Code:
$ cat /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
 forwarders {
 192.168.1.1;
 };

auth-nxdomain no;    # conform to RFC1035
listen-on-v6 { any; };

version none;
allow-query { 192.168.1.0/24; };
allow-transfer { none; };
};

Code:
$ cat /etc/bind/named.conf.local
zone "mywidi.me" {
     type master;
     file "/etc/bind/db.mywidi.me";
};

zone "1.168.192.in-addr.arpa" {
     type master;
     file "/etc/bind/db.1.168.192";
}

Code:
$ cat /etc/bind/named.conf.default-zones 

zone "." {
type hint;
file "/etc/bind/db.root";
};

zone "localhost" {
type master;
file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};

Code:
$ sudo cat /etc/resolv.conf
search mywidi.me
nameserver 192.168.1.254

From this DNS server, I can ping local hosts and internet (as google.com) .

I have another server (kind of client DNS) with these settings :
Code:
$ cat /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address  192.168.1.160
netmask  255.255.255.0
network  192.168.1.0
broadcast  192.168.1.255
gateway  192.168.1.254

Code:
$ cat /etc/resolv.conf
search MYWIDI.ME
nameserver 192.168.1.254

My problem is this second debian server (without DNS) succeeds to ping other local hosts but fails pinging google.com. The wirest thing is ping succeeds to get google.com ip address as displayed :

Code:
$ ping google.com
PING google.com (74.125.224.50) 56(84) bytes of data.

but the command is waiting and waiting ...

Thank you for your help, i will appreciate it Smilie
# 2  
Old 03-01-2011
Your default gateway is the DNS not a router.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies

2. IP Networking

DNS problem : ping doesn't recognize hostname

I have vmware on my windows PC ( hostname : acer ). vmware has RHEL 7 ( hostname : rhel7 ) installed recently. RHEL IP configuration IP : 192.168.5.128 Netmask : 255.255.255.0 ssh to rhel7 works from acer using putty resolve.conf cat /etc/resolv.conf nameserver 192.168.5.1 host... (12 Replies)
Discussion started by: hiten.r.chauhan
12 Replies

3. Solaris

DNS client - what exactly it is

Hi all, I always thought DNS server = provide DNS response (host to ip / ip to host) to DNS client (which send DNS resolve request). So in my solaris 10 box, i setup /etc/resolv/conf, /etc/nsswitch.conf (added in dns) etc. Yes, i am able to dig and nslookup. But.. am i a DNS client ? ... (5 Replies)
Discussion started by: javanoob
5 Replies

4. Solaris

Windows 7 Host Cannot ping Solaris 10 DNS on VM

Hello All, Host - Windows 7 64 BIT Guest OS - Solaris 10 64 on VMWARE workstation Problem : I can not ping solaris VM from my host OS. please suggest the solution. Host OS:ipconfig /all Windows IP Configuration Host Name . . . . . . . . . . . . : INPS01900LT ... (5 Replies)
Discussion started by: sunil_1111
5 Replies

5. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

6. Solaris

Internet DNS Server with Sun

Hi all. I have one Sun Server T2000, then i want to running DNS service in that. So I don't know what's cPanel program which can help me manage my DNS server. Webmin is included in Solaris 10 - but i think that it's not enough flexible for my management. Anyone can help me. ... (2 Replies)
Discussion started by: quan0509
2 Replies

7. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies

8. UNIX for Advanced & Expert Users

iptables rule to block ping to internet

I want to block ping on a linuxbox to any other address where it would go to the default gateway. vmdebianamd64:/etc/tcng# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 198.9.200.0 * 255.255.255.0 U 0 ... (1 Reply)
Discussion started by: progressdll
1 Replies

9. IP Networking

Can't ping internet. Need help

I am running AIX, and just newly installed this sytem. I thought I had all the settings correct, but may be wrong. I set up the DNS to point to my router which has DNS relay. Router IP is 192.168.0.1 AIX server IP is 192.168.0.164 I can ping my router with no problem. When I do a... (6 Replies)
Discussion started by: mrciano1
6 Replies
Login or Register to Ask a Question