LinuxQuestions.org
Visit Jeremy's Blog.
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
  Search this Thread
Old 04-25-2015, 04:14 AM   #1
davezap
LQ Newbie
 
Registered: Apr 2015
Posts: 27

Rep: Reputation: Disabled
Unhappy No DNS? - CentOS 6.6


I am going crazy please help. Can not remember exactly what I did but no domains will resolve on CentOS it was working a few days ago but in the mean time I have been messing with SELinux and had upgraded the kernel with Yum.

I have iptables service stopped. I am not running BIND

I am able to ping external ip address all day.

When ever I ping a domain it just hangs.

dig google.com # hangs and returns.

Code:
[root@WIK1 ~]# dig google.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.2 <<>> google.com
;; global options: +cmd
;; connection timed out; no servers could be reached
and

Code:
[root@WIK1 ~]# nslookup google.com
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached


My config is below.


Code:
# uname -a
Linux WIK1.******.local 2.6.32-504.16.2.el6.x86_64 #1 SMP Wed Apr 22 06:48:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Code:
[root@WIK1 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
Code:
cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search ******.local
nameserver 8.8.8.8
nameserver 8.8.4.4
Code:
[root@WIK1 ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search ******.local
nameserver 8.8.8.8
nameserver 8.8.4.4
[root@WIK1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
HWADDR="6C:AE:8B:5C:2B:00"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.16.30
NETMASK=255.255.255.0
GATEWAY=192.168.16.254
DNS1="8.8.8.8"
DNS2="8.8.4.4"
 
Old 04-25-2015, 07:16 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by davezap View Post
Can not remember exactly what I did
Start by jogging your memory reading back your shell history file(s) and running 'rpm -Vva|grep -v '^\.\{8\}|grep /etc;'?
 
Old 04-25-2015, 07:35 PM   #3
davezap
LQ Newbie
 
Registered: Apr 2015
Posts: 27

Original Poster
Rep: Reputation: Disabled
That returned 61330 lines !

Probably because I had 'restorecon -R /' at one point.
 
Old 04-27-2015, 07:31 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You realize that what you posted is only a superfluous comment and not any question or nfo that helps me help you, right?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Bind CentOS 5 primary CentOS 6 secondary loadedmind Linux - Server 0 07-24-2014 07:45 PM
DNS in centos rushikesh24 Linux - Newbie 3 04-04-2013 05:50 AM
DNS server on centos 6.0-Help!!!! Tosani19 Linux - Server 5 10-24-2011 07:54 PM
Help with secondary DNS (Centos 5.2) sxa Linux - Software 1 12-03-2008 05:22 PM
DNS Centos 5 rungsun Red Hat 1 03-21-2008 12:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration