Thursday, January 9, 2014

Linux - List all nameservers

In linux, Ubuntu, to list all nameservers the computer is using, run the following command:

$ nm-tool | tail -n 8


The results will be something like:

    Prefix:          16 (255.255.0.0)
    Gateway:         172.18.3.1

    DNS:             172.18.1.2
    DNS:             172.17.1.2
    DNS:             172.16.1.2