On 19 Jun 2020, at 21:29, Dev Op <dsd7150@gmail.com> wrote:
Hi all!
I have a zone, say it's "mynet.local":
$TTL 3h ; 3 hours
$ORIGIN pluto.local.
@ IN SOA dns1 hostmaster.pluto.local. (
2020061901 ; serial
1h ; refresh
30m ; retry
7d ; expiration
1h ) ; minimum
NS dns1
NS dns2
dns1 A 192.168.1.1
dns2 A 192.168.1.2
host1 A 192.168.1.3
...
It's a big zone. Now I want to have a DNAME for that zone to make it shorten.
Say, I want every host in the local domain to be an alias of the same host in pluto.local domain. If I want to resolve hostname host1.local DNS server must give me an IP address of host1.pluto.local.
How to do it?
I tried make a zone:
$TTL 3h ; 3 hours
$ORIGIN local.
@ IN SOA ns.local. root.localhost. (
2020061901 ; serial
1h ; refresh
30m ; retry
7d ; expiration
1h ) ; minimum
@ DNAME 8m.local.
But when I start bind, I got error:
Jun 19 09:13:38 dns1.local bash[28971]: zone local/IN: has no NS records
Jun 19 09:13:38 dns1.local bash[28971]: zone local/IN: not loaded due to errors.
Jun 19 09:13:38 dns1.local bash[28971]: internal-view/local/IN: bad zone
# named-checkzone local ./local.zone
zone local/IN: has no NS records
zone local/IN: not loaded due to errors.
If I add NS servers to local zone I got this error:
# named-checkzone local ./local.zone
zone local/IN: NS 'dns1.local' is below a DNAME 'local' (illegal)
zone local/IN: NS 'dns2.local' is below a DNAME 'local' (illegal)
zone local/IN: not loaded due to errors.
I don't know how to solve this task. :( Help me.
Regards,
n345v
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
bind-users mailing list--- Synchronet 3.18a-Linux NewsLink 1.113
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 991 |
Nodes: | 10 (0 / 10) |
Uptime: | 81:50:10 |
Calls: | 12,949 |
Calls today: | 3 |
Files: | 186,574 |
Messages: | 3,264,677 |