Ubuntu 20.04 systemd-resolved 設定

設定檔位置: /etc/systemd/resolved.conf

設定檔格式說明

# DNS解析工具
resolvectl query cloudflare.com

# Output:
cloudflare.com: 104.16.133.229                 -- link: eth0
                104.16.132.229                 -- link: eth0
                2606:4700::6810:84e5           -- link: eth0
                2606:4700::6810:85e5           -- link: eth0

-- Information acquired via protocol DNS in 9.4ms.
-- Data is authenticated: no

# 指定解析TXT紀錄
resolvectl -t TXT query cloudflare.com

# 重新啟動 systemd-resolved 服務
sudo systemctl restart systemd-resolved

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *