Skip to content
Snippets Groups Projects
Commit d347fbb7 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

conf: convert zone name to lower-case

fixes #207
parent f66e1462
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@
%{
#include <config.h>
#include <ctype.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
......@@ -347,6 +348,11 @@ static void conf_zone_start(void *scanner, char *name) {
this_zone->name = name; /* Already FQDN */
}
// Convert zone name to lower-case.
for (size_t i = 0; this_zone->name[i]; i++) {
this_zone->name[i] = tolower(this_zone->name[i]);
}
// DNSSEC configuration
this_zone->dnssec_enable = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment