M
M
mit5x2020-12-16 09:27:31
Domain Name System
mit5x, 2020-12-16 09:27:31

How to direct a domain to the desired ip if there are 1000 domains?

There are a thousand domains:
site1.ru
site2.ru
...
blablabla.ru
igogo.ru
, etc.
site1000. Common crawl en

All domains are directed to the same server with ip, for example: 1.1.1.1
I.e. each domain has 2 records in DNS:
@ A 1.1.1.1
www A 1.1.1.1 The

server moves to a new ip: 2.2.2.2
Now 1000 domains need to change IP addresses manually.

The question is, how in this case is it more correct to store data so that it would be possible to change the ip address in only one place?

Variant with CNAME?
For the server we make the domain someserver.ru
@ A 2.2.2.2

And then for the domains we specify:
@ CNAME someserver.ru

But CNAME seems to be possible only for subdomains (on the recommendation of RFC, in the open spaces of the network)

How to be?
I do not want to edit so many records with pens.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Dubrovin, 2020-12-16
@z3apa3a

Usually in such cases one file is made with records, such as

@ A 1.1.1.1
www A 1.1.1.1

which is included in zone files via include.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question