aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
blob: bb1a4ac9735c6c9c1450e0b1ba3301b17bfc9f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* main.c
 * (c) Jonas Gunz, 2019
 * License: MIT
 * */

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>

#include "log.h"
#include "server.h"

#ifdef _TEST
#include "test.h"
#endif

int main(int argc, char* argv[])
{
	log_init_stdout(_LOG_DEBUG);
	//CMD line arg parsing goes in here
#ifdef _TEST
	run_test();
#else
	server_config_t config;

	memset(&config, 0, sizeof config);

	config.bind_ip = "0.0.0.0";
	config.bind_port = 53;
	config.zonefile = "/nofile";

	server_start( &config );
#endif

}