How to force DNS server to give the html page?
Actually the question may seem strange and come across thoughts, but do not think anything bad!
In General. There are DNS hosting under their own control, I want to make it so that when you query for a domain, located at the bottom hosting, if the client has not renewed the service, or domain is not renewed, was given an error page.
For example, the client mydomain.ru. The client is not paid service. You need to give the page mind mydomain.ru/error.html the text for access to the service suspended and bla-bla-bla...
How is it possible to implement? The DNS server BIND
1 answer
Send to your private IP, not client IP. Which sits on nginx. Which all the queries and answers as you need.
All you need to do in a bind - as it to adjust on the fly zone on the basis of data from the billing system.
Find more questions by tags Domain name system
https://debian.pro/738 - Weston98 commented on July 9th 19 at 10:42