D
D
Dmitry2016-05-30 12:26:26
Domain Name System
Dmitry, 2016-05-30 12:26:26

How to force DNS server to return html page?

Actually the question may seem strange and suggest thoughts, but do not think anything bad!
Generally. There is DNS hosting under our own control, I want to make it so that when requesting a domain located on the bottom hosting, if the client did not renew the service, or the domain was not renewed, an error page would be displayed.
For example, the client mydomain.ru. The client did not pay for the service. It is necessary to give the page to the form mydomain.ru/error.html with the text that access to the service is suspended and bla-bla-bla...
How can this be implemented? BIND DNS server

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
spotifi, 2016-05-30
@CloudTelehouse

You direct to your own IP, not to the client's IP. On which nginx sits. Which on all requests and answers - as it is necessary to you.
All that needs to be done in bind is to somehow adjust the zone on the fly based on the billing system data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question