Results 1 to 4 of 4

Thread: Multiple IP on my Ubuntu 12.04 VPS want to use them as DNS

  1. #1
    Join Date
    Apr 2013
    Beans
    1

    Multiple IP on my Ubuntu 12.04 VPS want to use them as DNS

    Guys,
    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 8.8.8.8 (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 :

    Code:
            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
    
    
    auto venet0:0
    iface venet0:0 inet static
            address 193.183.99.227 <== IP 1
            netmask 255.255.255.255
    
    
    auto venet0:5
    iface venet0:5 inet static
            address 193.183.99.4 <== IP 2
            netmask 255.255.255.255

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Multiple IP on my Ubuntu 12.04 VPS want to use them as DNS

    Why not just use the DNS manager at the place you registered your domain? Mine allows you to manage DNS settings but they also provide hosting too (which I don't use, I use a VPS now).
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Apr 2013
    Beans
    5

    Re: Multiple IP on my Ubuntu 12.04 VPS want to use them as DNS

    This guide should tell you everything you need to know about setting up bind9 and using it. However, it will take some reading and time to understand. You will gain a ton of understanding of how DNS works and its incredibly important to the internet which makes it worth it!

    https://help.ubuntu.com/community/BIND9ServerHowto

  4. #4
    Join Date
    Nov 2008
    Location
    Los Angeles
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Multiple IP on my Ubuntu 12.04 VPS want to use them as DNS

    Quote Originally Posted by travelpal View Post
    Guys,
    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 8.8.8.8 (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 :

    Code:
            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
    
    
    auto venet0:0
    iface venet0:0 inet static
            address 193.183.99.227 <== IP 1
            netmask 255.255.255.255
    
    
    auto venet0:5
    iface venet0:5 inet static
            address 193.183.99.4 <== IP 2
            netmask 255.255.255.255
    there are a few free ones
    http://dns.he.net is the first one that comes to mind atm

    If your looking for something paid, but not exorbitantly expensive, go with amazon route 53 or dnsmadeeasy.

    Generally, I would not not setup my own DNS Server at all, just because there is no redundancy (unless you actually have multiple vpses with Bind9 Slaves and such), and if you don't set it up correct, you can potentially become part of a DNS Amplification attack
    Last edited by sandyd; April 10th, 2013 at 07:22 PM.
    ~resurrectedstar || Ubuntu Forums Moderation Staff || SandyD Productions || Come chat on #ubuntuforums IRC!
    Website (In Development!) | Twitter | Last.fm
    When you lose your way and don't have a clue and you happen to find somebody like you, it's a beautiful thing

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •