You are not logged in.

#1 2020-05-05 14:59:02

rossboulet
Member
Registered: 2015-01-23
Posts: 29

named won't respond on IPv6 after boot

I encountered this on a 32-bit machine which I'm migrating to 64-bit. I reproduced the issue on 64-bit. I'm running a DNS server (named from bind) with all packages up to date. When I boot the server, named will answer just fine on IPv4, but refuses connections on IPv6. If I'm on the server, I can connect to ::1, but not from another host on the network via IPv6. As soon as I restart named, it all works fine. I'm wondering if there is a timing issue between the network starting and named. I'm using netctl to manage the network, which assigns static IPv4 and IPv6 addresses.

Any suggestions?

As a workaround,I created a named.timer in systemd with an OnBootSec=30 to delay the start of named at boot. Seems to work, but is this solved or just a workaround?

/etc/systemd/system/named.timer

[Unit]
Description=Bind DNS Server

[Timer]
OnBootSec=30

[Install]
WantedBy=timers.target

then

# systemctl disable named.service
# systemctl enable named.timer

I really hate this damn machine,
I wish that they would sell it.
It never does just what I want,
But only what I tell it.    -Anonymous

Offline

Board footer

Powered by FluxBB