9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] dns time-outs
@ 2001-09-29 10:01 geoff
  2001-09-29 12:54 ` Boyd Roberts
  0 siblings, 1 reply; 2+ messages in thread
From: geoff @ 2001-09-29 10:01 UTC (permalink / raw)
  To: 9fans

My smtpd has refused a few messages (including one from 9fans),
apparently because dns couldn't resolve the sender's domain
within 60 seconds.  Looking back through the logs, this is a
new phenomenon.  This is the quick fix I'm using (relative
to /sys/src/cmd/ndb):

: cpu; diff `{yesterday dns.c} .
399c399,403
< 		req.aborttime = now + 60;	/* don't spend more than 60 seconds */
---
> 		/*
> 		 * we used to spend at most 60 seconds; that isn't long enough
> 		 * for lookups for smtpd any more.
> 		 */
> 		req.aborttime = now + 2*60;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] dns time-outs
  2001-09-29 10:01 [9fans] dns time-outs geoff
@ 2001-09-29 12:54 ` Boyd Roberts
  0 siblings, 0 replies; 2+ messages in thread
From: Boyd Roberts @ 2001-09-29 12:54 UTC (permalink / raw)
  To: 9fans

the 'sender domain must resolve' quagmire.  i know why you'd want
to do it, but it's not fail safe (unlike the RBL).  n * 60 -- how
do you choose n?  or do you just rip it out?





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-29 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-29 10:01 [9fans] dns time-outs geoff
2001-09-29 12:54 ` Boyd Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).