<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<base href="x-msg://330/">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br>
<div>
<div>On Jul 7, 2011, at 9:30 PM, Luo Ce wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div lang="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1" style="page: WordSection1; ">
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">Hi all,<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><o:p> </o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">When I use unbound and send a query with qtype = any<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">dig @localhost<span class="Apple-converted-space"> </span><a href="http://www.google.com" style="color: blue; text-decoration: underline; ">www.google.com</a><span class="Apple-converted-space"> </span>any<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">unbound returns me the following results:<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">; (1 server found)<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">;; global options: +cmd<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">;; Got answer:<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11161<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 0<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><o:p> </o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">;; QUESTION SECTION:<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">;www.google.com. IN ANY<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><o:p> </o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">;; ANSWER SECTION:<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><a href="http://www.google.com" style="color: blue; text-decoration: underline; ">www.google.com</a>. 604800 IN CNAME <span class="Apple-converted-space"> </span><a href="http://www.l.google.com" style="color: blue; text-decoration: underline; ">www.l.google.com</a>.<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><a href="http://www.l.google.com" style="color: blue; text-decoration: underline; ">www.l.google.com</a>. 300 IN A 74.125.71.147<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><a href="http://www.l.google.com" style="color: blue; text-decoration: underline; ">www.l.google.com</a>. 300 IN A 74.125.71.99<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><a href="http://www.l.google.com" style="color: blue; text-decoration: underline; ">www.l.google.com</a>. 300 IN A 74.125.71.106<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><a href="http://www.l.google.com" style="color: blue; text-decoration: underline; ">www.l.google.com</a>. 300 IN A 74.125.71.105<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><a href="http://www.l.google.com" style="color: blue; text-decoration: underline; ">www.l.google.com</a>. 300 IN A 74.125.71.103<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><a href="http://www.l.google.com" style="color: blue; text-decoration: underline; ">www.l.google.com</a>. 300 IN A 74.125.71.104<o:p></o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US"><o:p> </o:p></span></div>
<div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; ">
<span lang="EN-US">I just want to know whether the A records are needed for the qtype any, cos when I send the same query to bind, it only returns me the cname answer.<br>
<o:p></o:p></span></div>
</div>
</div>
</span></blockquote>
<br>
</div>
<div>I believe what is happening here is that unbound is returning what the authoritative server returns for 'www.google.com/ANY', while BIND is reconstructing the answer (that is, looking at its cache and returning all RRsets that match the qname). </div>
<div><br>
</div>
<div>So, maybe a better question is: why does google's authoritative nameservers return the A records with qtype=ANY?</div>
<div><br>
</div>
<div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<font class="Apple-style-span" face="Menlo" size="3"><span class="Apple-style-span" style="font-size: 12px; ">--<br>
David Blacka <<a href="mailto:davidb@verisign.com">davidb@verisign.com</a>> <br>
Principal Engineer Verisign Infrastructure Engineering</span></font></div>
</span></div>
</span></span></div>
<br>
</body>
</html>