Linux: DNS replacement in systemd.

On Linux running systemd, DNS replacement is ① In /etc/systemd/resolved.conf, where it is commented out as# DNS =


Specify the IP address of the DNS server, as in ②

systemctl restart systemd-resolved

And apply.

systemd-resolve --status

So, check.

Unclear point

The default DNS is systemd-resolve --status, which didn't come out first.

The resolver provided by systemd is local # 53, even if you search for the name with nslookup

$ nslookup

Non-authoritative answer:
Address: 2a03:2880:f10f:83:face:b00c:0:25de

Only comes out. Perhaps, if you follow steps ①, ②, and ③, you will be able to call the DNS server that was rewritten inside systemd-resolved.

Recommended Posts

Linux: DNS replacement in systemd.
[Linux] DNS settings
Linux permissions in Java
Seurat in Linux (installation)
DNS server in Python ....
SSH restrictions in Linux environment
Run Amazon Linux 2 in VirtualBox
Handle dates in Linux bash commands
Install tensorflow in Docker (LINUX) (memo)
Put only kubectl in Amazon Linux 2
Replacement of strings containing Linux spaces
Linux command (basic in basic) personal memo
Change font size in Serene Linux