RFC2317-style reverse zone mapping

n j nino80 at gmail.com
Tue Nov 23 18:18:56 EST 2010


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