[CentOS] Name Resolution Broken for One Address

John Thomas gmane-2006-04-16 at jt-socal.com
Mon Dec 7 12:59:00 UTC 2009


I seem to have broken my laptop and have been unable to figure it out.

Name resolution works great, except one address, which seems to be 
resolving to 0.0.0.1.  Could you help me figure out what I have done and 
fix it?

The following lines are in /etc/hosts
192.168.11.1	dev.example.com
192.168.11.1	dev1.example.com

Pinging any other address that I try works, except dev.example.com.

CentOS54[root at ctlaptop etc]# ping dev1.example.com
PING dev1.example.com (192.168.11.1) 56(84) bytes of data.
64 bytes from dev.example.com (192.168.11.1): icmp_seq=1 ttl=64 
time=0.093 ms
<snip>
CentOS54[root at ctlaptop ~]# ping dev.example.com
connect: Invalid argument
CentOS54[root at ctlaptop ~]# strace ping dev.example.com
execve("/bin/ping", ["ping", "dev.example.com"], [/* 33 vars */]) = 0
brk(0)                                  = 0x88f1000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=82386, ...}) = 0
mmap2(NULL, 82386, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8b000
close(3)                                = 0
open("/lib/libresolv.so.2", O_RDONLY)   = 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300p\277\0004\0\0\0"..., 512) 
= 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=76400, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xb7f8a000
mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0xd62000
mmap2(0xd71000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0xd71000
mmap2(0xd73000, 6344, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd73000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\277.\0004\0\0\0"..., 512) 
= 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1611564, ...}) = 0
mmap2(NULL, 1328580, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0x994000
mmap2(0xad3000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13f) = 0xad3000
mmap2(0xad6000, 9668, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xad6000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xb7f89000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f896c0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xad3000, 8192, PROT_READ)     = 0
mprotect(0xd71000, 4096, PROT_READ)     = 0
mprotect(0x15e000, 4096, PROT_READ)     = 0
munmap(0xb7f8b000, 82386)               = 0
socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3
getuid32()                              = 0
setuid32(0)                             = 0
brk(0)                                  = 0x88f1000
brk(0x8912000)                          = 0x8912000
getpid()                                = 5376
open("/etc/resolv.conf", O_RDONLY)      = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=109, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xb7f9f000
read(4, "# Generated by NetworkManager\ndo"..., 4096) = 109
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0xb7f9f000, 4096)                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 4
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = 0
send(4, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0", 18, MSG_NOSIGNAL) = 18
poll([{fd=4, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=4, 
revents=POLLIN}])
recvmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"hosts\0", 6}, 
{"\270O\3\0\0\0\0\0", 8}], msg_controllen=16, {cmsg_len=16, 
cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {5}}, msg_flags=0}, 0) = 14
mmap2(NULL, 217016, PROT_READ, MAP_SHARED, 5, 0) = 0xb7f54000
close(5)                                = 0
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(1025), 
sin_addr=inet_addr("0.0.0.1")}, 16) = -1 EINVAL (Invalid argument)
dup(2)                                  = 5
fcntl64(5, F_GETFL)                     = 0x2 (flags O_RDWR)
fstat64(5, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xb7f9f000
_llseek(5, 0, 0xbfd43234, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(5, "connect: Invalid argument\n", 26connect: Invalid argument
) = 26
close(5)                                = 0
munmap(0xb7f9f000, 4096)                = 0
exit_group(2)                           = ?

-- 
Sincerely,
John Thomas


More information about the CentOS mailing list