> -----Message d'origine-----
> De : Davide Libenzi [mailto:[EMAIL PROTECTED]
> Envoy=E9 : mardi 31 mai 2005 23:56
> =C0 : [email protected]
> Objet : [xmail] Re: Report concerning SmartDNSHost
>=20
>=20
> On Tue, 31 May 2005, Leonardo Fogel wrote:
>=20
> > Hi.
> >
> > I had changed the SmartDNSHost variable in the
> > server.tab:
> >
> > --- Old value ---
> > SmartDNSHost 200.20.235.49:udp,200.20.235.49:tcp
> >
> > --- New value ---
> > SmartDNSHost 10.0.1.2:udp
> >
> > but XMail used both DNSs until I restarted it.
>=20
> Hardly, since XMail always reload the server.tab file (no caching).
>=20
Yes, server.tab is not cached...
But Xmail can continue to use tcp dns requests even if smartdnshost =
only
specify udp since in xmail code, xmail automaticaly switch back to tcp =
when
udp response is truncated.
In DNS.cpp, function DNS_GetDomainMXDirect (called when smart dns host =
is
set) :
switch (iQuerySockType) {
case (DNS_QUERY_TCP):
{
..
..
..
case (DNS_QUERY_UDP):
default:
{
////////////////////////////////////////////////////////////////////////=
////
///
// Try needed UDP query first, if it's truncated switch to TCP query
////////////////////////////////////////////////////////////////////////=
////
///
bool bTruncated =3D false;
-> if (((pRespData =3D
-> DNS_QuerySendDGram(pszDNSServer, DNS_PORTNO,
DNS_SOCKET_TIMEOUT,
-> DNSQ, iQueryLenght,
bTruncated)) =3D=3D NULL) &&
-> bTruncated)
-> pRespData =3D
-> DNS_QuerySendStream(pszDNSServer,
DNS_PORTNO,
-> DNS_SOCKET_TIMEOUT,
DNSQ, iQueryLenght);
if (pRespData =3D=3D NULL)
return (ErrGetErrorCode());
}
break;
}
Francis
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]