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
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue