1; config options 2server: 3 local-zone: "a." static 4 local-data: "myd.a. NSEC myd2.a. CNAME NSEC" 5 local-data: "myd.a. CNAME myd.target.a." 6 7 ; Switches the types first one then the other. 8 local-data: "myd2.a. CNAME myd2.target.a." 9 local-data: "myd2.a. NSEC myd3.a. CNAME NSEC" 10 11stub-zone: 12 name: "a" 13 stub-addr: 1.2.3.4 14 15CONFIG_END 16SCENARIO_BEGIN Test local data queries with CNAME and other data. 17 18RANGE_BEGIN 0 1000 19 ADDRESS 1.2.3.4 20ENTRY_BEGIN 21MATCH opcode qtype qname 22ADJUST copy_id 23REPLY QR NOERROR 24SECTION QUESTION 25www.refuse.top. IN A 26SECTION ANSWER 27www.refuse.top. IN A 5.5.5.5 28ENTRY_END 29RANGE_END 30 31; local data query for type next to CNAME, the specific type should 32; be preferred over the CNAME. 33STEP 10 QUERY 34ENTRY_BEGIN 35REPLY RD 36SECTION QUESTION 37myd.a. IN NSEC 38ENTRY_END 39 40STEP 20 CHECK_ANSWER 41ENTRY_BEGIN 42MATCH all 43REPLY QR RD RA AA 44SECTION QUESTION 45myd.a. IN NSEC 46SECTION ANSWER 47myd.a. NSEC myd2.a. CNAME NSEC 48ENTRY_END 49 50STEP 30 QUERY 51ENTRY_BEGIN 52REPLY RD 53SECTION QUESTION 54myd2.a. IN NSEC 55ENTRY_END 56 57STEP 40 CHECK_ANSWER 58ENTRY_BEGIN 59MATCH all 60REPLY QR RD RA AA 61SECTION QUESTION 62myd2.a. IN NSEC 63SECTION ANSWER 64myd2.a. NSEC myd3.a. CNAME NSEC 65ENTRY_END 66 67SCENARIO_END 68