diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-05-05 10:39:22 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-05-05 10:39:22 +0200 |
commit | 57e6cf6b01e981ce159d472f3e3ed92f893ad443 (patch) | |
tree | ec90834b00596e8a2992182341263f242fcfc753 /src/main.c | |
parent | 98c68ed8cc11fa8932e480256b2544c50aaa790b (diff) | |
download | dns-57e6cf6b01e981ce159d472f3e3ed92f893ad443.tar.gz |
changing server logic
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -16,15 +16,20 @@ 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"; - run_dns_server( &config ); + server_start( &config ); #endif } |