Taking a new F34 server installation and configuring it to be a DHCP and DNS server using dnsmasq, I consistently see a failure at boot where it appears the interface is not yet up. (Unmodified dnsmasq.service, shown below). If I manually start the service again a few seconds later, it succeeds. Seems like a systemd configuration issue, but the service file looks like it has the right dependency order. What am I not getting?
[Unit]
Description=DNS caching server.
After=**network.target**
[Service]
ExecStart=/usr/sbin/dnsmasq -k
[Install]
WantedBy=multi-user.target
Error:
Sep 28 16:01:40 workhorse dnsmasq[882]: dnsmasq: failed to create listening socket for 192.168.1.18: Cannot assign requested address
Sep 28 16:01:40 workhorse dnsmasq[882]: failed to create listening socket for 192.168.1.18: Cannot assign requested address
Sep 28 16:01:40 workhorse dnsmasq[882]: FAILED to start up
dnsmasq.conf contains the below (interface has static IP address 192.168.1.18)
listen-address=127.0.0.1,192.168.1.18
Thanks for any pointers.I’ve been scratching my head for a couple of Fedora releases and server builds, and am tired of settling for logging in and manually starting the service.