* Raj, Ashok ([EMAIL PROTECTED]) wrote: > Folks > > Trouble: DHCP gets IP addr, but doesn't create /etc/resolv.conf > > I have had trouble like this on another system, but just ignored, now > that I have hit it on another system I would like to find out a > solution. Can someone help. > > During installation the installer didn't like the network card, when I > setup to use network it hung and died. So I installed it without > networking enabled hoping to enable it after. > > Once install was completed, I use the Start->Administration->Configure > devices and connection > > Then clicked on the interface (igb0), set DHCP, then activate. > > I saw ifconfig showed the new interface. > > I always do this on every new solaris install since it doesn't seem to > be created automatically during install for my system name to be > visible. > > - Edit /etc/hostname.igb0 (add inet <myhostname>) > > I rebooted. > > Other external systems can see this new machine name when i do nslookup > my-machine. > > Noticed that /etc/revolv.conf wasn't created automatically as it did on > my other solaris boxes. So I just copied one from another on the same > network. > > > Now nslookup <external_machine> works right. but still when I say ping > > #ping ext-machine > ping: unknown host ext-machine > > but nslookup shows it ok. > > Any idea how to fix this lookup problem? Btw: reverse lookup also works > fine. I think the problem is /etc/resolv.conf not being created > automatically causes some trouble, cant figure out how to fix it.
You need to also make sure that /etc/nsswitch.conf has dns on the hosts: line. Such as: hosts: files dns You may need to refresh the name service cache after making this change: svcadm refresh name-service-cache Cheers, Glenn _______________________________________________ opensolaris-discuss mailing list [email protected]
