1833588 Members
4250 Online
110061 Solutions
New Discussion

Re: 'resolv.conf' file

 
SOLVED
Go to solution
O'lnes
Regular Advisor

'resolv.conf' file

What IP address is the best to set to nameserver in the 'resolv.conf' file ?

Thanks.



Andy
5 REPLIES 5
U.SivaKumar_2
Honored Contributor

Re: 'resolv.conf' file

Hi,
The nearest DNS server should be set as first
nameserver and then other DNS servers.

And if you are running NAMED in the same server
then you have to set the loopback address in the /etc/resolv.conf as the first place. Use
domain directive.
eg:
domain mydomain.com
nameserver 127.0.0.1
nameserver
nameserver
In this case your server itself is a DNS server

regards,
U.SivaKumar
Innovations are made when conventions are broken
O'lnes
Regular Advisor

Re: 'resolv.conf' file

What is the use to set the localhost(127.0.0.1) as nameserver? Thanks.
Andy
U.SivaKumar_2
Honored Contributor

Re: 'resolv.conf' file

Hi,
See since you are running a DNS in a same server . DNS will be running in loopback ip address and your network interface addresses.

If you want name resolution on the above server, it is recommended to use 127.0.0.1 which is a loopback address which will reduce the packet processing overhead.

But the overhead will be more if you set network's ip address .
As the packet as to pass the buffers etc.
regards,
U.SivaKumar





Innovations are made when conventions are broken
O'lnes
Regular Advisor

Re: 'resolv.conf' file

I know some linux server set its nameserver to mail server 's IP address , is it suitable?
Andy
U.SivaKumar_2
Honored Contributor
Solution

Re: 'resolv.conf' file

Hi,
you can do that provided you are running DNS in the mail server. Normally it is good to run
DNS in a separate server if the dns clients and
internet traffic more.


regards,
U.SivaKumar
Innovations are made when conventions are broken