M
M
myxasa2017-08-11 11:54:13
linux
myxasa, 2017-08-11 11:54:13

How to make a multi-domain bind?

There is a bind config and in order to resolve sub domains, I write each manually in the config below:

$TTL 3600
;$ORIGIN XXXX.net.
@ IN SOA ns1.XXX.net. fs.XXXX.net. (
2015042801; Serial
604800; Refresh
86400; Retry
2419200; Expire
2h
)
;
@ IN NS ns1.XXX.net.
@ IN NS ns2.XXX.net.
@ IN A 46.XX.0.XX
IN NS localhost.
IN A 127.0.0.1
a1 IN A 46.XX.0.XX
a2 IN A 46.XX.0.XX
b1 IN A 46.XX.0.XX
b2 IN A 46.XX.0.XX

how to make any combination of characters resolve and not have to write everything manually?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nikolayvaganov, 2017-08-11
@myxasa

* IN A ip.ad.dr.ess
is called a wildcard entry

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question