How do I add an existing secondary IP?

My VPS has 2 assigned IPs, but within Virtualmin I can only see "eth0" in use

How do I inform Virtualmin that "eth1" exists?

I have the secondary IP specifically for ns2 but at present it isn't setup because I don't know how to do it

Status: 
Active

Comments

That depends .. do you want to use the eth1 IP address for a new domain? Or does it not have an IP assigned yet?

kstingel.com is on shared IP main (eth0) currently nothing is on secondary IP (eth1) - an IP has already been assigned to both eth devices

both IPs are active on boot, and showing as currently active in Webmin / Virtualmin but I don't know how to access eth1 from within Webmin

if you check https://intodns.com/kstingel.com you will see that I have ns1 and ns2 listed for the kstingel.com domain

I want to put ns2 on eth1 IP but I don't know how to do so

my current DNS files for the kstingel.com were manually created as I don't yet understand how to use the DNS BIND interface

So you just want to use the second IP as a second nameserver? That should already work just fine - the existing BIND on your system will accept connections to any IP.

I have no issue with doing another rebuild and starting fresh :)

What output do you receive if you run the command "ifconfig"?

Also, did you add the second IP to your server already, or is that something your provider did?

ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:16:3e:bf:cc:04
          inet addr:103.42.225.203  Bcast:103.42.225.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:febf:cc04/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1603228 errors:0 dropped:0 overruns:0 frame:0
          TX packets:257032 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:124960902 (124.9 MB)  TX bytes:190842430 (190.8 MB)

eth0:1    Link encap:Ethernet  HWaddr 00:16:3e:bf:cc:04
          inet addr:103.42.225.235  Bcast:103.42.225.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:55082 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55082 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:12141040 (12.1 MB)  TX bytes:12141040 (12.1 MB)

secondary IP was purchased from Host Service prior to spinning up the machine

It looks like the second IP address is working for other services.

DNS doesn't appear to be working on that IP though.

You may want to just try restarting BIND, and see if that helps.