Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

correct & complete DNS configuration of a domain

Discussion in 'Bind / DNS / Nameserver Issues' started by trucmuche, Jan 11, 2017.

  1. trucmuche

    trucmuche Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    80
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a "main" VPS for hosting my websites and I just ordered two others VPS (each with dedicated IP address of course) to use as DNS servers for my hosting VPS. My VPS provider is going to configure those two DNS servers and WHM on my main VPS to "interact correctly" but now, I have to learn how to use WHM correctly to configure DNS entries for my domains.

    For now, I configured manually the zone file of my domains in the Gandi's interface like this (let say that 1.111.111.111 is the IP address of my main hosting VPS) :
    Code:
    * 10800 IN A 1.111.111.111
    @ 10800 IN A 1.111.111.111
    cpanel 10800 IN A 1.111.111.111
    ftp 10800 IN A 1.111.111.111
    mail 10800 IN A 1.111.111.111
    webdisk 10800 IN A 1.111.111.111
    webmail 10800 IN A 1.111.111.111
    whm 10800 IN A 1.111.111.111
    www 10800 IN A 1.111.111.111
    @ 10800 IN MX 10 mydomainname.com.
    I don't know if this is a perfectly correct and complete zone file, and I don't know if there is unnecessary/duplicate entries... For instance, I never use the address "webdisk.mydomainname.com" so is that entry necessary or should I remove it ?
    Are the lines "whm" and "cpanel" mandatory ?

    Many thanks for your advices and help,

    T.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You actually won't have to manually create the DNS zones if the cPanel server is handling the DNS. The zones are automatically created when adding domain names.

    The webdisk, webmail, and cpanel entries are required for the use of the proxy subdomains feature so you can access those services over port 80.

    Thank you.
     
Loading...

Share This Page