jamesbond

Well-Known Member
Oct 9, 2002
737
1
168
If I run my primary and secondary DNS on the CPanel server itself, do I need to list those 2 ip's also after 127.0.0.1?

domain domain.com
search domain.com
nameserver 127.0.0.1
nameserver IP-of primary NS (local)
nameserver IP-of secondary NS2 (local)
nameserver IP-of –outsource-nameserver-1
nameserver IP-of –outsource-nameserver-2

or is this better?

domain domain.com
search domain.com
nameserver IP-of primary NS (local)
nameserver IP-of secondary NS2 (local)
nameserver IP-of –outsource-nameserver-1
nameserver IP-of –outsource-nameserver-2

or this?

domain domain.com
search domain.com
nameserver 127.0.0.1
nameserver IP-of –outsource-nameserver-1
nameserver IP-of –outsource-nameserver-2

I did some searches on google, and found several documents that talk about not using 127.0.0.1 in resolv.conf, because it can cause problems with BIND.
Just search on 'resolv.conf 127.0.0.1' and you'll see what I mean.
 

netarus

Well-Known Member
Oct 27, 2002
105
0
166
I'm not an expert, however, I have never heard of this. I found the link you were talking about on google. It comes up as the first page when you run your query. 127.0.0.1 is used to resolve the name of your machine locally. IMO, I wouldn't remove the entry.
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:1f2355d7cb][i:1f2355d7cb]Originally posted by jamesbond[/i:1f2355d7cb]

If I run my primary and secondary DNS on the CPanel server itself, do I need to list those 2 ip's also after 127.0.0.1?

domain domain.com
search domain.com
nameserver 127.0.0.1
nameserver IP-of primary NS (local)
nameserver IP-of secondary NS2 (local)
nameserver IP-of –outsource-nameserver-1
nameserver IP-of –outsource-nameserver-2

or is this better?

domain domain.com
search domain.com
nameserver IP-of primary NS (local)
nameserver IP-of secondary NS2 (local)
nameserver IP-of –outsource-nameserver-1
nameserver IP-of –outsource-nameserver-2

or this?

domain domain.com
search domain.com
nameserver 127.0.0.1
nameserver IP-of –outsource-nameserver-1
nameserver IP-of –outsource-nameserver-2

I did some searches on google, and found several documents that talk about not using 127.0.0.1 in resolv.conf, because it can cause problems with BIND.
Just search on 'resolv.conf 127.0.0.1' and you'll see what I mean.

[/quote:1f2355d7cb]
I wrote a how-to you can find your answers there
http://forums.cpanel.net/read.php?TID=5097&page=2#22154
 

jamesbond

Well-Known Member
Oct 9, 2002
737
1
168
itf, yes I read your howto before I posted, but to me it still wasn't clear if I should add my own primary and secondary IP in the resolv.conf if they run on the same server.
Therefor I listed 3 options, which one would you recommend?

And as I said I found documents in Google that talk about 127.0.0.1 causing problems with BIND sometimes?
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:6c43a604f7][i:6c43a604f7]Originally posted by jamesbond[/i:6c43a604f7]

itf, yes I read your howto before I posted, but to me it still wasn't clear if I should add my own primary and secondary IP in the resolv.conf if they run on the same server.
Therefor I listed 3 options, which one would you recommend?

And as I said I found documents in Google that talk about 127.0.0.1 causing problems with BIND sometimes?
[/quote:6c43a604f7]
You have not to add your own local primary and secondary DNS IPs , which you have currently on your box to /etc/resolv.conf only one 127.0.0.1 is enough

only three nameserver directives are used and two of them should be nameservers which are not hosted on your current box (outsource nameservers) i.e. upstream providers' nameservers
note: only the first three nameserver ips are considered and used.

nameserver 127.0.0.1
nameserver outsource-nameserver-IP1
nameserver outsource-nameserver-IP2

[quote:6c43a604f7][i:6c43a604f7] Originally posted by jamesbond[/i:6c43a604f7]
And as I said I found documents in Google that talk about 127.0.0.1 causing problems with BIND sometimes?
[/quote:6c43a604f7]
[b:6c43a604f7]ITF[/b:6c43a604f7] & there is no problem with 127.0.0.1 in resolv.conf . and what you refer to them is not a document these are others users' thoughts on the other Internet forums which are not valid for the latest version of BIND if you follow as I wrote above.