diff options
author | Erik Troan <ewt@redhat.com> | 2000-11-20 16:33:50 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-11-20 16:33:50 +0000 |
commit | cba7676771bc67a8554676b4e39137b519effd81 (patch) | |
tree | 97c4fbfc036ade9c38d2015c51b9671f9351fe03 /isys/dns.c | |
parent | 74e47027b8b1f910a3ef76ba311efbcf6e6bd07c (diff) | |
download | anaconda-cba7676771bc67a8554676b4e39137b519effd81.tar.gz anaconda-cba7676771bc67a8554676b4e39137b519effd81.tar.xz anaconda-cba7676771bc67a8554676b4e39137b519effd81.zip |
retry dns queries 3 times on all platforms instead of twice
Diffstat (limited to 'isys/dns.c')
-rw-r--r-- | isys/dns.c | 10 |
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; |