
방금 Ubuntu 상자를 Ubuntu 18.04(Bionic Beaver)로 업그레이드했는데 DNS 작동이 중단되었습니다. 이 상자에 대한 한 가지 "재미있는" 점은 이 상자에서 Pi-Hole을 실행하고 있기 때문에 dnsmasq
대신 실행되기를 원한다는 것입니다 . systemd-resolved
나는 여러 가지를 시도했는데 현재 중요한 것은 다음과 같습니다.
/etc/NetworkManager/NetworkManager.conf
dns=dnsmasq
섹션 에 포함되어 있습니다 [main]
.
나는 비활성화했습니다 systemd-resolved
:
sudo systemctl disable systemd-resolved.service
sudo service systemd-resolved stop
Pi-hole이 실행 중인 것 같습니다.
chris@psi:/etc/systemd$ sudo pihole status
[✓] DNS service is running
[✓] Pi-hole blocking is Enabled
/etc/resolv.conf
심볼릭 링크입니다
chris@psi:~$ ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 27 Jun 10 14:55 /etc/resolv.conf -> /run/resolvconf/resolv.conf
다음을 포함합니다:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.1
그러나 DNS 조회 시도는 실패합니다.
chris@psi:~$ host pi-hole.net
;; connection timed out; no servers could be reached
또 하나 이상한 점. Pi-Hole 관리 웹사이트에 접속했는데 차단 목록에 도메인이 1개만 있다고 나와 있습니다(오늘 아침에 정리하기 전 도메인은 약 125K였습니다).
지금 정말 난감합니다. 좋은 DNS 진단 도구를 찾을 수 없는 것 같습니다(어떤 DNS 서버를 사용하려고 하는지, 어디에서 DNS 서버를 찾고 있는지 알려주세요.) 또는 무슨 일이 일어나고 있는지에 대한 힌트를 줄 수 있는 로그 파일이 필요합니다.
아무것도 모르는 사람들을 위한 단서가 있나요?