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:
parent
35f6f850b6
commit
351078d072
|
@ -149,7 +149,10 @@ int
|
||||||
irc_res_init(void)
|
irc_res_init(void)
|
||||||
{
|
{
|
||||||
irc_nscount = 0;
|
irc_nscount = 0;
|
||||||
return parse_resvconf();
|
parse_resvconf();
|
||||||
|
if (irc_nscount == 0)
|
||||||
|
add_nameserver("127.0.0.1");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* parse_resvconf()
|
/* parse_resvconf()
|
||||||
|
|
Loading…
Reference in New Issue