diff options
author | 2013-03-30 20:00:08 +0000 | |
---|---|---|
committer | 2013-03-30 20:00:08 +0000 | |
commit | 5d09e3abbd70de275119af6ecffb0185db4e280a (patch) | |
tree | 649ebc24efc2bdec97538c6828277250a9803ade /lib/libc/asr/asr.c | |
parent | Fix i2c_algo_dp_aux_exec() such that it handles all transactions needed by (diff) | |
download | wireguard-openbsd-5d09e3abbd70de275119af6ecffb0185db4e280a.tar.xz wireguard-openbsd-5d09e3abbd70de275119af6ecffb0185db4e280a.zip |
Do not assume local nameserver if resolv.conf doesn't exist, just use
/etc/hosts.
discussed with deraadt@
Diffstat (limited to 'lib/libc/asr/asr.c')
-rw-r--r-- | lib/libc/asr/asr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/asr/asr.c b/lib/libc/asr/asr.c index 8d47653226c..ecf31322248 100644 --- a/lib/libc/asr/asr.c +++ b/lib/libc/asr/asr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asr.c,v 1.16 2013/03/30 08:06:42 otto Exp $ */ +/* $OpenBSD: asr.c,v 1.17 2013/03/30 20:00:08 eric Exp $ */ /* * Copyright (c) 2010-2012 Eric Faurot <eric@openbsd.org> * @@ -57,7 +57,7 @@ #define DEFAULT_CONFFILE "/etc/resolv.conf" #define DEFAULT_HOSTFILE "/etc/hosts" -#define DEFAULT_CONF "lookup bind file\nnameserver 127.0.0.1\n" +#define DEFAULT_CONF "lookup file\n" #define DEFAULT_LOOKUP "lookup bind file" #define RELOAD_DELAY 15 /* seconds */ |