2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

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

type of the transport the query was received
                        over.  [RT #40468]
This commit is contained in:
Mark Andrews
2015-09-11 13:27:58 +10:00
parent 3fa134363f
commit a0ef8211d3
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

@@ -1005,6 +1005,12 @@ 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
/*

View File

@@ -5538,7 +5538,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

@@ -610,6 +610,12 @@
using the <option>log</option> clause.
</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">