We forgot to put braces around the DNS_NAME regex, and in DNS_NAME_OR_IP_REGEX this is wrong because the regex ^foo|bar$ matches 'foo' at the beginning and 'bar' at the end, so either foobaz bazbar would match. only ^(foo|bar)$ matches only 'foo' and 'bar' Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>