NS1 and NS2 on the same linode?

I want to set up NS1 and NS2 name servers on my one linode.

I know it's not right to have NS2 on the same system but I can't afford another linode just for NS2 right now.

I have two IP numbers.

I already setup Bind for NS1 using the first IP and it is working properly.

Now I am trying to figure out how to setup NS2 as a slave server using my second IP on the same linode.

I read various posts on the internet about IP aliasing and virtual name servers but I'm still not sure how to do that using my linode.

Has anyone else done this before or know how to do it?

8 Replies

Having two NS's on one machine is a bad idea.

If you don't want to spend money on it, some of the Linnoders have offered to be NS2 for folks. Or there's always free DNS services.

If you don't want to bother with setting up a slave, you can have named listen on both IPs…

From named.conf:

options {
        listen-on { <ip 1="" here="">; <ip2 here="">; 127.0.0.1; };     
};</ip2></ip>

-Chris

I agree with wirehead. There is no reason to do this when there are several free services available, such as http://www.zoneedit.com/ and https://www.xname.org/ to name two.

I'll weigh in with a recommendation of my own:

www.everydns.net

It's well run, does a dandy of a job, etc. For a yearly donation just over the cost of the extra IP from Linode, you can completely support the service - but donations are optional anyway, so you can certainly do it for free. I've corresponded with the operator of the service before - he's basically just a nice guy, running a service that a lot of people benefit from using the donations that a few of them send in.

I use everydns.net as a shadow secondary - it uses a specified DNS server I designate (not on my linode, but it could be) as the source for my DNS records, but I only list everyDNS servers in my domain information in WHOIS. They run a far more reliable set of servers than I would, and, this way, I just have to make sure that my source for DNS records is up some moderate percentage of the time, so that everyDNS can re-fetch my records.

Or have some other friends with servers =)

I constantly trade off being a secondary name server with a friend that has a server on another ISP in a different state. If that's not enough, I'll occasionally throw a few to another friend on another ISP hosting colo just to distribute the load and be a little more safe.

I could swear I saw a number of linoders offering to set it up for nothing….

Well, yes, getting your friend's help isn't a bad idea. But going through a well-managed service that already exists means you get the benefits of that - no calling your friends in a hurry 'cause something's down. And services like the ones mentioned above tend to have geographical diversity… EveryDNS runs 4 different servers in 4 different physical locations.

I mean, if it's all the same, why depend on a friend who isn't paying much attention to DNS when there're services specifically for that purpose around, some of which are free or free with goodwill donations?

Yes I already know that NS2 on the same system is not recommended.

I even have a web site reseller account at another company that is cheating by giving me two "personal name servers" which in fact both point to their secondary server. This looks like a common practice for cheap resellers though.

I also already have an account at Zoneedit.

I want to have both name servers here because it says somewhere that I can, I want to see if I can and I want total control over it.

This linode account is great for experimenting without getting a dedicated server. This is an experiment.

:D

@caker:

If you don't want to bother with setting up a slave, you can have named listen on both IPs…

From named.conf:

options {
        listen-on { <ip 1="" here="">; <ip2 here="">; 127.0.0.1; };     
};</ip2></ip>

-Chris

Yes that is even easier.

Plus apparently Bind already listens on all IPs by default.

All I had to do was to bring up the other IP on eth0:1

And then do rndc reload
I guess I didn't have enough sleep trying to figure out something that was so simple to solve.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct