Skip to content

Record incorrectly synthesized from wildcard record

Hi,

When the query itself has the character *, then the Knot server does not synthesize the record correctly.

For example, consider the following zone file:

campus.edu. 500 SOA ns1.campus.edu. root.campus.edu. 3 86400 7200 604800 300
campus.edu. 500 NS ns1.outside.edu.
*.campus.edu. 500 CNAME test.com.

For the query <*.foo.campus.edu, NS>, the response returned by Knot was:

        ";QUESTION",
        "*.foo.campus.edu. IN NS",
        ";ANSWER",
        "*.campus.edu. 500 IN CNAME test.com.",

The synthesized record has the domain name *.campus.edu instead of the query name *.foo.campus.edu.