When you add or delete a machine, always make your changes in the data files stored on your primary DNS server. Do not make changes or edit the files on your secondary servers because those will be automatically updated from the primary server based on your changing the SOA serial number.
For example, to add the host rigel to the doc.com domain:
Create a /etc/resolv.conf file on rigel.
Add dns to the hosts line of rigel's /etc/nsswitch.conf file
(See "DNS and Internet Access".)
Add an address (A) record for rigel to the primary server's hosts file.
rigel IN A 188.8.131.52
Add any additional optional records for rigel to the primary server's hosts file.
Optional records could include:
Mail exchange (MX)
Well known services (WKS)
Host information (HINFO)
Add a PTR record for rigel to the hosts.rev file.
Increment the SOA serial number in the primary server's hosts and hosts.rev files.
Reload the server's data.
Either reboot the server or enter:
# kill -HUP `cat /etc/named.pid`
These steps are explained in more detail in Solaris Naming Setup and Configuration Guide.
To remove a machine from a DNS domain:
Remove dns from the hosts line of the machine's nsswitch.conf file.
Remove the machine's /etc/resolv.conf file.
Delete the records for that machine from the primary server's hosts and hosts.rev files.
If the machine has CNAME records pointing to it, those CNAME records must also be deleted from the hosts file.
Set up replacements for services supported by the removed machine.
If the machine is a primary server, mail host, or host for any other necessary process or service, you must take whatever steps are necessary to set up some other machine to perform those services.