DNS 서버 CLI 우분투 데스크탑 20.04 받기

DNS 서버 CLI 우분투 데스크탑 20.04 받기

netplan을 사용하여 서버를 설정했습니다. 내가 달리면nslookup또는networkctl 상태 --all그들 중 누구도 네임서버를 검색하지 않습니다.

  • nslookup blahblah.com
Server:     127.0.0.53         # what is this?
Address:    127.0.0.53#53      # what is this?

Non-authoritative answer:
Name:   www.remoteserver.com
Address: 52.128.23.153
  • networkctl status
                          Type: wlan
                         State: routable (unmanaged)
                        Driver: rtl8821ae
                        Vendor: Realtek Semiconductor Co., Ltd.
                         Model: RTL8821AE 802.11ac ...
             WiFi access point: ...
                       Address: 192.168.8.109
                                a::b:c:d:6dff
                       Gateway: 192.168.8.1 (...)

오직nm-cli서버를 보여줍니다:

nmcli device show | grep DNS
IP4.DNS[1]:                             192.168.8.1
IP4.DNS[2]:                             8.8.8.8
IP4.DNS[3]:                             8.8.4.4

이제 괜찮습니다. 하지만 nm-cli(및 네트워크 관리자)가 설치되지 않은 경우 DNS 서버를 가져오는 방법은 무엇입니까? 둘 다 DNS 서버를 반환해야 함에도 불구하고 다른 명령이 쓸모없는 이유는 무엇입니까?

관련 정보