Open zeha opened 11 years ago
There's a lot of toLower going around, but I'm sure we missed a few!
Example:
declare(suffix,"master-zone-query","Data", "select master from domains where name='%s' and type='SLAVE'");
Indeed, missing there
My earlier comments were about names, not types. Still a valid ticket I think.
thoughts from IRC:
I agree. Being strict would be good here. Can probably enforce that with triggers/constraints in most database schemas (and adding those to our schema files is fine).
i had recently problem with this and it was quite pain to find problem, axfr was working, manual notifies were working, but notify after dnsupdate was not, because i had master in type not MASTER...., i wouldn't think such thing would break functionality..., i use postgres
PowerDNS internally uses case insensitive comparison for the domains.type field. The default queries use "=" comparison, no matter what database is used. Depending on the database and configuration, this might be a case sensitive comparison.