在 bind9 上安装 pihole

Install pihole over bind9

我在现有的 bind9 安装上安装了 pihole。现在我无法启动 FTL:

pihole-FTL dnsmasq: failed to create listening socket for 192.168.0.2: Address already in use

我是否必须关闭 bind9,或者我可以更改 bind9 的端口(当 pihole 工作时,我不再需要我的 bind9,但也许 pihole 需要 bind9 - 但我找不到任何关于它的信息(没有关于 Ubuntu 18.04).

中仍然存在的配置文件

附件:

整个输出:

# systemctl status pihole-FTL.service 
● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated)
   Active: active (exited) since Mon 2020-09-28 21:18:59 CEST; 1s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 21530 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
  Process: 21546 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Sep 28 21:18:59 ubuntu1804 pihole-FTL[21530]: Not running
Sep 28 21:18:59 ubuntu1804 systemd[1]: Stopped LSB: pihole-FTL daemon.
Sep 28 21:18:59 ubuntu1804 systemd[1]: Starting LSB: pihole-FTL daemon...
Sep 28 21:18:59 ubuntu1804 pihole-FTL[21546]: Not running
Sep 28 21:18:59 ubuntu1804 su[21581]: Successful su for pihole by root
Sep 28 21:18:59 ubuntu1804 su[21581]: + ??? root:pihole
Sep 28 21:18:59 ubuntu1804 su[21581]: pam_unix(su:session): session opened for user pihole by (uid=0)
Sep 28 21:18:59 ubuntu1804 pihole-FTL[21546]: dnsmasq: failed to create listening socket for 192.168.0.2: Address already in use
Sep 28 21:18:59 ubuntu1804 su[21581]: pam_unix(su:session): session closed for user pihole
Sep 28 21:18:59 ubuntu1804 systemd[1]: Started LSB: pihole-FTL daemon.

我找到了可行的解决方案。我停止了 bind9 和 pihole-FTL。然后我又重新启动了pihole-FTL。然后它起作用了。 我禁用了 bind9 以确保它不会再打扰我。

systemctl stop bind9 pihole-FTL
systemctl start pihole-FTL
systemctl disable bind9