DNS record: admin. *. Domain.com => 1.1.1.1 & * .domain.com => 2.2.2.2

Is it possible to make such a record that all pages beginning with admin are redirected to one IP address and something else is redirected to another IP address:

 admin.some.example.com => 1.1.1.1 admin.thing.example.com => 1.1.1.1 admin.else.example.com => 1.1.1.1 some.example.com => 2.2.2.2 thing.example.com => 2.2.2.2 else.example.com => 2.2.2.2 

Note that some , thing and else can be anything.

+4
source share
1 answer

This cannot be done (using wildcards) with a standard DNS server such as BIND. You will have to implement your own DNS server. A custom DNS server can generate any response that it wants in response to queries. Please note: if you create your own DNS server that does this, DNSSEC support will be the biggest problem.

+3
source

Source: https://habr.com/ru/post/1414854/


All Articles