Ubuntu 18 升级至 20 导致 DNS 中断

Ubuntu 18 升级至 20 导致 DNS 中断

在我升级我的 Ubuntu 18 DNS 服务器之前,BIND 看起来像这样:

bind9.service - BIND Domain Name Server
   Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2023-03-04 15:49:57 EST; 1 weeks 1 days ago
     Docs: man:named(8)
 Main PID: 1496 (named)
    Tasks: 5 (limit: 4654)
   CGroup: /system.slice/bind9.service
           └─1496 /usr/sbin/named -f -u bind

升级到20之后看起来是这样的:

named.service - BIND Domain Name Server
     Loaded: loaded (/lib/systemd/system/named.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2023-02-05 19:16:10 EST; 1s ago
       Docs: man:named(8)
    Process: 67132 ExecStart=/usr/sbin/named -f $OPTIONS (code=exited, status=1/FAILURE)
   Main PID: 67132 (code=exited, status=1/FAILURE)

我收到如下错误:

Refusing to operate on alias name or linked unit file bind9.service

Apr 01 19:26:46 server1 systemd[1]: named.service: Scheduled restart job, restart counter is at 5.
Apr 01 19:26:46 server1 systemd[1]: Stopped BIND Domain Name Server.
Apr 01 19:26:46 server1 systemd[1]: named.service: Start request repeated too quickly.
Apr 01 19:26:46 server1 systemd[1]: named.service: Failed with result 'exit-code'.
Apr 01 19:26:46 server1 systemd[1]: Failed to start BIND Domain Name Server.

我在日志中没有看到任何有助于解释这些错误的内容。我需要删除/重新创建一些链接才能使 BIND 正常工作吗?

相关内容