systemd-resolved get current DNS servers
When you try to fetch your current DNS server settings on your Linux machine and it is using systemd-resolve, the /etc/hosts won’t be useful, neither the /etc/systemd/resolved.conf as they’re empty by default.
Run the command below to get your current nameservers:
sudo resolvectl status












