Edit Zonefile for cPanel
Hello,
I have a new Domain and i want to use it for my Cpanel/Servers i want to open Cpanel/WHM with the Domain s1.example.com:2087 and not with the IP.
So now my Question i have copy the Standard Zonefile fronm my Host to show to you, can anybody show me how to change it correct to open my Cpanel/WHM with the domain (subdomain).
Here the zonefile, lets use the domain Example.com and i want to open my server 1 with s1.example.com:2087 - s1.example.com:2083
Thank you
$TTL 86400
@ IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
2017050500 ; serial
86400 ; refresh
10800 ; retry
3600000 ; expire
86400 ) ; minimum
@ IN NS ns1.first-ns.de.
@ IN NS robotns2.second-ns.de.
@ IN NS robotns3.second-ns.com.
@ IN A 88.99.174.102
mail IN A 88.99.174.102
www IN A 88.99.174.102
@ IN MX 10 mailThank you
-
Thank you Michael, I use the standard Nameservers of my Host where my Domain is registred to, and the same Nameservers i enter in the "Basic WebHost Manager Setup" page, so i expact this means my Domain example.com is Handelt by my host and i need to add the 'A' Entry there and not in WHM, is this the right way? My second question is how this will work with the Ports: 2087 and 2083, do i need to set anything for this to in the zonefile? Ps. is this correct? $TTL 86400 @ IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. ( 2017050500 ; serial 86400 ; refresh 10800 ; retry 3600000 ; expire 86400 ) ; minimum @ IN NS ns1.first-ns.de. @ IN NS robotns2.second-ns.de. @ IN NS robotns3.second-ns.com. @ IN A 88.99.174.102 mail IN A 88.99.174.102 www IN A 88.99.174.102 s1 IN A 88.99.174.102 @ IN MX 10 mail
Tank you?0 -
Hello, Yes, you'd add the DNS entry through the provider where the DNS is hosted. As far as the ports, they will work automatically after you add the "A" record. No additional DNS records are required for them to work. Thank you. 0 -
Thank you very much, that work now! How it will work when i want to use this Domain for more Cpanel/WHM Servers? Do i write in the same zonefile more hostnames for difrent servers? s1 IN A 28.94.123.456 s2 IN A 95.44.123.456 s3 IN A 77.69.123.456 Or for every server a new zonefile with the same domain? Thank you 0 -
You'd add the "A" records to the same zone file like the example you referenced. Thank you. 0 -
Thank you. :) 0 -
Hello, I have again a little question about the Entries when the domain "example.com" i only use to Link the hostnames for my servers s1 IN A 29.66.199.5 s3 IN A 94.96.424.7 s3 IN A 63.78.329.6 Do i need the other Entries for Mail, www, and @, or only the "A" Entries for the hostnames like the Example i show you? Thank you. 0 -
Do i need the other Entries for Mail, www, and @, or only the "A" Entries for the hostnames like the Example i show you?
Hello, You'd only need the "A" entries to ensure the hostname resolves to the correct IP address. Thank you.0
Please sign in to leave a comment.
Comments
8 comments