]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
general-functions.pl: validdomainname misinterprets RFC1035
authorAxel Gembe <ago@multipixs.com>
Mon, 11 Aug 2014 04:23:58 +0000 (12:23 +0800)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 11 Aug 2014 08:51:18 +0000 (10:51 +0200)
commit8ed77b039fd0373fdc07ec79877caf34b8264cd2
tree87ab0a9f283322233ba92c01f058705520569f98
parent0eba3dc448e17d49299781706ff1f44f51413f3f
general-functions.pl: validdomainname misinterprets RFC1035

The function validdomainname checks that each part of a domain name is at least
2 characters in length, but RFC1035 only makes a restriction on a "label" being
at most 63 characters in length. This change allows reverse DNS zones like
2.168.192.in-addr.arpa to be added to the DNS forward configuration, which was
incorrectly prevented before.

Signed-off-by: Axel Gembe <ago@multipixs.com>
config/cfgroot/general-functions.pl