summaryrefslogtreecommitdiffstats
path: root/net/dns.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-03-26 11:40:53 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-03 11:39:29 +0800
commit9c29dab5aab70d399c51d2cae73d9e40c5948707 (patch)
treecb41214c7a35bbe1fe15d2fac47c7dab67e28666 /net/dns.c
parentf76899fa9805178cf7c71daaecd4065d43ca068f (diff)
downloadbarebox-9c29dab5aab70d399c51d2cae73d9e40c5948707.tar.gz
barebox-9c29dab5aab70d399c51d2cae73d9e40c5948707.tar.xz
net: env: getenv_ip use resolv
Introduce getenv_ip_dns to be able to do not do the resolv when using it in resolv for the nameserver (Do not loop). Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'net/dns.c')
-rw-r--r--net/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.c b/net/dns.c
index 3c7aa5fa1f..fb1178ac45 100644
--- a/net/dns.c
+++ b/net/dns.c
@@ -205,7 +205,7 @@ IPaddr_t resolv(char *host)
dns_state = STATE_INIT;
- ip = getenv_ip("nameserver");
+ ip = getenv_ip_dns("nameserver", 0);
if (!ip)
return 0;