Skip to content

Commit

Permalink
Add a flags "s" NAPTR test to exercize previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
miodvallat committed Jan 24, 2025
1 parent d92343c commit 1d21ed1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion regression-tests/tests/naptr/command
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
cleandig enum.test.com NAPTR

cleandig ensm.test.com NAPTR
6 changes: 5 additions & 1 deletion regression-tests/tests/naptr/expected_result
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0 enum.test.com. 3600 IN NAPTR 100 50 "u" "e2u+sip" "" testuser.domain.com.
0 enum.test.com. 3600 IN NAPTR 100 50 "u" "e2u+sip" "" server1.test.com.
Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='enum.test.com.', qtype=NAPTR
0 ensm.test.com. 3600 IN NAPTR 100 50 "s" "e2u+sip" "" server1.test.com.
2 server1.test.com. 3600 IN A 1.2.3.4
Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='ensm.test.com.', qtype=NAPTR
3 changes: 2 additions & 1 deletion regression-tests/zones/test.com
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ server1 IN A 1.2.3.4
*.test IN CNAME server1
www.test IN A 4.3.2.1
sub.test IN NS ns-test.example.net
enum IN NAPTR 100 50 "u" "e2u+sip" "" testuser.domain.com.
enum IN NAPTR 100 50 "u" "e2u+sip" "" server1.test.com.
ensm IN NAPTR 100 50 "s" "e2u+sip" "" server1.test.com.
counter IN A 1.1.1.5
_ldap._tcp.dc IN SRV 0 100 389 server2.example.net.
_double._tcp.dc IN SRV 0 100 389 server1
Expand Down

0 comments on commit 1d21ed1

Please sign in to comment.