Linux command
avahi-dnsconfd 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start the DNS configuration daemon
avahi-dnsconfd
Start as a background daemon
avahi-dnsconfd --daemonize
Start with syslog
avahi-dnsconfd --syslog
Kill a running instance
avahi-dnsconfd --kill
Refresh DNS server data
killall -HUP avahi-dnsconfd
说明
avahi-dnsconfd is a daemon that configures unicast DNS servers based on mDNS/DNS-SD announcements on the local network. It connects to a running avahi-daemon and monitors for DNS server announcements. When a unicast DNS server is announced or removed from the network, avahi-dnsconfd executes the action script /etc/avahi/avahi-dnsconfd.action to update the system's DNS configuration. This provides DHCP-like DNS server discovery using mDNS. The daemon requires avahi-daemon to be running. It is useful in environments where DNS servers are dynamically announced via Zeroconf/Bonjour protocols rather than configured through traditional DHCP.
参数
- -D, --daemonize
- Run as a background daemon and log to syslog
- -s, --syslog
- Log to syslog instead of stderr
- -k, --kill
- Kill an already running avahi-dnsconfd instance
- --refresh
- Refresh DNS server information
- --check
- Check if daemon is running
- -h, --help
- Display help message
- -v, --version
- Show version information
FAQ
What is the avahi-dnsconfd command used for?
avahi-dnsconfd is a daemon that configures unicast DNS servers based on mDNS/DNS-SD announcements on the local network. It connects to a running avahi-daemon and monitors for DNS server announcements. When a unicast DNS server is announced or removed from the network, avahi-dnsconfd executes the action script /etc/avahi/avahi-dnsconfd.action to update the system's DNS configuration. This provides DHCP-like DNS server discovery using mDNS. The daemon requires avahi-daemon to be running. It is useful in environments where DNS servers are dynamically announced via Zeroconf/Bonjour protocols rather than configured through traditional DHCP.
How do I run a basic avahi-dnsconfd example?
Run `avahi-dnsconfd` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -D, --daemonize do in avahi-dnsconfd?
Run as a background daemon and log to syslog