diff --git a/src/reslib.c b/src/reslib.c index dcc7450..fce6f05 100644 --- a/src/reslib.c +++ b/src/reslib.c @@ -149,7 +149,10 @@ int irc_res_init(void) { irc_nscount = 0; - return parse_resvconf(); + parse_resvconf(); + if (irc_nscount == 0) + add_nameserver("127.0.0.1"); + return 0; } /* parse_resvconf()