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"