Really Simple (I Hope) DNS Question

5 posts / 0 new
Last post
#1 Tue, 02/12/2008 - 16:48
scholzr

Really Simple (I Hope) DNS Question

OK, so I am REALLY new to this whole webhosting thing. I have a server setup with Debian 4.0, and the current release of virtualmin Pro. The server is on a DSL connection which has a static public IP address. The server is also configured behind the router to use a static IP address (192.XXX.X.X), and the router is setup to forward port 80 to the server's local IP address, so that when I go to my IP address from anywhere (on or off the network) I get the default Apache page. This part I understand.

What I do not understand, is that I have several domains which I would like to host on the server, with the primary website being my company website (i.e. www.mycompany.com). I would like to use this domain as my NS records when registering the subsequent domains. I know how to set the nameservers on my registrar (enom) to ns1.mycompany.com and ns2.mycompany.com, and I have registered these nameservers with my registrar to forward to my IP address (they both go to the same IP address as I only have one IP and one server.

What I don't know, is what do I need to do on the server end? and can I actually register 2 nameservers with my registrar to the same IP address?

Please Help

Wed, 02/13/2008 - 03:23
DanLong

hi,

The answer is yes, but why? The purpose of a second name server is to ensure DNS services should the primary go down for some reason. In fact, the recommendation, though rarely followed, is to have a second name server in a geographically different location. For DNS services you'll also need to route port 53.

ON the server end, I've heard attempts to setup two name servers on the same box but can only say, good luck.

Wed, 02/13/2008 - 08:46 (Reply to #2)
scholzr

Thanks, I did need to forward that port, but it is still not working. Is there something on the server that I need to be doing?

Wed, 02/13/2008 - 11:02 (Reply to #3)
Joe
Joe's picture

DNS replies come back on high ports...if your firewall is blocking those going out, it won't work.

No need to have two servers running on the same server--that's nonsensical. If the server goes down, you lose both. Realistically, if you don't have redundant web/mail, there is no point in having redundant DNS. If you're down, you're down, and no amount of DNS redundancy can alter that...so give the box two IPs, let BIND listen on both, and pretend like you're compliant with the RFCs...it'll work fine.

--

Check out the forum guidelines!

Wed, 02/13/2008 - 14:59
scholzr

Thanks for the info. I guess that I understand the concept now, but I am still very new at this. I am having a hard time taking it from concept to reality. Currently, I have a fresh install of Virtualmin Pro on my server (I have not changed any settings since the install), and ports 80 (for http) and 53 (per DanLong's suggestion) on my router forwarded to the server's internal IP.

What else do I need to do with the server/ what additional ports do I need to forward?

Topic locked