Results 1 to 3 of 3
-
04-16-2012, 11:36 PM #1Web Hosting Master
- Join Date
- Jul 2010
- Posts
- 819
Why does WHM setup DNS zones this way?
My VPS provider installed cPanel/WHM for me. I'm quite comfortable with DNS, but am a little confused about WHM's approach to it.
When I go into DNS functions, I see three zones created:
- ns1.example.com
- ns2.example.com
- host.example.com
...where "example.com" is my domain and "host" is the hostname I chose.
The ns1 zone has these records:
Code:ns1.example.com. IN A... localhost.ns1.example.com. IN A 127.0.0.1 ns1.example.com. IN MX 0 ns1.example.com. mail IN CNAME ns1.example.com. www IN CNAME ns1.example.com. ftp IN CNAME ns1.example.com.
host.example.com is
Code:host.example.com. IN A ... localhost.host.example.com. IN A 127.0.0.1 host.example.com. IN MX 0 host.example.com. mail IN CNAME host.example.com. www IN CNAME host.example.com. ftp IN CNAME host.example.com.
- why not create a single example.com zone?
- why the localhost records?
- why define mail, www, ftp, etc. aliases in each zone?
-
04-17-2012, 08:55 AM #2Web Hosting Master
- Join Date
- Jul 2008
- Location
- Seminole, Oklahoma
- Posts
- 1,665
When I installed Cpanel I added my primary domain then deleted those ns records and put them into my primary domain. It added it like that because I assume you clicked add A records when you put the name servers into the server configuration page.
Not really sure why they added a localhost record.
It allows you to access your domain like
mail.domain.com
ftp.domain.com
www is normaly a cname but an A records can sub in.Last edited by jcarney1987; 04-17-2012 at 08:59 AM.
-
04-17-2012, 11:11 AM #3Web Hosting Master
- Join Date
- Jul 2010
- Posts
- 819
Thanks for your reply. Yes, I've always done a single zone per domain (or one per subdomain if there was subdomain.example.com).
Still find the localhost record odd - it's defined in /etc/hosts, and is probably hardwired into every DNS or client library since it's in the RFC. 0
I get the mail/ftp/www/etc. CNAMEs, but not the idea of putting them in three different zones
Similar Threads
-
DNS Zones in WHM
By skoobi2 in forum VPS HostingReplies: 0Last Post: 07-21-2010, 11:03 AM -
DNS Zones in WHM
By r557 in forum Hosting Security and TechnologyReplies: 4Last Post: 07-17-2009, 03:11 PM -
Editing DNS Zones in WHM
By r557 in forum Hosting Security and TechnologyReplies: 2Last Post: 07-16-2009, 06:34 AM -
WHM and DNS zones
By Ramil in forum Hosting Security and TechnologyReplies: 1Last Post: 01-06-2004, 02:42 PM -
WHM and DNS zones
By nachopo in forum Reseller HostingReplies: 1Last Post: 09-17-2002, 10:37 AM