su, 2006-06-25 kello 17:43 +0100, Simon Kelley kirjoitti: > Martin-Éric Racine wrote: > > ma, 2006-05-29 kello 10:21 +0100, Simon Kelley kirjoitti: > > > >>Martin-Éric Racine wrote: > >> > >>>la, 2006-05-27 kello 16:57 +0100, Simon Kelley kirjoitti: > >>> > >>> > >>>>Martin-Éric Racine wrote: > >>>> > >>>> > >>>>>Package: dnsmasq > >>>>>Version: 2.31-1 > >>>>>Severity: wishlist > >>>>> > >>>>>It would be desirable for dnsmasq to also set the A record for the mail > >>>>>exchange, > >>>>>to accomodate MTU that are not capable of polling the nameserver for MX > >>>>>records. > >>>> > >>>>It will do that for A records defined locally: ie MX record in > >>>>/etc/dnsmasq.conf and corresponding A record in /etc/hosts. > >>> > >>> > >>>Doing it that way, MX record can be an FQDN target at the ISP as defined > >>>in dsnmasq.conf (which leaves room open for the ISP to change the IP of > >>>their SMTP host), but A record ends up statically defined in /etc/hosts > >>>(which forces the dnsmasq user to hack /etc/hosts every time their ISP > >>>changes its mind about the IP for their mail server). > >>> > >>>What we need is a way to avoid statically linking an IP to the mail > >>>server's A record and to map it dynamically just like the MX answer. > >>> > >> > >>I understand: but doing that in dnsmasq is really hard: (there's > >>basically no way to create a DNS reply which has some local information > >>and some from upstream, without completely re-writing the program, and > >>losing the small footprint. > > > > > > Hmm... What if it were able to assign the A record to the target's IP? > > That is, we currently have: > > > > mail.intranet,mail.isp.com,50 > > > > We could give an A record reply that is the ISP's mail server IP. We > > would end up with: > > > > MX: mail.intranet, which is an alias for mail.isp.com with priority 50. > > A: mail.intranet, whose IP is the same as the one for mail.isp.com. > > > > Not quite kosher, I know, but it would achieve the desired result. > > If I've understood you suggestion correctly, you could do that just by > putting the mail.isp.com A record in /etc/hosts. dnsmasq would then > supply the A record in the additional section.
That won't work, because /etc/hosts wants static IP addresses, while what we're trying to achieve here is to dynamically fetch the A Record the same we we do for the MX Record. -- Martin-Éric Racine http://q-funk.iki.fi

