Dev Op
2020-06-19 11:29:19 UTC
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
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