Создать записи для доменов все-же придется, но все они могут использовтаь один конфиг:
# cat /etc/bind/zones/dummy.zone@ 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
# cat /etc/bind/zones/dummy.zonezone "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