[ Quoting <lubos.slovak(a)nic.cz> in "Re: [knot-dns-users] origin
doesn't..." ]
Hi Miek,
as I found out, according to RFC 1035: 'A free standing @ is used to denote the
current origin.' and from various other references to 'origin' it seems that
the default origin should be the zone name. This also corresponds with Bind
behaviour (see their manual:
http://ftp.isc.org/isc/bind9/cur/9.9/doc/arm/
Bv9ARM.ch06.html#id2598969).
hello,
Yes, you are right. But even before you start parsing a stand-alone zonefile, you
need to to start somewhere.... If no $ORIGIN is defined and you have no clue on
which zone you are about to read, what $ORIGIN do you append to the ownername
of SOA record if that was unqualified?
(Again, if you are writing a nameserver, this case doesn't apply, because you
*always* now what zone you are reading, but for a stand alone library it is
important, see:
https://github.com/miekg/dns/blob/master/zscan.go#L162)
Kind regards,
Miek Gieben