The UNIX and Linux Forums  

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



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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Domain name bang_dba SUN Solaris 2 08-30-2008 10:41 AM
How do I change domain name from shell? lucas IP Networking 2 05-12-2008 11:14 AM
How do I change domain name from shell? lucas UNIX for Dummies Questions & Answers 3 05-09-2008 03:17 AM
Domain wcc9968 UNIX for Dummies Questions & Answers 1 11-29-2000 11:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-27-2008
kim_custodio kim_custodio is offline
Registered User
  
 

Join Date: Jun 2005
Location: i am working here in Singapore
Posts: 3
change dns (domain name)

hi gurus,

need to check other than the hosts file, what else i need to change after we have changed the domain name in our company. currently, we are using olddnsname.com and will change it to newdnsname.com. i am not sure where else in solaris i need to take a look.

please advise.

thank you in advance.

regards,
kim
  #2 (permalink)  
Old 04-27-2008
gnom gnom is offline
Registered User
  
 

Join Date: Feb 2008
Location: New Zealand
Posts: 66
What to change

Solaris provides extensive control over the means of looking up various name services including DNS. If DNS resolution of hostnames has not been setup, the nsswitch.conf file must be configured in addition to resolv.conf.

Once you have configured the DNS client settings in Solaris, you need to alter the /etc/nsswitch.conf file. This name services configuration file controls a variety of lookup types with several services including NIS/NIS+ and LDAP.

To configure your host to perform hostname lookups with DNS, modify the line that starts with hosts: to include the keyword dns. For example, if your /etc/nsswitch.conf file hosts line looks like:

hosts: files


change it to read:

hosts: files dns


The order of keywords on this line indicates the order in which Solaris references the name services. The keyword files represents the /etc/hosts file.
  #3 (permalink)  
Old 04-27-2008
kim_custodio kim_custodio is offline
Registered User
  
 

Join Date: Jun 2005
Location: i am working here in Singapore
Posts: 3
hi gnom,

thanks for prompt reply. if i do testing, can resolv.conf looks like this: ?

search olddnsname.com
nameserver 172.x.x.x

search newdnsname.com
nameserver 172.x.x.x

rgds
  #4 (permalink)  
Old 04-27-2008
gnom gnom is offline
Registered User
  
 

Join Date: Feb 2008
Location: New Zealand
Posts: 66
resolv.conf

The file looks like this:

domain yourdomain.xx
nameserver xxx.xxx.xxx.xxx (your dns-server)
nameserver xxx.xxx.xxx.xxx (2nd dns-server)
...
  #5 (permalink)  
Old 04-28-2008
kim_custodio kim_custodio is offline
Registered User
  
 

Join Date: Jun 2005
Location: i am working here in Singapore
Posts: 3
thanks a lot gnom!
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 On




All times are GMT -4. The time now is 02:14 PM.


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