diff --git a/btpd/main.c b/btpd/main.c index cabe0d2..5eb40fd 100644 --- a/btpd/main.c +++ b/btpd/main.c @@ -2,13 +2,13 @@ #include #include -#include #include #include +#include +#include #include #include #include -#include #include #include @@ -216,6 +216,12 @@ args_done: event_init(); + if ((errno = evdns_resolv_conf_parse(DNS_OPTION_NAMESERVERS, + "/etc/resolv.conf")) != 0) { + btpd_log(BTPD_L_ERROR, + "failed to setup dns from /etc/resolv.conf (%d).\n", errno); + } + btpd_init(); event_dispatch();