Solaris DHCP and DNS

I have managed to setup my Solaris box to receive an IP number from a DHCP server. In addition, I can ping and telnet between my dhcp server and my solaris box using the IP number. However, I can't resolve addresses by name from my solaris box.

In my nsswitch.conf file I have:
hosts: dns

In my /etc/defaultrouter I have placed the IP address of my dhcp server.

Any hints?

nsswitch.conf
hosts: files dns

the reason you have files in there is cuz if dns is down and you have it in your /etc/hosts it will still resolve. also its always quicker resolveing from /etc/hosts vs dns.

(hostname):/ # cat /etc/resolv.conf
nameserver      x.x.x.x
nameserver      x.x.x.x
domain  x.com

you have to make sure you have the appropriate nameservers specified in the /etc/resolve.conf file.

ah, the old resolv.conf will get you every time. I will try it out tonight and let you know (hopefully from my Solaris box...)

Yup, that worked. Now all I have to do is figure out how to setup my default gateway instead of typing "route add" everytime my box comes up...

Back to searching the forums...

Thanks for your help!

echo x.x.x.x > /etc/defaultrouter