[comp.unix.admin] How to change the machine default nameserver

mzaik@kaa.eng.ohio-state.edu (Tahsin Mzaik) (09/21/90)

Hello,

The default nameserver of our sun is incorrect.  This is 
evident by the fact that every it cannot reolve host names.
When I run "nstest", it polls the address 127.0.0.10 as the
name server.

How can I change this address?

Thanks.

verber@pacific.mps.ohio-state.edu (Mark Verber) (09/23/90)

> The default nameserver of our sun is incorrect.  This is 
> evident by the fact that every it cannot reolve host names.
> When I run "nstest", it polls the address 127.0.0.10 as the
> name server.

Yes.. that address looks rather wrong.  I expect you meant it to be 127.1?
Anyway, you can edit the file /etc/resolv.conf which gives a list of what
name servers you will query.  You can see man resolv.conf(5) for complete
information.

Cheers,
Mark