add the linux host to DNS

I built the new linux server. And i want to add it to DNS. Please help me how to do this !!!

thanks in advance ! :slight_smile:

Hi,

You can add the DNS entries in the /etc/resolv.conf file.

Thanks Siva! it's useful for me...

And, we need to edit nsswitch.conf file ?

What is the use of this file ?

nsswitch.cof is for NIS client config
this is not related to DNS

This is incorrect, nsswitch.conf is not for NIS client config. It is relevant for host names and it determines the order in which the various sources are called..

thnx for correcting me what is the use of netgroup under nis

The best way to do this would be to execute

/usr/sbin/system-config-network

when you are unsure of doing things.

Also, /etc/nsswitch.conf should have the following entry. But, that will be taken care of by the system-config-network command

hosts:      files dns

And, have you created an "A" (host) entry in the DNS server for both forward and reverse lookup zones? Otherwise, clients will not be able to communicate with the server by the name.