The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
grep unix.com with google



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2009
Registered User
 

Join Date: Dec 2008
Posts: 46
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
  #2 (permalink)  
Old 03-11-2009
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,146
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.

Are you sure that /etc/nsswitch.conf has dns in the hosts entry?
  #3 (permalink)  
Old 03-11-2009
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,146
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
  #4 (permalink)  
Old 03-12-2009
Registered User
 

Join Date: May 2008
Posts: 69
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.
  #5 (permalink)  
Old 03-12-2009
pupp's Avatar
pupp pupp is online now Forum Staff  
cap_10hdx 1
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 604
'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.
  #6 (permalink)  
Old 03-12-2009
Registered User
 

Join Date: Dec 2008
Posts: 46
Thanks for the replies 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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
resolv.conf aliahsan81 Shell Programming and Scripting 8 10-14-2008 03:19 AM
resolv.conf & the internet stevie_velvet SUN Solaris 1 08-15-2008 05:26 PM
Suse 10 resolv.conf kjbaumann SuSE 2 07-15-2008 01:45 PM
dns and resolv.conf b03der UNIX for Dummies Questions & Answers 10 07-26-2002 05:34 AM
/etc/resolv.conf rpnhavoc IP Networking 1 02-11-2002 01:04 PM



All times are GMT -4. The time now is 11:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0