diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-10-14 05:50:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-10-14 05:50:02 +0000 |
commit | 8a95d324b4c6c524bc8d3c3afb16fb83fc0f79d9 (patch) | |
tree | 19c85770565d41d0ef3cb4bffd07a5ae2aee97e5 /fetchmail.c | |
parent | e05e0142230fc5f61a5a2cfc513b9cd38ba5cdfd (diff) | |
download | fetchmail-8a95d324b4c6c524bc8d3c3afb16fb83fc0f79d9.tar.gz fetchmail-8a95d324b4c6c524bc8d3c3afb16fb83fc0f79d9.tar.bz2 fetchmail-8a95d324b4c6c524bc8d3c3afb16fb83fc0f79d9.zip |
Use UDP for DNS queries to avoid diald problems.
svn path=/trunk/; revision=1511
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/fetchmail.c b/fetchmail.c index 66c4331a..369e1fd4 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -369,7 +369,17 @@ int main (int argc, char **argv) * reflect the status of that transaction. */ do { -#ifdef HAVE_RES_SEARCH +#if defined(HAVE_RES_SEARCH) && defined(USE_TCPIP_FOR_DNS) + /* + * This was an efficiency hack that backfired. The theory + * was that using TCP/IP for DNS queries would get us better + * reliability and shave off some per-UDP-packet costs. + * Unfortunately it interacted badly with diald, which effectively + * filters out DNS queries over TCP/IP for reasons having to do + * with some obscure kernel problem involving bootstrapping of + * dynamically-addressed links. I don't understand this mess + * and don't want to, so it's "See ya!" to this hack. + */ sethostent(TRUE); /* use TCP/IP for mailserver queries */ #endif /* HAVE_RES_SEARCH */ @@ -457,7 +467,7 @@ int main (int argc, char **argv) } } -#ifdef HAVE_RES_SEARCH +#if defined(HAVE_RES_SEARCH) && defined(USE_TCPIP_FOR_DNS) endhostent(); /* release TCP/IP connection to nameserver */ #endif /* HAVE_RES_SEARCH */ |