On Thu, May 20, 2004 at 12:29:18PM +0300, Tzafrir Cohen wrote:
> On Thu, May 20, 2004 at 12:15:03PM +0200, Nachum Kanovsky wrote:
> > No delay when connected, but the delay can be upwards of a few minutes, when
> > it is not connected.
> >
> > Here is what I've checked so far:
> > Strace reports waitpid(-1, 0xbfffff8c, WNOHANG) and waits on this for a
> > while,
>
> Try 'strace -f' to follow after a fork.
>
I checked it out on my laptop. It looks like exim4 is trying to resolve
the ip of hostname (including domain), and it insists on connecting to
the dns server, having an entry in hosts doesn't seem to help (same
behavior with using host, ping does work through hosts)
Any idea on how to make host and exim4 go through hosts to resolve
hostname?
That is I have hostname litshi, domain luna.local (in resolv.conf).
both strace and tcpdump show a connection to the dns server to resolve
litshi.luna.local.
strace -f produces (192.168.0.1 would be the dns server)
[pid 17824] close(4) = 0
[pid 17824] munmap(0x40355000, 45100) = 0
[pid 17824] socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
[pid 17824] connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("192.168.0.1")}, 28) = 0
[pid 17824] send(4, "n\273\1\0\0\1\0\0\0\0\0\0\6litshi\4luna\5local\0\0"..., 35, 0) =
35
[pid 17824] gettimeofday({1085060186, 109435}, NULL) = 0
[pid 17824] poll( <unfinished ...>
[pid 17803] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 17803] rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid 17803] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 17803] rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid 17803] rt_sigaction(SIGINT, {0x8075fd0, [], SA_RESTORER, 0x4008f658}, {0x80837d0,
[], SA_RESTORER, 0x4008f658}, 8) = 0
[pid 17803] waitpid(-1, Process 17803 suspended
<unfinished ...>
[pid 17824] <... poll resumed> [{fd=4, events=POLLIN}], 1, 5000) = 0
[pid 17824] send(4, "n\273\1\0\0\1\0\0\0\0\0\0\6litshi\4luna\5local\0\0"..., 35, 0) =
35
[pid 17824] gettimeofday({1085060191, 111916}, NULL) = 0
[pid 17824] poll( <unfinished ...>
> --
> Tzafrir Cohen +---------------------------+
> http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
> mailto:[EMAIL PROTECTED] +---------------------------+
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>
>
> +++++++++++++++++++++++++++++++++++++++++++
> This Mail Was Scanned By Mail-seCure System
> at the Tel-Aviv University CC.
>
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]