diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-09-18 23:21:46 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-09-18 23:21:46 +0200 |
commit | 108e294d6b132f1cc276ef45178c0cd9f48599d2 (patch) | |
tree | 8e0fa811ed16e2cb03b82796657c4e4b7c56ceb1 /src/zonefile.h | |
parent | 0b6026ae2a96c4757688af51d927261536cc2873 (diff) | |
download | dns-108e294d6b132f1cc276ef45178c0cd9f48599d2.tar.gz |
zonefile: first steps
Diffstat (limited to 'src/zonefile.h')
-rw-r--r-- | src/zonefile.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/zonefile.h b/src/zonefile.h index 8c2dac3..98f1fa3 100644 --- a/src/zonefile.h +++ b/src/zonefile.h @@ -7,5 +7,18 @@ #pragma once #include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include "database.h" +#include "log.h" + +/** + * NOT COMPATIBLE WITH STANDARD ZONEFILES! + * use FIXED format + * <name> <ttl> <class> <type> <value> + */ +int zonefile_to_database (database_t *_database, char* _file); + +int zonefile_parse_line(database_t *_database, char *_line); -int zonefile_parse_to_list (void** _list, char* _file); |