keep any address records included in the response to an NS query

Fixes #1671
This commit is contained in:
Daniel Brooks 2022-03-29 03:49:41 -07:00 committed by Benjamin Fry
parent 4743835056
commit 23b5dd9336
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -23,4 +23,5 @@ rls/**
# ignore fuzzing corpus
fuzz/artifacts/**
fuzz/corpus/**
fuzz/corpus/**
*~

View File

@ -403,6 +403,8 @@ where
{
found_name = true;
Some((r, ttl))
} else if query.query_type().is_ns() && r.rr_type().is_ip_addr() {
Some((r, ttl))
} else {
None
}