On Linux running systemd, DNS replacement is
/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
The default DNS is
systemd-resolve --status, which didn't come out first.
The resolver provided by systemd is local 127.0.0.53 # 53, even if you search for the name with
$ nslookup facebook.com Server: 127.0.0.53 Address: 127.0.0.53#53 Non-authoritative answer: Name: facebook.com Address: 18.104.22.168 Name: facebook.com 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.