[Dnsmasq-discuss] MX forwarding
Gene Czarcinski
gene at czarc.net
Fri Aug 24 20:26:13 BST 2012
On 08/23/2012 10:26 AM, Gene Czarcinski wrote:
> For a query from test2 of "host xxx", the response were:
>
> query[A]: config xxx.tst is NXDOMAIN-IPv6
> query[A]: config xxx is NODATA-IPv4
> query[AAAA]: config xxx is NODATA-IPv6
> query[MX]: forwarded xxx to 192.168.122.1 <<------------
I have been looking at the code. I really do not want to spend the time
to figure out everything about how dnsmasq works and, thus, I may be
misunderstanding something.
This whole deal came up because I realized that, by default,
/usr/bin/host will query for A, AAAA, and MX records.
First of all, let me expand on questions. If "domain-needed" is
specified in the conf file or on the command line, then I believe that
NO (repeat NO), query requests should be forwarded for any query types
... not just A or AAAA.
Does anyone have a reason that the above should not be the case (that is
some plain-name queries should be forwarded even if domain-needed is
specified?
OK, in the little looking at the code, I believe that some changes are
needed in forward.c around line 212 or at least somewhere in the
search_servers routine.
In my testing, I have come up with yet another corner-case: if you use
"host ." then, sure enough all the queries are forwarded. I cannot see
why this should be done.
All of these "problems" are really corner-cases ... I can see myself, if
I was writing the code, think why worry about that, that type of query
will never be issued. Yeah, right.
Any comments are appreciated.
Gene
More information about the Dnsmasq-discuss
mailing list