correct & complete DNS configuration of a domain

trucmuche

Well-Known Member
Nov 20, 2014
93
4
58
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
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.