reddirtranch

Registered
Jun 28, 2006
2
0
151
Hello, as far as WHM/cpanel is concerned, can I use the same IP address for two different nameservers and is it as easy as editing /etc/nameserverips and reloading bind or is there a better way to accomplish this ?

for example :
I have ns1.domain.com and ns2.domain.com configured with 1.1.1.1 and 1.1.1.2
can I just add ns1.anotherdomain.com and ns2.anotherdomain.com with the same IP addresses so the file would look something like this ?

1.1.1.1=ns1.domain.com
1.1.1.1=ns1.anotherdomain.com
1.1.1.2=ns2.domain.com
1.1.1.2=ns2.anotherdomain.com

or would it be

1.1.1.1=ns1.domain.com ns1.anotherdomain.com
1.1.1.2=ns2.domain.com ns2.anotherdomain.com


Thanks

-red
 

angelina_holy

Well-Known Member
Aug 6, 2006
113
0
166
ip address

I don't think you will be able to assign same ip address to two nameservers . The nameservers resolve the hostname into the ip address of the server
 

jester.ro

Well-Known Member
PartnerNOC
Feb 6, 2004
303
0
166
Bucharest, Romania
cPanel Access Level
DataCenter Provider
yes you can.

Just make sure you have "allow sharing nameserver ip's" ticket in WHM.

And use the first method you've desicribed, each ip-ns pair on it's own line.
 

mrskippy

Active Member
Aug 11, 2006
26
0
151
OK, did this above. Added domains neofied.com, totaldisney.com and eyeondisney.com with NS1 and NS2 records for each. Made changes at Godaddy. Restarted. This is what I'm seeing upon restarted. Noted where it says "bad dotted quad." Also note the "long longer listening" ... are all these things normal?

named started ok Aug 12 13:26:54 cpanel named[19661]: shutting down: flushing changes Aug 12 13:26:54 cpanel named[19661]: stopping command channel on 127.0.0.1#953 Aug 12 13:26:54 cpanel named[19661]: no longer listening on 127.0.0.1#53 Aug 12 13:26:54 cpanel named[19661]: no longer listening on 209.85.49.102#53 Aug 12 13:26:54 cpanel named[19661]: no longer listening on 209.85.49.112#53 Aug 12 13:26:54 cpanel named[19661]: exiting Aug 12 13:26:54 cpanel named: succeeded Aug 12 13:26:54 cpanel named[28105]: starting BIND 9.2.4 -u named Aug 12 13:26:54 cpanel named[28105]: using 8 CPUs Aug 12 13:26:54 cpanel named: named startup succeeded Aug 12 13:26:54 cpanel named[28105]: loading configuration from '/etc/named.conf' Aug 12 13:26:54 cpanel named[28105]: no IPv6 interfaces found Aug 12 13:26:54 cpanel named[28105]: listening on IPv4 interface lo, 127.0.0.1#53 Aug 12 13:26:54 cpanel named[28105]: listening on IPv4 interface venet0:0, 209.85.49.102#53 Aug 12 13:26:54 cpanel named[28105]: listening on IPv4 interface venet0:1, 209.85.49.112#53 Aug 12 13:26:54 cpanel named[28105]: command channel listening on 127.0.0.1#953 Aug 12 13:26:54 cpanel named[28105]: zone 0.in-addr.arpa/IN: loaded serial 42 Aug 12 13:26:54 cpanel named[28105]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700 Aug 12 13:26:54 cpanel named[28105]: zone 255.in-addr.arpa/IN: loaded serial 42 Aug 12 13:26:54 cpanel named[28105]: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700 Aug 12 13:26:54 cpanel named[28105]: dns_rdata_fromtext: /var/named/eyeondisney.com.db:14: near '%nameservera%': bad dotted quad Aug 12 13:26:54 cpanel named[28105]: zone eyeondisney.com/IN: loading master file /var/named/eyeondisney.com.db: bad dotted quad Aug 12 13:26:54 cpanel named[28105]: zone mcclimans.com/IN: loaded serial 2006081106 Aug 12 13:26:54 cpanel named[28105]: zone ns1.mcclimans.com/IN: loaded serial 2006081101 Aug 12 13:26:54 cpanel named[28105]: zone server.mcclimans.com/IN: loaded serial 2006081101 Aug 12 13:26:54 cpanel named[28105]: dns_rdata_fromtext: /var/named/neofied.com.db:14: near '%nameservera%': bad dotted quad Aug 12 13:26:54 cpanel named[28105]: zone neofied.com/IN: loading master file /var/named/neofied.com.db: bad dotted quad Aug 12 13:26:54 cpanel named[28105]: dns_rdata_fromtext: /var/named/totaldisney.com.db:14: near '%nameservera%': bad dotted quad Aug 12 13:26:54 cpanel named[28105]: zone totaldisney.com/IN: loading master file /var/named/totaldisney.com.db: bad dotted quad Aug 12 13:26:54 cpanel named[28105]: zone localdomain/IN: loaded serial 42 Aug 12 13:26:54 cpanel named[28105]: zone localhost/IN: loaded serial 42 Aug 12 13:26:54 cpanel named[28105]: running Aug 12 13:26:54 cpanel named[28105]: zone ns1.mcclimans.com/IN: sending notifies (serial 2006081101) Aug 12 13:26:54 cpanel named[28105]: zone server.mcclimans.com/IN: sending notifies (serial 2006081101) Aug 12 13:26:54 cpanel named[28105]: zone mcclimans.com/IN: sending notifies (serial 2006081106) Aug 12 13:26:54 cpanel named[28105]: received notify for zone 'ns1.mcclimans.com' Aug 12 13:26:55 cpanel named[28105]: received notify for zone 'server.mcclimans.com' Aug 12 13:26:55 cpanel named[28105]: received notify for zone 'mcclimans.com'