Answer the question
In order to leave comments, you need to log in
How to redirect an A-record query to another DNS server?
There is a domain site.ru
and access to setting up a list of its NS servers. There is a hosting that does not provide a static IP, so it asks to register its own NS server ns.hosting.ru.
for the domain. In addition, this hosting does not provide tools for setting up DNS records. It needs to be done so that:
site.ru
corresponded to the IP address of the hosting server at any given time;site.ru
had several defined TXT and MX records in DNS.Answer the question
In order to leave comments, you need to log in
You can use powerdns, it can execute scripts when a record is requested (inside which you can already resolve the name through external servers).
https://habrahabr.ru/post/178727/ from here you can start reading.
Here the trick is that the NS server of the hoster correctly substitutes the current A record for your domain.
As an option - you need to find a domain - which is constantly located on the same IP as your site, and register a CNAME on it.
And it is best to change the hoster to a normal one and not suffer.
Hosting does not provide a static IP? What is it like?
If this is true, then I would advise you to change hosting. it will save you a lot of problems in the future
Change hosting.
Any normal company now provides both a static IP and a DNS hosting service.
The approach you suggested is unlikely to work.
So an alternative to changing the provider is to prescribe its NS servers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question