P
P
prostoprofan2021-04-02 22:25:40
linux
prostoprofan, 2021-04-02 22:25:40

Creating a DNS server with a default response?

Hello, there are 50 domains and their number becomes larger and larger each time, and it is necessary to change the A-record on each of them in case of registering a new domain and direct it to a specific IP.
The task is as follows to prescribe the same NS domains (nameserver ns1 and ns2) and IP *.*.*.* was assigned to them by default.
What means can this be done? Using some self-made BIND configuration generator for all domains every time is not an option.
What are the options for solving such a problem? (Googled, but there is really nothing on this task there is a solution)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nicholas, 2021-04-02
@prostoprofan

dnsmasq can do this:
https://wiki.archlinux.org/index.php/dnsmasq#Overr...
Furthermore, it's possible to return a specific address for all domain names that are not answered from /etc/hosts or DHCP by using a special wildcard:
address=/#/1.2.3.4

Y
Yaroslav, 2021-04-02
@xenon

Maybe it's easier to prescribe aliases (CNAME) for another domain name on all domains, and then if everyone needs to "move" - ​​will it be enough to change only one record?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question