After upgrading BIND from BIND 9.9.7-P2 to BIND 9.9.7-P3 on about a dozen authoritative + recursive servers, we noticed a strange caching issue on one of the servers.
The server is authoritative for our main domain (let's assume example.com). There are multiple subdomains under example.com that have been NS delegated to other servers. Whenever the DNS server would respond to a recursive "A" record query from its cache, the "Answers" part of the request would always be in upper case - such as foo.bar.EXAMPLE.COM. More details below I noted the following behavior using a packet capture -A client requests for "foo.bar.example.com" "A" record. -Our server then does a lookup against bar.example.com authoritative server for "A" record "foo.bar.exampe.com" -Our server gets a response from bar.example.com authoritative server: ; ANSWER SECTION: foo.bar.example.com. 10 IN A 192.168.0.1 -Our server responds to the clients request for foo.bar.example.com and stores the response for 10 seconds (the TTL of the record). At this point the answer section is still in all lower case - the clients gets the following: ; ANSWER SECTION: foo.bar.example.com. 10 IN A 192.168.0.1 -The next time the client queries for foo.bar.exmaple.com, our server responds from the cache and changes the case from example.com to EXAMPLE.COM. It continues to serve EXAMPLE.COM in upper case as part of the answer while the TTL is still valid. ; ANSWER SECTION: foo.bar.EXAMPLE.COM. 9 IN A 192.168.0.1 -This behavior was observed for "A" record responses for queries under any subdomain of example.com. The case was only change to upper case on the answer section. Example.com also appeared under the question, authority, and additional sections but only in the answer section was the case changed. We eventually restarted BIND and the issue went away. After restarting BIND all responses served from cache are now lower case, as expected. Has anyone seen this behavior before ? Is this a bug ? This caused issues for certain applications on our network that did string comparison and expected the answer section to be in lower case. _______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users