Ubuntu DNS Servers

How to get configured DNS servers in Ubuntu

In some situations could be needed to know exactly which DNS server is being used by an Ubuntu host. There are several ways to get this info, however the best option I have found is to use the resolvectl service. This service is in charge of the name resolution of the local applications. You can use it executing resolvectl status or just resolvectl. The command will return the DNS servers configured in each network interface, and which one is currently being used....

April 28, 2024 ยท 1 min ยท Yvoictra