[ldns-users] ldns-read-zone and $INCLUDE
willem at nlnetlabs.nl
Mon Apr 10 08:08:33 UTC 2017
Op 23-03-17 om 10:55 schreef A. Schulze:
> looks like $INCLUDE inside a zone is ignored by ldns-read-zone, right?
> $ cat /path/to/zone:
> example.org. SOA ns.example.org. me.example.org 1 43200 7200 2419200
> example.org. NS ns.example.org.
> ns.example.org. A 192.0.2.53
> $INCLUDE /path/to/include
> $ cat /path/to/include
> www.example.org. A 192.0.2.80
> # read zone, sort and increment SOA by one
> $ ldns-read-zone -z -S +1 path/to/zone
> example.org. 3600 IN SOA ns.example.org.
> me.example.org. 2 43200 7200 2419200 3600
> example.org. 3600 IN NS ns.example.org.
> ns.example.org. 3600 IN A 192.0.2.53
> While NSD handle the include, the included data are lost here.
> Is that intentional?
Possibly, though I wouldn't know what the reason might have been.
Easiest to fix would be to process the $INCLUDE statement while reading
the zone. Maintaining the $INCLUDE statement would be a lot harder...
Would you like me to address these issues one way or the other? Or both?
> Thanks for clarification,
> ldns-users mailing list
> ldns-users at nlnetlabs.nl
More information about the ldns-users