From cba7676771bc67a8554676b4e39137b519effd81 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Mon, 20 Nov 2000 16:33:50 +0000 Subject: retry dns queries 3 times on all platforms instead of twice --- isys/dns.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'isys') diff --git a/isys/dns.c b/isys/dns.c index 9ee40fa1a..232215efa 100644 --- a/isys/dns.c +++ b/isys/dns.c @@ -21,14 +21,8 @@ static int doQuery(char * query, int queryType, char name[MAXDNAME]; union dns_response response; -#ifdef __sparc__ - /* from jj: */ - /* We have to wait till ethernet negotiation is done */ + /* Give time to finish ethernet negotiation */ _res.retry = 3; -#else - _res.retry = 2; -#endif - len = res_search(query, C_IN, queryType, (void *) &response, sizeof(response)); @@ -111,6 +105,8 @@ char * mygethostbyaddr(char * ipnum) { splits[1], splits[0]); rc = doQuery(ipnum, T_PTR, &result, NULL); + if (rc) + rc = doQuery(ipnum, T_PTR, &result, NULL); if (rc) return NULL; -- cgit