+ Reply to Thread
Results 1 to 4 of 4
Like Tree2Likes
  • 1 Post By Dead-i
  • 1 Post By pornophobic

Thread: How to setup domain name on CentOS?

  1. #1
    ztschutt is offline x10Hosting Member ztschutt is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    13

    Question How to setup domain name on CentOS?

    I just installed Centos on my VPS. I was wondering how I would setup apache so that when you type in my domain name you go to the new server instead of my current shared hosting. I have already backed up everything so I can migrate stuff over, but I cannot figure out how to setup apache with a TLD. I have been searching the internet, but can't find anything actually helpful. Also, I am also going to use this vps as a mail server as well, but I'm pretty sure I know how to set that up.
    By the way, I have installed Webmin on the vps, don't know if that will make it easier than editing configuration files.

    By the way, I have two IP addresses, one for each nameserver. (NS1 & NS2)

    Edit: From my research so far I have been able to guess that I need to use a program called BIND, but I don't know how to set it up.
    Last edited by ztschutt; 10-04-2011 at 06:13 PM.

  2. #2
    ztschutt is offline x10Hosting Member ztschutt is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    13

    Re: How to setup domain name on CentOS?

    After waiting a while for a reply I finally found a tutorial on these forums for setting up BIND on centos. It is here for future reference: https://x10hosting.com/forums/vps-tu...tos-5-5-a.html



  3. #3
    Dead-i's Avatar
    Dead-i is offline Community Advocate Dead-i has a spectacular aura about
    Join Date
    Aug 2011
    Location
    United Kingdom
    Posts
    1,449

    Re: How to setup domain name on CentOS?

    To setup my domain on CentOS I installed Kloxo on the system which basically did all the work for me. I didn't know what name servers to tell Kloxo to use since I didn't buy them, so I used ZoneEdit which provide their own name servers for free, and then I entered the ZoneEdit name servers into Kloxo. Now that that was done, I simply had to add a client and then point my domain to my Server IP Address; worked like a charm
    dinomirt96 likes this.

  4. #4
    pornophobic's Avatar
    pornophobic is offline x10Hosting Member pornophobic is an unknown quantity at this point
    Join Date
    May 2009
    Location
    Toronto, ON
    Posts
    23

    Re: How to setup domain name on CentOS?

    Another option, outside of BIND is TinyDNS, AKA djbdns. Kloxo has an option to run under this as well.
    There are pros and not very many cons to using TinyDNS over BIND. For instance, it isn't as targeted for vulnerabilities, it can pretty much do anything BIND can with a much smaller memory footprint, it comes packaged with scripts to do different things (i.e add-host, add-mx, add-ns, etc), or if you are like me and would prefer to edit the files manually, the syntax for the configuration file is much, much simpler.

    Here is a working example that I use for websites... with the IP and the domains changed.
    Code:
    #SOA 
    Zexample.com:example.com.:example.com.:2011110511:28800:7200:604800:3600:3600
    
    #name servers
    &example.com::ns1.example.com.:3600
    &example.com::ns2.example.com.:3600
    
    #Domain
    =example.com:255.255.255.255:3600
    
    #MX Record
    @mail.example.com:255.255.255.255:a::60
    
    #Subdomains
    +mail.example.com:255.255.255.255:3600
    +ns1.example.com:255.255.255.255:3600
    +ns2.example.com:255.255.255.255:3600
    +www.example.com:255.255.255.255:3600
    +winning.example.com:255.255.255.255:3600
    I think I'll write a tut for setting that up as well.

    Links:
    http://tinydns.org/ - TinyDNS information.
    http://cr.yp.to/djbdns.html - djbdns home page & installation instructions.
    http://www.revival.stormshadow.com/unix/djbdns/ - Quick install instructions (requires GCC)
    Last edited by pornophobic; 11-05-2011 at 11:57 PM.
    karimirt47 likes this.

+ Reply to Thread

Similar Threads

  1. Need help with .co.cc domain setup
    By onclegeekland35 in forum Off Topic
    Replies: 3
    Last Post: 06-04-2011, 04:32 AM
  2. How to setup my domain with WWW
    By radofeya in forum Free Hosting
    Replies: 2
    Last Post: 10-11-2009, 03:31 AM
  3. How to setup up a domain
    By D2Chaos in forum Free Hosting
    Replies: 1
    Last Post: 04-16-2008, 07:05 PM
  4. Domain name setup
    By sitk_king in forum Free Hosting
    Replies: 8
    Last Post: 09-14-2005, 06:35 AM
  5. Domain SetUp
    By saurabh in forum Free Hosting
    Replies: 3
    Last Post: 09-14-2005, 04:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers