dns - How can I find my DHCP nameservers? - Ask Ubuntu


i configured machine dhcp. can find ip addresses of name servers?

the canonical location dns resolvers on linux /etc/resolv.conf.

since networkmanager has taken on ifconfig primary network management component, file contains single resolver, namely localhost:

$ cat /etc/resolv.conf ... nameserver 127.0.1.1 

networkmanager, through dnsmasq, provides local dns resolver. dnsmasq dhcp-client (and has various other roles), hence 'knows' upstream dns resolvers.

you can use nmcli (the networkmanager command-line interface) query settings:

$ nmcli dev show | grep dns ip4.dns[1]:                             10.103.0.24 ip4.dns[2]:                             10.103.0.23 

in gui click on network indicator, , select "connection information" menu. upstream dns resolvers listed there.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User