LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   No DNS? - CentOS 6.6 (https://www.linuxquestions.org/questions/linux-networking-3/no-dns-centos-6-6-a-4175540693/)

davezap 04-25-2015 03:14 AM

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"


unSpawn 04-25-2015 06:16 AM

Quote:

Originally Posted by davezap (Post 5352800)
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;'?

davezap 04-25-2015 06:35 PM

That returned 61330 lines !

Probably because I had 'restorecon -R /' at one point.

unSpawn 04-27-2015 06:31 AM

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


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