Comments on: How to Find My DNS Server IP Address in Linux https://www.tecmint.com/find-my-dns-server-ip-address-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Mon, 24 Jul 2023 05:04:05 +0000 hourly 1 By: duck896 https://www.tecmint.com/find-my-dns-server-ip-address-in-linux/comment-page-1/#comment-1757597 Mon, 04 Apr 2022 18:53:59 +0000 https://www.tecmint.com/?p=33076#comment-1757597 When using local dns cache systemd-resolved you can use:

$ resolvectl status 

It will show the current DNS servers for each interface. You can specify the interface name (found with $ ifconfig) to filter a specific interface.

For example,

$ resolvectl status eth0
$ resolvectl status eth0

Sample Output

Link 1 (eth0)
      Current Scopes: DNS      
DefaultRoute setting: yes      
       LLMNR setting: yes      
MulticastDNS setting: no       
  DNSOverTLS setting: no       
      DNSSEC setting: no       
    DNSSEC supported: no       
  Current DNS Server: 10.0.0.1
         DNS Servers: 10.1.0.1
]]>
By: johngalt https://www.tecmint.com/find-my-dns-server-ip-address-in-linux/comment-page-1/#comment-1572023 Fri, 20 Aug 2021 01:47:40 +0000 https://www.tecmint.com/?p=33076#comment-1572023 In reply to Tudor.

Yes, anytime I see an article written since NetworkManager was forced upon us that still thinks resolv.conf is at all a useful source, I immediately know the author is clueless.

]]>
By: Anil Kumar Choudhury https://www.tecmint.com/find-my-dns-server-ip-address-in-linux/comment-page-1/#comment-1479426 Thu, 22 Apr 2021 06:10:13 +0000 https://www.tecmint.com/?p=33076#comment-1479426 $ nslookup -type=any google.com

Server: 192.168.7.1
Address: 192.168.7.1:53
Non-authoritative answer:
Name: google.com
Address: 142.250.191.206
google.com nameserver = ns1.google.com
google.com nameserver = ns4.google.com
google.com nameserver = ns2.google.com
google.com nameserver = ns3.google.com

Server: 192.168.7.1

]]>
By: rms-mit https://www.tecmint.com/find-my-dns-server-ip-address-in-linux/comment-page-1/#comment-1191064 Tue, 02 Jul 2019 22:51:41 +0000 https://www.tecmint.com/?p=33076#comment-1191064 In reply to Tudor.

I think you will find this is a dns cache on your local machine. see my other comment on the root article

]]>
By: rms-mit https://www.tecmint.com/find-my-dns-server-ip-address-in-linux/comment-page-1/#comment-1191063 Tue, 02 Jul 2019 22:49:30 +0000 https://www.tecmint.com/?p=33076#comment-1191063 Many Linux users these days use a dns cache and so the dns server in resolve.conf is a loopback address to the dns cache on your own PC/Linux.

systemd’s resolved is also often used but this updates resolve.conf for informational reference. Systemd-Resolved can have different dns servers for different networks concurrently and the resolve.conf will not reflect this but the man pages and status command are very informative.

network manager also does some things differently. i think it sets up one of these dns caches but id don’t know much about it.

I keep reading these “how to find my dns” how to pages but have yet to find one that covers the more modern scenarios.

]]>