I have this VPS installed with Ubuntu 12.04 LTS version and I got two IP address as well. Right now I have my nameserver pointed to 126.96.36.199 (default I think). My VPs provider don't have domain name server, so I was using free cloudflare for managing my domains. I also installed zpanel.
Now, I am not too happy with cloudflare reason is its expensive for Pro as I have multiple domains and same website but they charge additional per domain .
I am thinking of setting up my own domain name server, but I have no idea how to do it. I read lots of tutorial online but I always end up non working DNS. I have bind9 installed and all those tools, could somebody please help me so that I can use same ns1.example.com point to my 1st IP and ns2.example.com point to my second IP.
And my four domains can use this same DNS server for its contents, which will anyway be redirected in apache config.
Here is my /etc/network/interfaces contents :
down route del default dev venet0
down ifconfig venet0 down
iface venet0 inet6 manual
up ifconfig venet0 add 2a00:dcc0:eda:98:183:193:6feb:b684/128
down ifconfig venet0 del 2a00:dcc0:eda:98:183:193:6feb:b684/128
up ifconfig venet0 add 2a00:dcc0:eda:98:183:193:1725:8e5a/128
down ifconfig venet0 del 2a00:dcc0:eda:98:183:193:1725:8e5a/128
up ifconfig venet0 add 2a00:dcc0:eda:98:183:193:b1fc:4d57/128
down ifconfig venet0 del 2a00:dcc0:eda:98:183:193:b1fc:4d57/128
up ifconfig venet0 add 2a00:dcc0:eda:98:183:193:76c5:47fe/128
down ifconfig venet0 del 2a00:dcc0:eda:98:183:193:76c5:47fe/128
up route -A inet6 add default dev venet0
down route -A inet6 del default dev venet0
iface venet0:0 inet static
address 188.8.131.52 <== IP 1
iface venet0:5 inet static
address 184.108.40.206 <== IP 2