cPanel & WHM Version 98 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Domain Parking for any Domain set to Name Servers

Michael Findlay shared this idea 6 months ago
Need More Information

As a web hosting provider , I would like the addition of the "." zone to the Named as an option at either WHM or DNS Only level, so that domains that are registered and pointed to the name servers of a provider will automatically provide a page with details on until activated in the hosting network or pointed to another name server elsewhere.


I have managed to implement this using the following steps in my network -

Test using Google.com as a lookup against the server

14dbd6952f90da7fd56996618a7716d1

Confirmed it does not effect other zones on the server.

cb289cc4c37eef0ecb75b5eb3e903111


Addition of the following to named.conf and named.conf.prerebuilddnsconfig

zone "." {
    type master;
    file "/etc/bind/domain.parking";
};
Zone configured with the following - 

/usr/named/domain.parking

; Hooble Domain Parking Template V1.0
@ IN SOA ns.hooble.co. abuse.hooble.co.uk. (
86400 ; refresh, seconds
7200 ; retry, seconds
1209600 ; expire, seconds
300 ) ; minimum, seconds

; Name Servers
300 IN NS ns.hooble.co.
300 IN NS ns.hooble.co.uk.
300 IN NS ns.hooble.uk.
300 IN NS ns.hooble.io.
300 IN NS ns.hooble.tech.

; Domain Parking
* 300 IN A 185.103.119.76

Best Answer

Replies (3)

photo
1

made an error or two in the first revision of the setup steps, see the github for accurate steps.

photo
1

Hi Michael,


When a domain's nameservers are pointed to a cPanel & WHM server and the domain does not have a VirtualHost associated with it (i.e., it's not hosted on the server), it shows the default page. The only exception to this rule is HTTPS connections which apache by default serves the first SSL in the configuration file when the domain's VirtualHost does not exist, this is also modifiable though, and discussed here: https://support.cpanel.net/hc/en-us/articles/1500005458561-How-to-set-the-default-HTTPS-vhostiguration file. The default page can be edited and customized to display whatever you like. I'm trying to understand what behavior you're seeing and trying to resolve when doing this currently?

Leave a Comment
 
Attach a file