DNS setup

clay973

New member
May 12, 2010
3
0
0
I got myself an unmanaged VPS to learn the ropes. The hosting company provided me with 2 IP addy's. I got the server setup ok with MySQL, PHP5 and nginx and all is working fine.

I got a domain from namecheap so I went into that domain on namecheap and setup ns1.mydomain.com = 1st IP and ns2.mydomain = 2nd IP

My question is regarding the DNS. Do I leave the namecheap DNS settings as 'Use Use NameCheap Hosting DNS Servers ' or do I select 'Specify Custom DNS Servers ( Your own DNS Servers )' and add ns1.mydomain.com and ns2.mydomain.com?
 


Your going with nginx gives the impression that you are striving for low impact on resources. If that is the case, then I would assume that you are not running BIND for DNS hosting or Postfix or the like for a mail server.

If you are not running BIND, then you cannot use the "Custom DNS" options. You would have to assign the Namecheap dns servers to your domain, for example:

ns1.namecheap_server.com
ns2.namecheap_server.com

You need to find out the IP addresses for these servers and then do the following:

I don't use Namecheap, but I assume that there is a panel to manage host records for your domain. You would have to go in there and create the following "A" records:

yourdomain.com. (use one of the IP addresses your host gave you - and add the dot at the end of com as shown)

www (use the same IP as above)

ns1 (use IP from ns1.namecheap_server.com)

ns2 (use IP from ns2.namecheap_server.com)


Like I said, I don't use Namecheap so you may want to look around for some tutorials on the site.
 
If this server is just for site building/blogs etc. then leave the DNS with namecheap.

Let them do what they're good at - domains/DNS etc. whilst you do what you're good at - building money sites.

The more you bring in house the more you've got to worry about as you scale up, it becomes a real bind, outsource everything you can from day, get used to doing it now and it will pay dividends in the future.

People tend to think outsourcing is just heading off to manilla a hiring a room full of comment posters. Nah, it starts with the simple stuff, outsource your hosting (get a managed box) outsource your domain registration, outsource your DNS (registrar), outsource you renewals (autorenew), outsource your software (use open source WP etc.)

Keep pushing it out, creating time and space for you to do do what matters, make money...

Gary
 
You can always use services like zonedit.com or any other free dns hosting so that you won't have to deal w/ DNS at all.... though as far as creating your own name servers i've just done it the same way mentioned above - via the domain registrar then dealt with it from there.... gl