Re: [Exim] Long lookup time - almost solved now

Top Page
Delete this message
Reply to this message
Author: Marcin Owsiany
Date:  
To: exim-users
Old-Topics: Re: [Exim] Long lookup time
Subject: Re: [Exim] Long lookup time - almost solved now
I did a ltrace. The most interesting part is:

17:24:01 gethostbyname2(0x080bc0d8, 10, 0xbffff30c, 0x0807b8f2, 0x40177988) = 0
                                    ^^
17:25:22 gethostbyname2(0x080bc0d8, 2, 0xbffff30c, 0x0807b8f2, 0x40177988) = 0x401779f8
   ^^^^^


from libc.info:

 - Function: struct hostent * gethostbyname2 (const char *NAME, int AF)
     The `gethostbyname2' function is like `gethostbyname', but allows
     the caller to specify the desired address family (e.g.  `AF_INET'
     or `AF_INET6') for the result.


from /usr/include/linux/socket.h:

#define AF_INET            2       /* Internet IP Protocol */
#define AF_INET6        10      /* IP version 6 */


No wonder that nameservers don't feel like replying to that querries.
Apparently Debian's exim was compiled with IPv6 support :-\ Aliasing
net-pf-10 to off didn't help.

Now please tell me how to disable IPv6 support without recompiling exim?

regards

Marcin
-- 
+--------------------------------+ The reason we come up with new versions
|Marcin Owsiany                  | is not to fix bugs. It's the stupidest
|porridge@???| reason to buy a new version
+--------------------------------+ I ever heard.            - Bill Gates