110 lines
1.8 KiB
Plaintext
110 lines
1.8 KiB
Plaintext
; config options
|
|
; The island of trust is at example.com
|
|
server:
|
|
local-zone: "example.com." typetransparent
|
|
local-data: "mail.example.com. IN A 10.20.30.40"
|
|
|
|
stub-zone:
|
|
name: "."
|
|
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
|
|
CONFIG_END
|
|
|
|
SCENARIO_BEGIN Test local data with typetransparent zone
|
|
|
|
; K.ROOT-SERVERS.NET.
|
|
RANGE_BEGIN 0 100
|
|
ADDRESS 193.0.14.129
|
|
ENTRY_BEGIN
|
|
MATCH opcode qtype qname
|
|
ADJUST copy_id
|
|
REPLY QR NOERROR
|
|
SECTION QUESTION
|
|
. IN NS
|
|
SECTION ANSWER
|
|
. IN NS K.ROOT-SERVERS.NET.
|
|
SECTION ADDITIONAL
|
|
K.ROOT-SERVERS.NET. IN A 193.0.14.129
|
|
ENTRY_END
|
|
|
|
ENTRY_BEGIN
|
|
MATCH opcode qtype qname
|
|
ADJUST copy_id
|
|
REPLY QR AA NOERROR
|
|
SECTION QUESTION
|
|
mail.example.com. IN MX
|
|
SECTION ANSWER
|
|
mail.example.com. IN MX 100 mail.example.com.
|
|
ENTRY_END
|
|
|
|
ENTRY_BEGIN
|
|
MATCH opcode qtype qname
|
|
ADJUST copy_id
|
|
REPLY QR AA NOERROR
|
|
SECTION QUESTION
|
|
www.example.com. IN AAAA
|
|
SECTION ANSWER
|
|
www.example.com. IN AAAA 2001::1
|
|
ENTRY_END
|
|
|
|
RANGE_END
|
|
|
|
STEP 1 QUERY
|
|
ENTRY_BEGIN
|
|
REPLY RD DO
|
|
SECTION QUESTION
|
|
mail.example.com. IN A
|
|
ENTRY_END
|
|
; get straight answer from localdata
|
|
|
|
STEP 10 CHECK_ANSWER
|
|
ENTRY_BEGIN
|
|
MATCH all
|
|
REPLY QR AA RD RA DO NOERROR
|
|
SECTION QUESTION
|
|
mail.example.com. IN A
|
|
SECTION ANSWER
|
|
mail.example.com. IN A 10.20.30.40
|
|
SECTION AUTHORITY
|
|
ENTRY_END
|
|
|
|
STEP 20 QUERY
|
|
ENTRY_BEGIN
|
|
REPLY RD DO
|
|
SECTION QUESTION
|
|
mail.example.com. IN MX
|
|
ENTRY_END
|
|
|
|
; get internet answer for other type.
|
|
|
|
STEP 30 CHECK_ANSWER
|
|
ENTRY_BEGIN
|
|
MATCH all
|
|
REPLY QR RD RA DO NOERROR
|
|
SECTION QUESTION
|
|
mail.example.com. IN MX
|
|
SECTION ANSWER
|
|
mail.example.com. IN MX 100 mail.example.com.
|
|
ENTRY_END
|
|
|
|
STEP 40 QUERY
|
|
ENTRY_BEGIN
|
|
REPLY RD DO
|
|
SECTION QUESTION
|
|
www.example.com. IN AAAA
|
|
ENTRY_END
|
|
|
|
; get internet answer for other name.
|
|
|
|
STEP 50 CHECK_ANSWER
|
|
ENTRY_BEGIN
|
|
MATCH all
|
|
REPLY QR RD RA DO NOERROR
|
|
SECTION QUESTION
|
|
www.example.com. IN AAAA
|
|
SECTION ANSWER
|
|
www.example.com. IN AAAA 2001::1
|
|
ENTRY_END
|
|
|
|
|
|
SCENARIO_END
|