Nameservers question

A 5 star hangout for overworked and underpaid system admins.
Post Reply
keith.sieman
Posts: 21
Joined: 2015/06/14 02:06:32

Nameservers question

Post by keith.sieman » 2015/09/15 03:56:59

I have a question about this whole nameserver-redundancy thing for those of you that are experienced in web server administration and/or nameservers and nameserver administration.

Is there anything wrong with setting a slave server as the primary? Like, say I made ns1.mydns.tld the slave DNS Server, ns2.mydns.tld another DNS Slave server, and ns3.mydns.tld the master server
because the master server would be the same one that my web hosting, MySQL/MariaDB server and what-not is on, seeing as that's the server that I run Sentora on.

Also, would 512MB of RAM, and a 1-Core 3.2GHz Processor be enough for a dedicated Bind server on a CentOS 5, 6, or 7 Distro?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Nameservers question

Post by gerald_clark » 2015/09/15 05:03:32

Why do you want to run a name server?

keith.sieman
Posts: 21
Joined: 2015/06/14 02:06:32

Re: Nameservers question

Post by keith.sieman » 2015/09/15 05:52:42

To learn about how to do it and for curiosity. It's not exactly going to be a production server, just more of a toy for use on my own websites and other private-usages. I can get 2x of those servers for around $40-$50 every 6 months, which isn't bad at all. My plan is to get one in Montreal, QC (for ns2) and one in Los Angelos, CA (for ns1) - the webserver itself which would serve as ns3 is in New York City, NY.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Nameservers question

Post by gerald_clark » 2015/09/15 12:48:36

You should use your domain registrar's name servers.

keith.sieman
Posts: 21
Joined: 2015/06/14 02:06:32

Re: Nameservers question

Post by keith.sieman » 2015/09/15 13:02:36

I do.... for my production (as in business) websites. The whole point of this is to learn.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Nameservers question

Post by TrevorH » 2015/09/15 13:26:45

The idea is that you put your nameservers on different machines, in different data centres, on different IP subnets so that no one failure of any of these will take out both and thus ensure that your dns names continue to be resolved.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

keith.sieman
Posts: 21
Joined: 2015/06/14 02:06:32

Re: Nameservers question

Post by keith.sieman » 2015/09/15 17:59:24

Right, but does it matter which one is which as far as ns1, ns2 and ns3 goes? I'd assume that it doesn't, but it wouldn't surprise me to be wrong about that.

Though, I may change my mind from Montreal, QC for ns2 and put it over in the UK.

markkuk
Posts: 739
Joined: 2007/09/07 10:56:28
Location: Finland

Re: Nameservers question

Post by markkuk » 2015/09/16 12:36:57

There's no requirement to call your name servers "ns1", "ns2", etc. You can use any valid DNS name. It doesn't matter which of your name servers is the master, and it's entirely possible to keep your master server hidden from public view and use only slave servers as your publically accessible DNS servers.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Nameservers question

Post by aks » 2015/09/17 15:49:31

The main constraints about which DNS server to query are:
1) Is it authoritative for the requested domain - if not it may be slightly out of date.
2) The round trip time. The longer to resolve the name to IP the longer the conversation will take.

Post Reply