Use 127.0.0.1 as nameserver if none can be found in /etc/resolv.conf.

This agrees with bind's behaviour.
This commit is contained in:
Jilles Tjoelker 2007-12-11 18:37:14 +01:00
parent 35f6f850b6
commit 351078d072
1 changed files with 4 additions and 1 deletions

View File

@ -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()