change dns (domain name)


 
Thread Tools Search this Thread
Operating Systems Solaris change dns (domain name)
# 1  
Old 04-27-2008
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  
Old 04-27-2008
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  
Old 04-27-2008
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  
Old 04-27-2008
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  
Old 04-28-2008
thanks a lot gnom!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Linux is not appending domain name in DNS query

In my /etc/resolv.conf file there is domain name defined. But when I do nslookup the domain name is not appended. Why? (18 Replies)
Discussion started by: broy32000
18 Replies

2. UNIX for Advanced & Expert Users

Changing hosting company for one domain, how to deal with DNS?

Hello, Our organization is planning to move one domain from Dreamhost to Hubspot. Lets say, it is gem.xyxyxyxyx.com. Please note, website is not being migrated from one server to another, it is just hosting company. Here is from our internal DNS master server - # cat... (6 Replies)
Discussion started by: solaris_1977
6 Replies

3. Linux

Domain registrars & DNS servers

I have read many tutorials on bind and i understand the A,MX, CNAME records. Internally, on a LAN we can install bind and create all these records and we can tell all PC and servers to use this bind as DNS server.that's fine. On the Internet, when we have purchased a valid domain like... (5 Replies)
Discussion started by: coolatt
5 Replies

4. Shell Programming and Scripting

Command to flush specific domain in SunOS 5 DNS

Hello to all, May you help saying me how to flush a specific domain in Linux SunOS5 I know the command rndc is to flush DNS cache, but I would like to know: 1- How to do a flush only on specific domain 2- How to see the content of DNS Resolver cache (similar to info given by IPCONFIG... (2 Replies)
Discussion started by: Ophiuchus
2 Replies

5. UNIX for Advanced & Expert Users

useradd I want to change domain

Good morning every body When I add a new user the domain is my hostname I want to change it to my local domain EXample my computer hostname is X when I create a new user Y and he logged I see X@Y and me I want to have Y@localdomain Think (1 Reply)
Discussion started by: gone
1 Replies

6. Linux

Configuring dns in local domain

Hi everybody, for revolving local host name of my network, I set up an dns server to solve my problem, but til now, nothing happen when I ping a hostname, but work on IP. Can you help me to correct the configuration. Here is all my settings: Voici mes fichiers de configuration: -... (2 Replies)
Discussion started by: beloge2002
2 Replies

7. IP Networking

Select DNS Servers depending on the domain

Hello, I'm using CentOS 5.3, and I connect to a VPN in order to work. The problem is that I'm constantly accessing things on the local network and the remote network. But once I'm connected to the VPN I can't access local addresses by name, I have to use the ip-address. What I'd like is to... (4 Replies)
Discussion started by: martincastell
4 Replies

8. IP Networking

How do I change domain name from shell?

How do I change domain name from shell? And How do I check the domain name from shell? I know how to change hostname but not domain. Please help me. Thank you, (2 Replies)
Discussion started by: lucas
2 Replies

9. UNIX for Dummies Questions & Answers

How do I change domain name from shell?

How do I change domain name from shell? I know how to change hostname but not domain. Please help me. Thank you, (3 Replies)
Discussion started by: lucas
3 Replies
Login or Register to Ask a Question