Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
28
rated 0 times [  28] [ 0]  / answers: 1 / hits: 63810  / 2 Years ago, sun, february 6, 2022, 12:04:28

We used to get current DNS settings by:


cat /etc/resolv.conf



But Ubuntu 12.04 has changed to use the resolvconf framework.
The above commond will only give me this:


# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1



And that is not the current DNS settings of my machine.



So, is there any kind of file or command I can refer to?


More From » dns

 Answers
5

Let's assume that NetworkManager is managing your network configurations.



Run in terminal



nm-tool | tail -n 8


(Here tail is optional, just for your convenience.) This will tell you your connection information, similar to ipconfig.


[#35119] Tuesday, February 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eving

Total Points: 162
Total Questions: 102
Total Answers: 112

Location: Trinidad and Tobago
Member since Thu, Dec 1, 2022
1 Year ago
;