[YLUG] DNS

Alex Howells alex.howells at 0wn3d.us
Sat Feb 9 16:11:32 GMT 2008


On 09/02/2008, Dr P Dupre <pd520 at york.ac.uk> wrote:
> How can I get the name of the DNS that I am using ?
> Can I have 2 name servers ? one local and one for the rest.

cat /etc/resolv.conf

Output from `dig` will also show you which one it's querying.

You can have up to three nameservers in /etc/resolv.conf if I recall
correctly, and you can use 'domain' and 'search' to make querying
things a little bit faster - less typing, a la:

    domain bytemark.co.uk
    nameserver 80.68.80.24
    nameserver 80.68.80.25

    ping cr01.sov

    Rather than:   ping cr01.sov.bytemark.co.uk

Alex



More information about the York mailing list