Question

Point to a specific page if url can't be found on digital ocean (vanity) name server

  • Posted April 10, 2022
  • DNS

Hi all, I’m using ns1.myvanityserver.com etc that point to the name servers form digital ocean.

Would there be any way that when a domain can’t be resolved, the name server points to a specific url?

Background:

I use WHMCS with VPS servers on plesk, when an domain is registered with hosting, everything is fine. The domain and hosting package are created on the plesk servers > plesk server updates ns*.myvanityserver.com. Domain is registered with name servers > ns*.myvanityserver.com. It works great.

The problem arises when a domain is registered without hosting.The domain is still registerd with ns*.myvanityserver.com, but there’s nothing there… Now I would like to point to a ‘this page is hosted at’ page.

Does anyone have a solution for this? Thanks

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

What I would personally do is the following:

  • Create a small $5/mo Droplet
  • Install Nginx
  • Create a simple HTML landing page and upload it to: /var/www/html/index.html
  • Then whenever a user does not purchase a hosting package, then you could use that Droplet’s IP address to point their domain name to

That way the new domain names will load the default HTML landing page that you’ve uploaded to the Nginx Droplet.

Let me know how it goes!

Best,

Bobby