4201. [func] The default preferred-glue is now the address record

type of the transport the query was received
                        over.  [RT #40468]

(cherry picked from commit a0ef8211d3)
This commit is contained in:
Mark Andrews 2015-09-11 13:27:58 +10:00
parent 21094e3172
commit 33eddc9bc0
4 changed files with 19 additions and 1 deletions

View file

@ -1,3 +1,7 @@
4201. [func] The default preferred-glue is now the address record
type of the transport the query was received
over. [RT #40468]
4200. [cleanup] win32: update BINDinstall to be BIND release
independent. [RT #38915]

View file

@ -953,6 +953,12 @@ ns_client_send(ns_client_t *client) {
else if (client->view->preferred_glue == dns_rdatatype_aaaa)
preferred_glue = DNS_MESSAGERENDER_PREFER_AAAA;
}
if (preferred_glue == 0) {
if (isc_sockaddr_pf(&client->peeraddr) == AF_INET)
preferred_glue = DNS_MESSAGERENDER_PREFER_A;
else
preferred_glue = DNS_MESSAGERENDER_PREFER_AAAA;
}
#ifdef ALLOW_FILTER_AAAA_ON_V4
/*

View file

@ -5356,7 +5356,9 @@ badresp:1,adberr:0,findfail:0,valfail:0]
If specified, the listed type (A or AAAA) will be emitted
before other glue
in the additional section of a query response.
The default is not to prefer any type (NONE).
The default is to prefer A records when responding
to queries that arrived via IPv4 and AAAA when
responding to queries that arrived via IPv6.
</para>
</listitem>
</varlistentry>

View file

@ -177,6 +177,12 @@
as specified in RFC 6763. [RT #37889]
</para>
</listitem>
<listitem>
<para>
The default preferred glue is now the address type of the
transport the query was received over.
</para>
</listitem>
</itemizedlist>
</sect2>
<sect2 id="relnotes_port">