Answer the question
In order to leave comments, you need to log in
Bind with default zone?
Hello. Faced such a question. For example, I have a server that acts as a DNS server. It receives requests from users for domains that use my DNS, BUT I have no data about them. Those. no zone created and no zone file. How can such responses be resolved so that the dns responds not just with an error'om, but, for example, indicates a "parking IP" for them, so that all such domains point to a specific page.
Answer the question
In order to leave comments, you need to log in
You still need to create entries for domains, but they can all use the same config:
@ IN SOA ns1 hostmaster (
2019060101
10800
3600
604800
38400 )
IN NS ns1
IN NS ns2
ns1 IN A 192.168.1.1
ns2 IN A 192.168.1.2
@ IN A 192.168.1.3
* IN A 192.168.1.4
zone "a.test" {
type master;
file "/etc/bind/zones/dummy.zone";
};
zone "b.tst" {
type master;
file "/etc/bind/zones/dummy.zone";
};
# host a.test 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
a.test has address 192.168.1.3
# host xxx.a.test 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
xxx.a.test has address 192.168.1.4
# host b.tst 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
b.tst has address 192.168.1.3
# host yyy.b.tst 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
yyy.b.tst has address 192.168.1.4
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question