LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   BIND (cannot ping hostnames, but can ping IPs) (https://www.linuxquestions.org/questions/linux-networking-3/bind-cannot-ping-hostnames-but-can-ping-ips-4175456049/)

Jwoolington 03-29-2013 01:39 PM

BIND (cannot ping hostnames, but can ping IPs)
 
I am running centOS 6.3 in a virtualized vmware environment.
Host: ESXI 5.1
Using: Vsphere Client
Everything is bridged on my adapter for ESXI.

I have installed BIND on my centOS svr.
I have edited my iptables to configure port 53 through the firewall with both udp/tcp.
I have edited named.conf and entered my IP and loopback in to "listen-on port 53"
I have also done { localhost; InternalIP/26; }; in the allow-query section

/etc/sysconfig/network-scripts/ifcfg-eth0 looks like this:

DEVICEE="eth0"
BOOTPROTO=none
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
DOMAIN=localhost
UUID="234"
HWADDR=MAC
NETMASK=MASK
IPADDR=IP of internal
PREFIX=26
GATEWAY=GATEWAY
DOMAIN=localhost
DNS1=127.0.0.1
PEERDNS=no

/etc/resolv.conf looks like this:

domain localhost
nameserver 127.0.0.1

I have restarted everything, but I can't seem to figure out why I cannot dig (google.com) or ping google.com or any other host name for that.

Please help!!!!

gilead 03-29-2013 03:37 PM

What errors are you getting? Are you able to look up hosts on your local network? Does netstat show anything listening on port 53? More information would be really helpful - not just what you changed, but what the config looks like.

Jwoolington 03-29-2013 04:34 PM

Quote:

Originally Posted by gilead (Post 4921257)
What errors are you getting? Are you able to look up hosts on your local network? Does netstat show anything listening on port 53? More information would be really helpful - not just what you changed, but what the config looks like.

Thanks for the reply Steve.

I got the issue worked out.
NTP was not set up properly.
I can resolve host names now but I am getting errors in the process when I ping a new host.
I am thinking that ipv6 is my problem in this situation but I may be wrong.

Here are the errors:

Mar 29 17:23:31 pcrepair named[2075]: error (network unreachable) resolving 'yahoo.com/A/IN': 2001:503:231d::2:30#53
Mar 29 17:23:31 pcrepair named[2075]: error (network unreachable) resolving 'com/DNSKEY/IN': 2001:503:a83e::2:30#53
Mar 29 17:23:32 pcrepair named[2075]: error (network unreachable) resolving '45.36.190.206.in-addr.arpa/PTR/IN': 2001:503:ba3e::2:30#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving 'arpa/DNSKEY/IN': 2001:dc3::35#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving 'arpa/DNSKEY/IN': 2001:500:2f::f#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving 'in-addr.arpa/DNSKEY/IN': 2001:500:87::87#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving 'in-addr.arpa/DNSKEY/IN': 2001:43f8:110::10#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving 'in-addr.arpa/DNSKEY/IN': 2001:67c:e0::1#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving 'w.arin.net/A/IN': 2001:dc3::35#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving 'x.arin.net/AAAA/IN': 2001:dc3::35#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving 'z.arin.net/A/IN': 2001:dc3::35#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving '206.in-addr.arpa/DNSKEY/IN': 2001:500:98::63#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving '206.in-addr.arpa/DNSKEY/IN': 2001:500:31::63#53
Mar 29 17:23:33 pcrepair named[2075]: error (network unreachable) resolving '206.in-addr.arpa/DNSKEY/IN': 2001:500:14:6050:ad::1#53
Mar 29 17:23:34 pcrepair named[2075]: error (network unreachable) resolving '36.190.206.in-addr.arpa/DS/IN': 2001:5a0:10::2#53

Any ideas?


All times are GMT -5. The time now is 03:56 PM.