LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-29-2013, 01:39 PM   #1
Jwoolington
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
Unhappy 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!!!!
 
Old 03-29-2013, 03:37 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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.
 
Old 03-29-2013, 04:34 PM   #3
Jwoolington
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gilead View Post
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
Cannot ping outside hostnames PeterLarsson Linux - Networking 1 08-05-2005 12:37 AM
Can't ping hostnames Nox UK Linux - Networking 3 04-19-2005 03:07 PM
Can ping MyDNS1.FQDN and IPs but no other hostnames? leecason Linux - Networking 3 10-06-2003 03:01 PM
cannot ping hostnames joadoor Linux - Networking 21 06-10-2003 10:12 AM


All times are GMT -5. The time now is 08:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration