avahi-dnsconfd.action(8)
π avahi-dnsconfd.action(8) π
okay bestie, gather round, because today we're talking about avahi-dnsconfd.action from the System Manager's Manual β yes it's a section 8 page, yes it's a script, yes it's lowkey iconic π«Ά
β¨ NAME β¨
avahi-dnsconfd.action β the action script for avahi-dnsconfd, no cap π
β¨ SYNOPSIS β¨
/etc/avahi/avahi-dnsconfd.action
that's it. that's the whole vibe. one path, zero flags, main character energy π
β¨ DESCRIPTION β¨
so avahi-dnsconfd.action is the action script that gets called every single time a new unicast DNS server is found β or removed β by avahi-dnsconfd. like, it literally gets summoned the moment things change π¦
and the default script that ships with avahi? it patches /etc/resolv.conf so that file reflects the changed unicast DNS server configuration. it's giving "keeping everything in sync, periodt" β¨
β¨ PARAMETERS β¨
here's the tea, bestie β the script gets arguments, and you cannot sleep on them:
argv[1]β holds the character"+"if the DNS server is new, and"-"when it's supposed to be removed from the DNS server list. so basically plus = hi bestie, minus = bye bestie πargv[2]β the IP address of the DNS server πargv[3]β the numerical network interface number that this DNS server was found on π’argv[4]β the numerical protocol number this DNS server was found on (usually2for IPv4 and10for IPv6, iykyk) πΈ
β¨ ENVIRONMENT β¨
the environment variables are where it gets really cute:
AVAHI_INTERFACEβ contains the textual interface name that corresponds withargv[3]. (e.g."eth0") πAVAHI_INTERFACE_DNS_SERVERSβ contains a list of all DNS servers thatavahi-dnsconfdfound on the interface$AVAHI_INTERFACE, separated by spaces πAVAHI_DNS_SERVERSβ contains a list of all DNS servers thatavahi-dnsconfdfound on all interfaces, separated by spaces π
β¨ AUTHORS β¨
The Avahi Developers <avahi (at) lists (dot) freedesktop (dot) org>; Avahi is available from http://avahi.org/ β shoutout to the devs, they ate π π
β¨ SEE ALSO β¨
go read these too, they're part of the lore:
β¨ COMMENTS β¨
fun fact fr fr: this man page was written using xml2man(1) by Oliver Kurth π§
bestie reminder: this page lives in the Manuals source, User section, and it's theavahi-dnsconfd.action(8)page you just read π now go patch thatresolv.confand slay π β¨
π¦ where this page comes from
- alpine 3.22: avahi-doc 0.8-r21 Β· LGPL-2.1-or-later
- alpine 3.23: avahi-doc 0.8-r23 Β· LGPL-2.1-or-later
- alpine 3.24: avahi-doc 0.9_rc4-r0 Β· LGPL-2.1-or-later
- debian bookworm: avahi-dnsconfd 0.8-10+deb12u1
- debian trixie: avahi-dnsconfd 0.8-16
- fedora 43: avahi-dnsconfd 0.9~rc2-6.fc43 Β· LGPL-2.1-or-later AND LGPL-2.0-or-later AND BSD-2-Clause-Views AND MIT
- fedora 44: avahi-dnsconfd 0.9~rc2-8.fc44 Β· LGPL-2.1-or-later AND LGPL-2.0-or-later AND BSD-2-Clause-Views AND MIT
- nixpkgs unstable: avahi 0.8
- nixpkgs unstable: avahi-compat 0.8
- opensuse-leap 16.0: avahi 0.8-160000.6.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: avahi 0.8-160000.6.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: avahi 0.8-160000.6.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: avahi 0.8-160000.6.1 Β· LGPL-2.1-or-later
- ubuntu jammy: avahi-dnsconfd 0.8-5ubuntu5
- ubuntu jammy: avahi-dnsconfd 0.8-5ubuntu5.5
- ubuntu noble: avahi-dnsconfd 0.8-13ubuntu6
- ubuntu noble: avahi-dnsconfd 0.8-13ubuntu6.2
- ubuntu questing: avahi-dnsconfd 0.8-16ubuntu3
- ubuntu questing: avahi-dnsconfd 0.8-16ubuntu3.2
- ubuntu resolute: avahi-dnsconfd 0.8-18ubuntu1
- ubuntu resolute: avahi-dnsconfd 0.8-18ubuntu1.1
- ubuntu stonking: avahi-dnsconfd 0.8-18ubuntu1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms