The host command resolves names put ping does not
In what universe does this makes any sense? The DNS server at 10.10.10.11 is good. I'm resolving names with it right now to post this question. I can do host
[root@www network-scripts]# date
Mon Feb 23 15:19:06 CST 2015
[root@www network-scripts]# host infradc2012.infrasupport.local
infradc2012.infrasupport.local has address 10.10.10.11
[root@www network-scripts]# ping infradc2012.infrasupport.local
ping: unknown host infradc2012.infrasupport.local
[root@www network-scripts]# date
Mon Feb 23 15:19:16 CST 2015
[root@www network-scripts]#
[root@www network-scripts]# more /etc/resolv.conf
Generated by NetworkManager
search bullseyebreach.com
nameserver 10.10.10.11
[root@www network-scripts]#
[root@www network-scripts]#
[root@www network-scripts]# more ifcfg-eth0
TYPE="Ethernet"
BOOTPROTO="static"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="eth0"
UUID="8df61ac9-355d-4d3c-8741-ca5c76d69b25"
ONBOOT="yes"
HWADDR="00:1A:4A:92:C6:01"
PEERDNS="yes"
PEERROUTES="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
BROADCAST="10.10.10.255"
IPADDR="10.10.10.7"
NETMASK="255.255.255.0"
NETWORK="10.10.10.0"
GATEWAY="10.10.10.1"
DNS1="10.10.10.11"
[root@www network-scripts]#
OK, the above didn't come from RHEL. It came from a Fedora 21 RHEV 3.5 virtual machine in a RHEV 3.5 environment I cloned. After cloning, I updated ifcfg-eth0 with its new MAC address and a new IP Address. What I don't get is why does ping resolve addresses differently than the host command?
thanks
- Greg Scott