summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-11-20 16:33:50 +0000
committerErik Troan <ewt@redhat.com>2000-11-20 16:33:50 +0000
commitcba7676771bc67a8554676b4e39137b519effd81 (patch)
tree97c4fbfc036ade9c38d2015c51b9671f9351fe03
parent74e47027b8b1f910a3ef76ba311efbcf6e6bd07c (diff)
downloadanaconda-cba7676771bc67a8554676b4e39137b519effd81.tar.gz
anaconda-cba7676771bc67a8554676b4e39137b519effd81.tar.xz
anaconda-cba7676771bc67a8554676b4e39137b519effd81.zip
retry dns queries 3 times on all platforms instead of twice
-rw-r--r--isys/dns.c10
1 files changed, 3 insertions, 7 deletions
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;