NS1 and NS2 on the same 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
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.
From named.conf:
options {
listen-on { <ip 1="" here="">; <ip2 here="">; 127.0.0.1; };
};</ip2></ip>
-Chris
http://www.zoneedit.com/https://www.xname.org/
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.
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….
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?
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.
@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.