Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no response from avahi-daemon #81

Open
ipatch opened this issue Jun 10, 2021 · 4 comments
Open

no response from avahi-daemon #81

ipatch opened this issue Jun 10, 2021 · 4 comments

Comments

@ipatch
Copy link

ipatch commented Jun 10, 2021

hello, i'm running arch linux with the bellow versions,

extra/avahi 0.8+20+gd1e71b3-1 (437.0 KiB 1.8 MiB) (Installed)
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
extra/nss-mdns 0.14.1-3 (11.5 KiB 106.1 KiB) (Installed)
    glibc plugin providing host name resolution via mDNS

i tried the newer version of the nss-mdns 0.15.x installed via pacman but neither seem to work, so rolled back to the prior version.

for debugging the avahi service on this arch linux box i'm using ping and starting the avahi-daemon in a foreground process.

sudo -E /usr/sbin/avahi-daemon --debug

yields

Process 802957 died: No such process; trying to remove PID file. (/run/avahi-daemon//pid)
Found user 'avahi' (UID 975) and group 'avahi' (GID 975).
Successfully dropped root privileges.
avahi-daemon 0.8 starting up.
chroot.c: chroot() helper started
Successfully called chroot().
Successfully dropped remaining capabilities.
chroot.c: chroot() helper got command 02
Loading service file /services/ssh.service.
Loading new static hostname tc.local.
Network interface enumeration completed.
Server startup complete. Host name is archmbp.local. Local service cookie is 3260164840.
Service "archmbp" (/services/ssh.service) successfully established.
Static host name "tc.local" successfully established.

i then try to ping archmbp.local using the below command,

ping archmbp.local

in the foreground of the avahi daemon process the below is printed to STDOUT

simple-protocol.c: Got RESOLVE-HOSTNAME-IPV4 request for 'archmbp.local'.

and in the separate terminal process with the ping cmd it eventually times out i believe, and returns,

ping: archmbp.local: Name or service not known

running, strace ping archmbp.local

execve("/usr/sbin/ping", ["ping", "archmbp.local"], 0x7ffc6dbf2a58 /* 93 vars */) = 0
brk(NULL)                               = 0x556e8587a000
arch_prctl(0x3001 /* ARCH_??? */, 0x7fff5f0db190) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=93920, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 93920, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8133e6b000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=38704, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8133e69000
mmap(NULL, 41016, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8133e5e000
mmap(0x7f8133e61000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f8133e61000
mmap(0x7f8133e65000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f8133e65000
mmap(0x7f8133e67000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7f8133e67000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libidn2.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0  \0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=132872, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 135200, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8133e3c000
mmap(0x7f8133e3e000, 20480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f8133e3e000
mmap(0x7f8133e43000, 102400, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f8133e43000
mmap(0x7f8133e5c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f000) = 0x7f8133e5c000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20G\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=92496, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 104608, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8133e22000
mprotect(0x7f8133e26000, 73728, PROT_NONE) = 0
mmap(0x7f8133e26000, 57344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f8133e26000
mmap(0x7f8133e34000, 12288, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0x7f8133e34000
mmap(0x7f8133e38000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f8133e38000
mmap(0x7f8133e3a000, 6304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8133e3a000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`|\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0@\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0"..., 80, 848) = 80
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0K@g7\5w\10\300\344\306B4Zp<G"..., 68, 928) = 68
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2150424, ...}, AT_EMPTY_PATH) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1880536, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8133c56000
mmap(0x7f8133c7c000, 1355776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7f8133c7c000
mmap(0x7f8133dc7000, 311296, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x171000) = 0x7f8133dc7000
mmap(0x7f8133e13000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bc000) = 0x7f8133e13000
mmap(0x7f8133e19000, 33240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8133e19000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libunistring.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \20\1\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1574712, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 1579272, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8133ad4000
mmap(0x7f8133ae5000, 217088, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0x7f8133ae5000
mmap(0x7f8133b1a000, 1273856, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x46000) = 0x7f8133b1a000
mmap(0x7f8133c51000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17c000) = 0x7f8133c51000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8133ad2000
arch_prctl(ARCH_SET_FS, 0x7f8133ad3040) = 0
mprotect(0x7f8133e13000, 12288, PROT_READ) = 0
mprotect(0x7f8133c51000, 16384, PROT_READ) = 0
mprotect(0x7f8133e38000, 4096, PROT_READ) = 0
mprotect(0x7f8133e5c000, 4096, PROT_READ) = 0
mprotect(0x7f8133e67000, 4096, PROT_READ) = 0
mprotect(0x556e8483d000, 4096, PROT_READ) = 0
mprotect(0x7f8133eb0000, 8192, PROT_READ) = 0
munmap(0x7f8133e6b000, 93920)           = 0
prctl(PR_CAPBSET_READ, CAP_MAC_OVERRIDE) = 1
prctl(PR_CAPBSET_READ, 0x30 /* CAP_??? */) = -1 EINVAL (Invalid argument)
prctl(PR_CAPBSET_READ, CAP_CHECKPOINT_RESTORE) = 1
prctl(PR_CAPBSET_READ, 0x2c /* CAP_??? */) = -1 EINVAL (Invalid argument)
prctl(PR_CAPBSET_READ, 0x2a /* CAP_??? */) = -1 EINVAL (Invalid argument)
prctl(PR_CAPBSET_READ, 0x29 /* CAP_??? */) = -1 EINVAL (Invalid argument)
brk(NULL)                               = 0x556e8587a000
brk(0x556e8589b000)                     = 0x556e8589b000
capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, NULL) = 0
capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, {effective=0, permitted=0, inheritable=0}) = 0
capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, NULL) = 0
capset({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, {effective=0, permitted=0, inheritable=0}) = 0
prctl(PR_SET_KEEPCAPS, 1)               = 0
getuid()                                = 1000
setuid(1000)                            = 0
prctl(PR_SET_KEEPCAPS, 0)               = 0
getuid()                                = 1000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=3041456, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 3041456, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f81337eb000
close(3)                                = 0
getrandom("\x4c\xeb\x38\x88", 4, GRND_NONBLOCK) = 4
capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, NULL) = 0
capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, {effective=0, permitted=0, inheritable=0}) = 0
socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP) = 3
socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6) = 4
capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, NULL) = 0
capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, {effective=0, permitted=0, inheritable=0}) = 0
openat(AT_FDCWD, "/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=56353, ...}, AT_EMPTY_PATH) = 0
read(5, "# GNU libc iconv configuration.\n"..., 4096) = 4096
read(5, "B1002//\tJUS_I.B1.002//\nmodule\tJU"..., 4096) = 4096
read(5, "\tISO-IR-110//\t\tISO-8859-4//\nalia"..., 4096) = 4096
read(5, "\t\t\tISO-8859-14//\nalias\tISO_8859-"..., 4096) = 4096
read(5, "DIC-ES//\nalias\tEBCDICES//\t\tEBCDI"..., 4096) = 4096
read(5, "CDIC-CP-ES//\t\tIBM284//\nalias\tCSI"..., 4096) = 4096
read(5, "\t\tIBM863//\nalias\tOSF1002035F//\t\t"..., 4096) = 4096
read(5, "937//\t\tIBM937//\nmodule\tIBM937//\t"..., 4096) = 4096
read(5, "UJIS//\t\t\tEUC-JP//\nmodule\tEUC-JP/"..., 4096) = 4096
read(5, "lias\tISO2022CN//\t\tISO-2022-CN//\n"..., 4096) = 4096
read(5, "O_5427-EXT//\nalias\tISO_5427EXT//"..., 4096) = 4096
read(5, "ost\nmodule\tMAC-SAMI//\t\tINTERNAL\t"..., 4096) = 4096
read(5, "112//\t\tINTERNAL\t\tIBM1112\t\t1\nmodu"..., 4096) = 4096
brk(0x556e858bc000)                     = 0x556e858bc000
read(5, "s\tCP9448//\t\tIBM9448//\nalias\tCSIB"..., 4096) = 3105
read(5, "", 4096)                       = 0
close(5)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
connect(5, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(5)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
connect(5, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(5)                                = 0
newfstatat(AT_FDCWD, "/etc/nsswitch.conf", {st_mode=S_IFREG|0644, st_size=318, ...}, 0) = 0
newfstatat(AT_FDCWD, "/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=318, ...}, AT_EMPTY_PATH) = 0
read(5, "# Name Service Switch configurat"..., 4096) = 318
read(5, "", 4096)                       = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=318, ...}, AT_EMPTY_PATH) = 0
close(5)                                = 0
newfstatat(AT_FDCWD, "/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=50, ...}, 0) = 0
openat(AT_FDCWD, "/etc/host.conf", O_RDONLY|O_CLOEXEC) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=73, ...}, AT_EMPTY_PATH) = 0
read(5, "# Resolver configuration file.\n#"..., 4096) = 73
read(5, "", 4096)                       = 0
close(5)                                = 0
openat(AT_FDCWD, "/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=50, ...}, AT_EMPTY_PATH) = 0
read(5, "# Generated by NetworkManager\nna"..., 4096) = 50
read(5, "", 4096)                       = 0
uname({sysname="Linux", nodename="archmbp", ...}) = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=50, ...}, AT_EMPTY_PATH) = 0
close(5)                                = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=93920, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 93920, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7f8133e6b000
close(5)                                = 0
openat(AT_FDCWD, "/usr/lib/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 5
read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P5\0\0\0\0\0\0"..., 832) = 832
newfstatat(5, "", {st_mode=S_IFREG|0755, st_size=51376, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 79320, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x7f81337d7000
mmap(0x7f81337da000, 28672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x3000) = 0x7f81337da000
mmap(0x7f81337e1000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xa000) = 0x7f81337e1000
mmap(0x7f81337e3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xb000) = 0x7f81337e3000
mmap(0x7f81337e5000, 21976, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f81337e5000
close(5)                                = 0
mprotect(0x7f81337e3000, 4096, PROT_READ) = 0
munmap(0x7f8133e6b000, 93920)           = 0
openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=140, ...}, AT_EMPTY_PATH) = 0
lseek(5, 0, SEEK_SET)                   = 0
read(5, "# Static table lookup for hostna"..., 4096) = 140
read(5, "", 4096)                       = 0
close(5)                                = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=93920, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 93920, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7f8133e6b000
close(5)                                = 0
openat(AT_FDCWD, "/usr/lib/libnss_mdns4_minimal.so.2", O_RDONLY|O_CLOEXEC) = 5
read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \20\0\0\0\0\0\0"..., 832) = 832
newfstatat(5, "", {st_mode=S_IFREG|0755, st_size=18104, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 20496, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x7f81337d1000
mmap(0x7f81337d2000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x1000) = 0x7f81337d2000
mmap(0x7f81337d4000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x3000) = 0x7f81337d4000
mmap(0x7f81337d5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x3000) = 0x7f81337d5000
close(5)                                = 0
mprotect(0x7f81337d5000, 4096, PROT_READ) = 0
munmap(0x7f8133e6b000, 93920)           = 0
newfstatat(AT_FDCWD, "/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=50, ...}, 0) = 0
socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 5
setsockopt(5, SOL_IP, IP_RECVERR, [1], 4) = 0
connect(5, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.0.1.1")}, 16) = 0
poll([{fd=5, events=POLLOUT}], 1, 0)    = 1 ([{fd=5, revents=POLLOUT}])
sendto(5, "\"\212\1\0\0\1\0\0\0\0\0\0\5local\0\0\6\0\1", 23, MSG_NOSIGNAL, NULL, 0) = 23
poll([{fd=5, events=POLLIN}], 1, 5000)  = ? ERESTART_RESTARTBLOCK (Interrupted by signal)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
restart_syscall(<... resuming interrupted poll ...>) = 0
poll([{fd=5, events=POLLOUT}], 1, 0)    = 1 ([{fd=5, revents=POLLOUT}])
sendto(5, "\"\212\1\0\0\1\0\0\0\0\0\0\5local\0\0\6\0\1", 23, MSG_NOSIGNAL, NULL, 0) = 23
poll([{fd=5, events=POLLIN}], 1, 5000)  = 0 (Timeout)
close(5)                                = 0
socket(AF_UNIX, SOCK_STREAM, 0)         = 5
fcntl(5, F_GETFD)                       = 0
fcntl(5, F_SETFD, FD_CLOEXEC)           = 0
connect(5, {sa_family=AF_UNIX, sun_path="/var/run/avahi-daemon/socket"}, 110) = 0
fcntl(5, F_GETFL)                       = 0x2 (flags O_RDWR)
newfstatat(5, "", {st_mode=S_IFSOCK|0777, st_size=0, ...}, AT_EMPTY_PATH) = 0
write(5, "RESOLVE-HOSTNAME-IPV4 archmbp.lo"..., 36) = 36
read(5, "-15 Timeout reached\n", 4096)  = 20
close(5)                                = 0
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=2998, ...}, AT_EMPTY_PATH) = 0
read(5, "# Locale name alias data base.\n#"..., 4096) = 2998
read(5, "", 4096)                       = 0
close(5)                                = 0
openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "ping: ", 6ping: )                   = 6
write(2, "archmbp.local: Name or service n"..., 40archmbp.local: Name or service not known) = 40
write(2, "\n", 1
)                       = 1
close(1)                                = 0
close(2)                                = 0
exit_group(2)                           = ?
+++ exited with 2 +++

i'm obviously doing something wrong here, just not sure what it is.

i do have bridge networking setup on this box, which probably makes a difference.

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether XXXXXXXX brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
6: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether XXXXXXXX brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
8: br10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether XXXXXXXX brd ff:ff:ff:ff:ff:ff
    inet 10.0.1.24/24 brd 10.0.1.255 scope global dynamic noprefixroute br10
       valid_lft 80647sec preferred_lft 80647sec
    inet6 fe80::5c60:902d:7a32:3c25/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
9: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master br10 state DOWN group default qlen 1000
    link/ether XXXXXXX brd ff:ff:ff:ff:ff:ff
10: ens9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br10 state UP group default qlen 1000
    link/ether XXXXXXXX brd ff:ff:ff:ff:ff:ff
    altname enp59s0
@agoode
Copy link
Contributor

agoode commented Jun 12, 2021

If you were trying 0.15, it was broken. Please try 0.15.1 and see if that helps.

@ipatch
Copy link
Author

ipatch commented Jun 12, 2021

hmmm i was running into issues with both 0.15 and the 0.14.x release.

i'll give the 0.15.1 a try if it's in AUR and give box a reboot to see if that helps.

@tomeq82
Copy link

tomeq82 commented Oct 15, 2021

I don't want to replicate the same issue, but this is exactly what I have stumbled upon. Ubuntu 20.04.3.

avahi-daemon/focal-updates,focal-security,now 0.7-4ubuntu7.1 amd64 [zainstalowany] libnss-mdns/focal,now 0.14.1-1ubuntu1 amd64 [zainstalowany,automatycznie]

I have tried 0.15.1, compiled from source - same behavior so far.

Using getent host whatever.local give no resolution of any .local host - while it does for normal dns names.
Tried every combination and suggestions of /etc/nssswitch.conf I have found to solve this but none of the actually did anything. All other configuration seems valid and proper, so no obious errors like upstream DNS .local resolution etc.

To add to this issue - I have tried to catch some udp 5353 packets on this machine and it seems that there are no single packet going out to the multicast address during query.

Avahi subsystem seem to work, because queried from MacOS 11.6 using Discovery tool I can browse services and I see a lot of 5353 udp traffic, as an example:
09:30:19.137271 IP6 fe80::1c68:f92:802c:642e.5353 > ff02::fb.5353: 0 SRV (QU)? NAS-STORAGE._smb._tcp.local. (45) 09:30:19.137537 IP6 fe80::1e87:2cff:fe61:de4.5353 > ff02::fb.5353: 0*- [0q] 2/0/0 (Cache flush) SRV nas-storage.local.:445 0 0, (Cache flush) AAAA fe80::1e87:2cff:fe61:de4 (99)
Any ideas what could be wrong and prevent the machine to query any .local names using mDNS?

@ipatch
Copy link
Author

ipatch commented Oct 15, 2021

yeah i still experiencing the same issues with my arch linux box. i have three macos virtual machines using qemu+kvm and all three of the virtual machines are able to discover other hosts on the network using .local.

the version of avahi i have installed is.

extra/avahi 0.8+22+gfd482a7-1 (433.5 KiB 1.8 MiB) (Installed)
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants