WHM Tutorial (Part – 10): DNS Zone File
- WHM Tutorial (Part – 1): What is WHM & How to login in WHM
- WHM Tutorial (Part – 2): What is package & How to Create a Package
- WHM Tutorial (Part – 3): Edit & Delete a Package
- WHM Tutorial (Part – 4): Creating An Account in cPanel
- WHM Tutorial (Part – 5): Modify an Account
- WHM Tutorial (Part – 6): Changing Password
- WHM Tutorial (Part – 7): Suspend & Unsuspend an Account
- WHM Tutorial (Part – 8): Terminate an Account
- WHM Tutorial (Part – 9): Upgrade & Downgrade an Account
- WHM Tutorial (Part – 10): DNS Zone File
- WHM Tutorial (Part – 11): Changing DNS Zone
- WHM Tutorial (Part – 12): Account Information
- WHM Tutorial (Part – 13): Support
Knowing some basic concepts is required to work in DNS function.
Zone File: It’s a text file that contains IP addresses mapping data instead of domain name. This file confirms whether a domain server is authorized or not. Moreover, it contains the data of sub-domain, name server and e-mail. A zone file is being created while creating a cPanel account. Some details of a zone file is furnished below –
$ORIGIN example.com. ; [At the beginning of the zone file that is written]
$TTL 1h
example.com. IN SOA ns.example.com. username.example.com. (
2007120710 ; [Zone file’s serial number]
1d ; [Slave refresh 1 day]
2h ; [Retry time 2 hours if problem occurred]
4w ; [Expire in 4 weeks]
1h ; [Maximum caching time]
)
example.com. NS ns ; ns.example.com [Name Server]
example.com. NS ns.somewhere.example. ; ns.somewhere.example [Backup name server]
example.com. MX 10 mail.example.com. ; [mail.example.com is example.com ‘s mail server]
@ MX 20 mail2.example.com.
@ MX 50 mail3
example.com. A 192.0.2.1 ; IPv4 [IP]
AAAA 2001:db8:10::1 ; IPv6 [IP]
ns A 192.0.2.2 ; IPv4 [IP] ns.example.com
AAAA 2001:db8:10::2 ; IPv6 [IP] ns.example.com
www CNAME example.com. ; www.example.com example.com [Alias]
wwwtest CNAME www
mail A 192.0.2.3 ; IPv4 [IP] mail.example.com,