F
F
Finesse2016-04-14 13:15:52
Domain Name System
Finesse, 2016-04-14 13:15:52

How to redirect an A-record query to another DNS server?

There is a domain site.ruand 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:

  1. The domain site.rucorresponded to the IP address of the hosting server at any given time;
  2. The domain site.ruhad several defined TXT and MX records in DNS.

What to do in this situation? Is it possible to register the necessary MX- and TXT-records with the help of a third-party DNS hosting and “redirect” the A-record to the DNS server of the hosting site?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vlad Zhivotnev, 2016-04-14
@Finesse

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.

A
Andrey Mikhalev, 2016-04-14
@Endru9

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.

S
Slava Kryvel, 2016-04-14
@kryvel

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

S
Sergey Belkin, 2016-04-14
@1cloud

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 question

Ask a Question

731 491 924 answers to any question