Web Hosting Talk







View Full Version : ns1 -okay. ns2 -wires crossed


Sketch
05-21-2002, 08:36 PM
Okay, so here's another question. :)

I was assigned 2 additional IP's for my nameservers. Pinging my domain shows the master IP for the server. pinging ns1.domain.com shows the first of the two additional IP's. pinging ns2.domain.com shows unresolved host. Fact is, it's resolving to the primary IP. That would be fine with me if I could figure out how to change ns2 to be the primary IP. I can't figure it out. Likewise, if I really want ns2 to resolve to the 2nd of the 2 additional IP's, then I have to figure out how to get it to stop resolving to the primary IP. I am really new to Linux and Weppliance, although somewhat helpful, is really screwing me up. Can anyone help me?

Aaron

panopticon
05-21-2002, 08:51 PM
if I could figure out how to change ns2 to be the primary IP. I can't figure it out.
When you register ns1.yourdomain.com and ns2.yourdomain.com at your register you have to tell them which IP these will resolve to. If ns2 is resolving to the wrong IP, you will need to update the IP for ns2 at your domain register.
Likewise, if I really want ns2 to resolve to the 2nd of the 2 additional IP's, then I have to figure out how to get it to stop resolving to the primary IP
Go to /etc/sysconfig/network-scripts where you will find a file ifcfg-eth0.

Copy this file to ifcfg-eth0:0, ifcfg-eth0:1, ifcfg-eth0:2,.. one per IP you want to bind to the box.

Edit each file replacing the line eth0 with eth0:0, eth0:1, eth0:2,..as per the filename (ed: bolded to make sure you read it :-), and replace the IP address with your new ipaddress, so that you have one ifcfg-eth0:(x) file per ip address.

When you're done do: ifup eth0:0, ifup eth0:1,....

Type the following command:
echo "216.60.38.11 ns1.domain.com ns1">>/etc/hosts <enter>
and the same of the ns2.

Edit /etc/bind/options.conf.wp with the IP addresses of the nameservers

Sketch
05-22-2002, 02:18 PM
thanks I'll give this a whirl when I can SSH into the server... ;)

abrazell

Sketch
05-22-2002, 05:16 PM
echo "216.60.38.11 ns1.domain.com ns1">>/etc/hosts <enter>

Is 216.60.38.11 supposed to mean something? Do I literally type that or use my IP?

abrazell