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. iD8DBQFEeGezeXr56x4Muc0RAhqFAKCvPNdzk9cKqBJ/DU+S4aBgZ9cOVQCcCYfS PKi9LgRDCqMGHe4KbJKi23M= =/hdK -----END PGP SIGNATURE-----
Martin-Éric Racine wrote: /etc/dnsmasq.conf and corresponding A record in /etc/hosts. The design of dnsmasq makes it impossible to create answers which contain data from both the upstream nameservers and local configuration. Cheers, Simon.
la, 2006-05-27 kello 16:57 +0100, Simon Kelley kirjoitti: 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.
Martin-Éric Racine wrote: 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. Have you actually found an MTA which doesn't do a second A record DNS lookup when it gets an MX record without an additional section? I can't quickly find an authoritative reference, but I think the absence of additional section records should not be taken as evidence of absence of records in the DNS. Addition sections are a performance hack to eliminate redundant queries, not authoritative answers. Cheers, Simon.
ma, 2006-05-29 kello 10:21 +0100, Simon Kelley kirjoitti: 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. ssmtp (debian package of the same name) knows nothing about MX record.
Martin-Éric Racine wrote: 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. If that's a solution, then I'll probably tag this "wontfix". As a explained before, the complete solution is not practical. Ah, OK. Cheers, Simon.
su, 2006-06-25 kello 17:43 +0100, Simon Kelley kirjoitti: 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.