[bind10-dev] libdns and problem record and loadzone loading it
Jeremy C. Reed
jreed at isc.org
Thu Mar 11 00:30:09 UTC 2010
I accidently copy and pasted a four lines zone from jabber. In vi it
looked like four separate lines. (Blame pidgin!)
b10-loadzone loaded it fine. The first line was a SOA record. It had all
the extra data too.
b10-auth crashed via an isc_throw in libdns when a query asked for it.
Invalid SOA format
I was told the invalid SOA format throws an exception, which
b10-auth doesn't catch.
Before I maybe open a ticket....
What should libdns do? I don't think b10-auth should crash due to
accidently loaded data in the data source. Shouldn't return some FORMERR
or SERVFAIL other problem?
I understand b10-loadzone is limited and maybe someone can make it offer
good checking. But that doesn't stop some admin to creating (accidently)
bogus records in the data source a different way.
I know there was discussion on efficiency of data source (now the
sqlite3 is plain text). I don't think the data source read API should
check the data syntax if libdns is also going to do it.
More information about the bind10-dev
mailing list