Quick question about resolv.conf

Hey all!

I'm working on Solaris10 right now and I was fiddling around with a fresh install and was wondering about the service that uses resolv.conf?

I know prior to Sol10 (SMF) it was /etc/init.d/inetsvc stop and start to reload resolv.conf changes

but I can't seem to find the correct SMF FMRI to restart

can anyone point me in the right direction?

i've tried network/service but that doesn't seem to make a difference

resolv.conf is read by any program that needs it. It's like /etc/passwd --- you don't restart a service when you change that. Many times I have had resolv.conf problems and they go away when I fix the file. And this includes Solaris 10. :confused:

Are you sure that /etc/nsswitch.conf has dns in the hosts entry?

Another thing I do when changes don't immediately take effect is to restart the nscd which has a FMRI involving the word "cache". Try
svcs \*cache\* to find it.

nscd = name server caching daemon

Hi....

Do below steps.

#vi /etc/resolve.conf

Make sure correct DNS ip and hostnaems

#vi /etc/nsswitch.conf

hosts : DNS,NIS or dns,nis

no need to restart the server.

#svcsdm restart or refresh network
enough above steps. If u possible u can give #devfsadm command.

Regards,
Arjun Reddy.

'dns nis' is dependent on if you want to use dns and/or you have the nis service available to you. 'files dns' is a more default approach.

Thanks for the replies :slight_smile: I'm going to try to make this my new home away from home

I just tried it a few times, and it was indeed the name-service-cache service

Just for anyone else wanting to know how to make the resolv.conf changes immediate

svcadm restart svc:/system/name-service-cache