strange ping behaviour

The problem

  • local domain created on BIND for out local use
  • server01.local.domain has ip 1.2.3.4
  • can ping the ip
  • can resolve the FQDN using dig and host commands
  • cannot ping using the FQDN "ping: unknown host"
  • can't access the server over http

The Trace

strace -s 1024 ping server01.local.domain

fcntl64(4, F_GETFD)                     = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
connect(4, {sa_family=AF_FILE, path="/var/run/avahi-daemon/socket"}, 110) = 0
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fstat64(4, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb80bf000
_llseek(4, 0, 0xbfcbdd98, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(4, "RESOLVE-HOSTNAME-IPV4 server01.local.domain\n", 51) = 51
read(4, "-15 Timeout reached\n", 1024)  = 20
close(4)                                = 0

The solution

from the above output i can see that avahi-daemon is the guilty one

i stoped the daemon

it works now

The unresolved

  • what is avahi-daemon?
  • why is it breaking the resolve process?