Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting DNS on a VPS

Tags:

dns

centos

I am pretty new to server administration so I am looking for some help with setting up my DNS correctly and generally expanding my knowledge around the area. I have a domain name registered with Godaddy from a while back. I have recently setup a VPS with a separate company and I wish to point my Godaddy registered domain to my new server.

From what I've read, I can either point my Zone file's A record to my new server IP, or I can point my current Godaddy Nameservers to my new server (and this would use my new server's DNS? - I'm assuming this would require more work on my VPS). Can anyone confirm this for me, and possibly explain why one is preferred over the other and/ or what the explicit differences are?

I am running CentOs 5.8.

Thanks for any tips, advice, nudges in the right direction.

like image 290
James Avatar asked Jun 01 '12 19:06

James


People also ask

Can you host a domain on a VPS?

One of the most common ways to utilize a VPS is hosting a website. To do so, you'll first need to register a domain name at a registrar (e.g. GoDaddy, NameCheap, etc.). Once you have your domain name and your VPS, you are ready to begin.

Does a VPS need a domain?

A domain is not requried for VPS Hosting. All our packages come with one IP address that will let you connect directly to the VPS. Once a server is online, you can setup a server for domain hosting but for initial setup a domain is not required.


1 Answers

Take a look of this Howto on how to Setup Private DNS With Bind9 Chroot on CentOS 6.2 VPS. Not much different on the bind configuration for CentOS 5.x and CentOS 6.x. The following configuration has been enabled :

  1. forwarding named server
  2. Bind chroot named service
  3. Master(ns1)/Salve (ns2) server. Slave is allowed to download master's zoned files.
like image 168
ehowstuff Avatar answered Oct 01 '22 16:10

ehowstuff