Friday, May 23, 2008

Set up DNS in Solaris 8

/etc/resolv.conf (not resolve.conf)- add the "nameserver xxx.xxx.xxx.xxx"

here/etc/nsswitch.conf- change the line that starts with "hosts" to include "dns" immediately
after "files""hosts files" to "hosts files dns"

/etc/defaultrouter- add the gateway IP here "xxx.xxx.xxx.xxx"

Restart inetd

Supposedly the following should work but it doesn't.
$ pkill -HUP inetd

I just kill inetd process and start it with
$ inetd -s

To check if it works. It will show how it routes to the yahoo's ip.
$ nslookup
> www.yahoo.com
.
.
.
> exit

$

No comments: