UbuntuとDebianのDNSの違いを理解する

UbuntuとDebianのDNSの違いを理解する

いいですね。 Debian 物理マシンと Ubuntu 仮想マシンがあります。私の質問は、UbuntuがDHCP(8.8.8.8)を介して割り当てられたDNSサーバーの代わりに検証に127.0.0.53を使用する理由です。しかし、私のDebianコンピュータはDHCPを介して割り当てられたDNSサーバーを使用しています。どちらもNetworkManagerサービスを使用しますが、Ubuntuではsystemd-resolvedサービスを使用する必要があるようです。どちらもNetworkManagerを使用し、Ubuntuだけがsystemd-resolvedに依存しているようで、理解できません。

Ubuntu

## VERIFICATION OF SERVICES UP
vm@ubuntu1804:~$  systemctl status NetworkManager | grep Active
   Active: active (running) since Fri 2023-06-09 16:21:08 BST; 21h ago
vm@ubuntu1804:~$ systemctl status systemd-resolved | grep Active
   Active: active (running) since Sat 2023-06-10 13:45:08 BST; 14min ago

## VERIFICATION OF /etc/resolv.conf FILE
vm@ubuntu1804:~$ cat /etc/resolv.conf | grep name
nameserver 127.0.0.53

## VERIFICATION OF PROFILE CONFIG
vm@ubuntu1804:~$ nmcli con show | grep DYN
DYNAMIC  4223e640-3e14-43c1-9b70-e59241ff8f79  ethernet  enp6s0 
vm@ubuntu1804:~$ nmcli con show DYNAMIC | grep "ipv4.dns:\|DNS"
ipv4.dns:                               --
IP4.DNS[1]:                             8.8.8.8

## VERIFICATION OF /etc/nsswitch.conf FILE
vm@ubuntu1804:~$ cat /etc/nsswitch.conf  | grep hosts
hosts:          files mdns4_minimal [NOTFOUND=return] dns myhostname

Debian

## VERIFICATION OF SERVICES UP
debian@debian:~/Desktop$ systemctl status NetworkManager | grep Active
     Active: active (running) since Fri 2023-06-09 15:37:15 BST; 22h ago
debian@debian:~/Desktop$ systemctl status systemd-resolved | grep Active
     Active: inactive (dead)

## VERIFICATION OF /etc/resolv.conf FILE
debian@debian:~/Desktop$ cat /etc/resolv.conf | grep name
nameserver 8.8.8.8

## VERIFICATION OF PROFILE CONFIG
debian@debian:~/Desktop$ nmcli con show | grep BR
BR0-PROFILE     1cd1c4bd-21bd-45de-9536-c22c261869da  bridge    BR0-INT 
debian@debian:~/Desktop$ nmcli con show BR0-PROFILE | grep "ipv4.dns:\|DNS"
ipv4.dns:                               --
IP4.DNS[1]:                             8.8.8.8

## VERIFICATION OF nsswitch.conf FILE
debian@debian:~/Desktop$ cat /etc/nsswitch.conf  | grep hosts
hosts:          files mdns4_minimal [NOTFOUND=return] dns myhostname mymachines

ベストアンサー1

おすすめ記事