How to cofigure bin to serve DNS records.

Discussion in 'Site & Server Administration' started by shabda, Aug 16, 2007.

  1. #1
    I have a web server with CentOS and Apache installed. I can access the wbeserver using the IP of the web server. Now I want to point a domain name to that web server. So I have changed the name servers at my domain registar. But at this point I am stuck. Reading up some material I see that I would also need to configure bind to reply to DNS queries. My host says
    "If you are not using Cpanel, you need to configure a DNS server in your environment, such as BIND9, to server authoritive records for your domains."
    I am using webmin as the control panel and have root access to the machine. What are the steps I need to take to configure BIND?
    I am reading http://www.yolinux.com/TUTORIALS/LinuxTutorialWebSiteConfig.html but can not make out the steps needed.
     
    shabda, Aug 16, 2007 IP
  2. shabda

    shabda Peon

    Messages:
    348
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am getting this error on trying that URL
     A DNS lookup error occurred because the request timed out during the lookup.
    Code (DNS_TIMEOUT):
     
    shabda, Aug 16, 2007 IP
  3. Roido

    Roido Active Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    If your registrar has DNS services (most do) then you can create an 'A record' pointing to your IP address of your server and it should work. You do not need BIND.

    A record: @ pointing to Server IP
    C NAME: www pointing to @

    This means when someone goes to http://yourdomain.com they get forwarded to your server. And when someone goes to http://www.yourdomain.com it points to the A record which then points to your domain.

    You can also create a FTP Cname record which will forward ftp.yourdomain.com to your server.

    This is what I do with my Centos VPS with Webmin.

    Who is your registrar?
     
    Roido, Aug 16, 2007 IP