[Pdns-users] Domains with binary (e.g. UTF-8) labels

Julian Mehnle julian at mehnle.net
Sat Dec 16 21:00:11 UTC 2006


Hi all,

I am having problems with getting the PowerDNS authoritative server to
serve domains that have binary labels.  For instance, I have a domain with
an UTF-8 encoded label: "こんにちは.mehnle.net".

It works fine with BIND 9.3:

| $ dig @localhost こんにちは.mehnle.net AAAA
| 
| ; <<>> DiG 9.3.2-P1 <<>> @localhost こんにちは.mehnle.net AAAA
| ; (1 server found)
| ;; global options:  printcmd
| ;; Got answer:
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2894
| ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 3, ADDITIONAL: 4
| 
| ;; QUESTION SECTION:
| ;\227\129\147\227\130\147\227\129\171\227\129\161\227\129\175.mehnle.net. IN AAAA
| 
| ;; ANSWER SECTION:
| \227\129\147\227\130\147\227\129\171\227\129\161\227\129\175.mehnle.net. 86400 IN CNAME io.mehnle.net.
| io.mehnle.net.          86400   IN      CNAME   mehnle.net.
| mehnle.net.             86400   IN      AAAA    2001:608:5::2
| 
| ;; AUTHORITY SECTION:
| [...]
| 
| ;; ADDITIONAL SECTION:
| [...]
| 
| ;; Query time: 6 msec
| ;; SERVER: 127.0.0.1#53(127.0.0.1)
| ;; WHEN: Sat Dec 16 20:22:09 2006
| ;; MSG SIZE  rcvd: 246

(I have the domain name verbatim, i.e. UTF-8-encoded, in my BIND zone
file.)

With PDNS (running on port 52), I get a time-out:

| $ dig @localhost こんにちは.mehnle.net AAAA -p 52
| 
| ; <<>> DiG 9.3.2-P1 <<>> @localhost こんにちは.mehnle.net AAAA -p 52
| ; (1 server found)
| ;; global options:  printcmd
| ;; connection timed out; no servers could be reached

and the following in syslog:

| $ cat syslog
| Dec 16 20:20:42 io pdns[9417]: Received a malformed qdomain from 127.0.0.1, '�201\223�202\223�201�201�201.mehnle.net': dropping

| $ hd syslog
| 00000000  44 65 63 20 31 36 20 32  30 3a 32 30 3a 34 32 20  |Dec 16 20:20:42 |
| 00000010  69 6f 20 70 64 6e 73 5b  39 34 31 37 5d 3a 20 52  |io pdns[9417]: R|
| 00000020  65 63 65 69 76 65 64 20  61 20 6d 61 6c 66 6f 72  |eceived a malfor|
| 00000030  6d 65 64 20 71 64 6f 6d  61 69 6e 20 66 72 6f 6d  |med qdomain from|
| 00000040  20 31 32 37 2e 30 2e 30  2e 31 2c 20 27 e3 5c 32  | 127.0.0.1, '.\2|
| 00000050  30 31 5c 32 32 33 e3 5c  32 30 32 5c 32 32 33 e3  |01\223.\202\223.|
| 00000060  5c 32 30 31 ab e3 5c 32  30 31 a1 e3 5c 32 30 31  |\201..\201..\201|
| 00000070  af 2e 6d 65 68 6e 6c 65  2e 6e 65 74 27 3a 20 64  |..mehnle.net': d|
| 00000080  72 6f 70 70 69 6e 67 0a                           |ropping.|
| 00000088

(My PDNS database is UTF-8-encoded, and I have the domain name verbatim in
the database.)

Is there a way for serving domains with binary labels with PDNS?  As far as
I can see, this is legal within the DNS RFCs.

Julian.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20061216/f037d3c1/attachment.sig>


More information about the Pdns-users mailing list