Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
24
rated 0 times [  24] [ 0]  / answers: 1 / hits: 25031  / 3 Years ago, mon, november 29, 2021, 1:03:41

How can I tell which DNS servers DNSMasq is using to resolve a name to an IP address?
I can't figure it out. All of the existing questions here seem to just go as far as telling users that they are using DNSMasq.


More From » dns

 Answers
6

You can find the DNS servers with the NetworkManagerCLI (nmcli) tool:



nmcli dev show | grep DNS
IP4.DNS[1]: 172.22.216.251
IP6.DNS[1]: 2a01:4f0:400c:1::1


Ubuntu 14.04 and older



The command is slightly different in older (<15.04) versions of Ubuntu:



> nmcli dev list | grep DNS
IP4.DNS[1]: 172.22.216.251
IP6.DNS[1]: 2a01:4f0:400c:1::1

[#22166] Monday, November 29, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
shadowoof

Total Points: 293
Total Questions: 112
Total Answers: 137

Location: Burkina Faso
Member since Sun, Nov 21, 2021
3 Years ago
;