RFC2317-style reverse zone mapping (repost)
n j
nino80 at gmail.com
Fri Dec 31 04:22:59 EST 2010
Seeing that there's a fresh activity on the list and a few other
people looking into the code, I decided to repost my post to the list
I sent a month ago and see if I get any responses this time. Since
it's kind of related to RFC and also related to not rarely used
functionality, I believe it might deserve some attention. Unless I got
it wrong and MaraDNS actually handles it well :-). Any comment is
appreciated.
Thanks,
--
Nino
---------- Forwarded message ----------
From: n j <nino80 at gmail.com>
Date: Wed, Nov 24, 2010 at 12:18 AM
Subject: RFC2317-style reverse zone mapping
To: list at maradns.org
I noticed that maradns doesn't like RFC2317-style reverse zone
mappings, i.e. slash character in particular:
0/25.3.2.10.in-addr.arpa NS ns.example.com
results in:
Error: Unexpected character
Error is on line 6 in file test.zone
context of error: <near beginning of line> 16/ (closing this file)
Error: Problem getting hostname
Error is on line 6 in file test.zone
context of error: <near beginning of line> 16/ (closing this file)
To be constructive, I found a workaround by modifying
csv2_is_alphanum() in Csv2_parse.c to allow slash:
/* Match on [0-9a-zA-Z\-\_] */
int csv2_is_alphanum(int32 in) {
return (csv2_is_alpha(in) || csv2_is_number(in) ||
in == '-' || in == '_' || in == '/');
}
The question is, is this safe to do? Will it maybe cause problems in
parsing slash commands (though I haven't noticed any)?
Thanks,
--
Nino
More information about the list
mailing list