Cpanel only dns server default page customization
I have install cpanel DNS only for own dns server and own dns network.
My issue is when i add the nameserver to any domain i can see a default page when i visit the domain please check attachment file to know about the default page. I want to confirm one more think. The domain is properly not configure with any hosting server. Just use my nameserver.
The default page comes from cpanel dns only server. I want to change the default page and want to add my custom own page. That's mean if anyone use my nameserver then they will can see my custom page automatically. Please tell me how to do this.
Thank you..
-
I don't think it's possible there is no web server (Apache) in a DNSONLY server.
0 -
Cpanel dns only already have a default page. I just want to replace the page.
0 -
When there is no webserver running, the cPanel service (cpsrvd) listens for Apache connections. You'll likely want to adjust the data in /var/www/html for the default page that shows up.
0 -
There is no /var/www/html in DNSONLY server.
0 -
Hmm....let me look into this a bit more and I'll get back with you!
0 -
I looked into this a bit and found that there is no native way to stop that page from showing up. Since web pages are served by cpsrvd when Apache isn't running, the only option we have would be to disable cPanel from listening on that service and then a custom webserver installed.
To get cPanel to stop listening you can run this command:
whmapi1 set_tweaksetting key='disable_cphttpd' value='1' ; /scripts/restartsrv_cpsrvd
but installing and configuring the webserver would be up to you.
I would recommend using our features site at features.cpanel.net to submit a request to make this easier to handle in the future.
0 -
It would be very helpful if we could at least redirect the occasional visitors to another URL with an htaccess or similar.
0 -
Benito - in general, there likely aren't very many people typing in "nameserver.address.com" into their browser, so this shouldn't be a common issue. Does disabling the service listening not solve the issue for you?
If you'd like to see that redirection be an option, were you able to submit a feature request?
0 -
Hey!
I have not tried disabling the service, does that disable the use of WHM?
I have already submitted the feature request.
0 -
No, that doesn't change the behavior of WHM in any way. cPanel just listens on port 80 when Apache is disabled, which is the case on a DNSOnly system, but WHM uses its own internal PHP and web services to display those pages.
0 -
cPRex worked like a charm, redirecting feature now is only a nice to have.
Thanks!
0 -
Nice! I'll still bring that up with the team during our next meeting though ;)
0
Please sign in to leave a comment.
Comments
12 comments