Glue records can be returned when the name server's name is same as the zone origin
Similar to issue #2384, when the
NS records name server's name is the same as the zone origin and if the zone origin has IP records, then they are not returned (RFC 8499 Page 25). Returning these kinds of glue records is optional, and the specification does not mandate it. As in the other issue, all the other famous implementations return them, so I am raising it as an issue but feel free to take it down.
BIND version used
BIND 9.17.8 (Development Release) id:8c6db04
Steps to reproduce
Consider the following zone file:
|foo.com||500 SOA||ns1.outside.edu. root.campus.edu. 3 86400 7200 604800 300|
For the query
<bar.foo.com., SOA> the answer from the BIND server is:
";QUESTION", "bankcard.foo.com. IN SOA", ";ANSWER", ";AUTHORITY", "bar.foo.com. 500 IN NS foo.com.", ";ADDITIONAL"
Other implementations return the additional section as follows:
";ADDITIONAL", "foo.com. 500 IN A 188.8.131.52", "foo.com. 500 IN AAAA 2400:cb00:2049:1::a29f:1804"
What is the expected correct behavior?
The IP records can also be returned.