<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">Hello, NSD Developers.</p>

<p dir="auto">I'm seeing, to my surprise, that NSD seems to be forcing PTR RDATA<br>
to lower case when loading zone data from a file. Details follow<br>
further on below.</p>

<p dir="auto">Data specified in mixed case as "SSID-ORselves" appears in a DNS<br>
response as "ssid-orselves".  Packet capture seems to confirm that what<br>
I am seeing is not an artefact of the third-party test tool (dig) used.</p>

<p dir="auto">This seems to be at odds with at least the spirit of both RFCs 1034 and<br>
4343. It seems to me that transferring a zone from a master file to the<br>
database should (even SHOULD) follow as thoroughly as possible the<br>
same rules as apply to an over-the-wire transfer.</p>

<p dir="auto">Perhaps I'm missing some configuration option, or just have a peculiar<br>
reading of the scriptures, but I think this behaviour is erroneous.</p>

<p dir="auto">Best regards,</p>

<p dir="auto">Niall O'Reilly</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">$ uname -a
FreeBSD sand.no8.be 12.1-RELEASE-p6 FreeBSD 12.1-RELEASE-p6 GENERIC  amd64


$ nsd -v
NSD version 4.3.1
Written by NLnet Labs.

Copyright (C) 2001-2006 NLnet Labs.  This is free software.
There is NO warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.


$ grep -i '\.f\.ip6.* ssid' /usr/local/etc/nsd/no8.be.internal-zone
*.0.2.e.d.3.f.6.2.7.8.0.0.b.1.d.f.ip6 IN PTR SSID-ORselves
*.0.1.e.d.3.f.6.2.7.8.0.0.b.1.d.f.ip6 IN PTR SSID-ORguests
$ echo ${SSH_CLIENT%% *}
fd1b:87:26f3:de20:c4c:c229:aaf9:f66a


$ dig @::1 +norec -x ${SSH_CLIENT%% *}

; <<>> DiG 9.16.4 <<>> @::1 +norec -x fd1b:87:26f3:de20:c4c:c229:aaf9:f66a
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53140
;; flags: qr aa; QUERY: 1, ANSWER: 3, AUTHORITY: 1, ADDITIONAL: 4

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;a.6.6.f.9.f.a.a.9.2.2.c.c.4.c.0.0.2.e.d.3.f.6.2.7.8.0.0.b.1.d.f.ip6.arpa. IN PTR

;; ANSWER SECTION:
3.f.6.2.7.8.0.0.b.1.d.f.ip6.arpa. 300 IN DNAME    3.f.6.2.7.8.0.0.b.1.d.f.ip6.no8.be.
a.6.6.f.9.f.a.a.9.2.2.c.c.4.c.0.0.2.e.d.3.f.6.2.7.8.0.0.b.1.d.f.ip6.arpa. 300 IN CNAME a.6.6.f.9.f.a.a.9.2.2.c.c.4.c.0.0.2.e.d.3.f.6.2.7.8.0.0.b.1.d.f.ip6.no8.be.
a.6.6.f.9.f.a.a.9.2.2.c.c.4.c.0.0.2.e.d.3.f.6.2.7.8.0.0.b.1.d.f.ip6.no8.be. 300    IN PTR ssid-orselves.no8.be.

;; AUTHORITY SECTION:
no8.be.            300    IN    NS    int-ns1.no8.be.

;; ADDITIONAL SECTION:
int-ns1.no8.be.        300    IN    AAAA    2001:bb6:572:b800::35:d
int-ns1.no8.be.        300    IN    AAAA    fd1b:87:26f3:de00::35:d
int-ns1.no8.be.        300    IN    A    10.0.16.13

;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Sun Jul 05 08:01:20 UTC 2020
;; MSG SIZE  rcvd: 359

$
</code></pre>
</div>
</div>
</body>
</html>