Skip to main content

systemd-resolved

Ubuntu 22.04 Host DNS 由 systemd-resolved 管理,本機實做 DNS Server 在 127.0.0.53,更改 DNS 的方式會跟以往不同

Manually DNS Server

手動指定特定網址解析用的 DNS Server

/etc/systemd/resolved.conf.d/naming.conf
[Resolve]
DNS=1.1.1.1 8.8.8.8
Domains=~yourdomain.com