-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from wfaulk/master
add support for importing/exporting NAPTR records
- Loading branch information
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -291,6 +291,34 @@ var testConvertRRSetToBindTable = []struct { | |
}, | ||
}, | ||
}, | ||
{ | ||
Input: route53.ResourceRecordSet{ | ||
Type: aws.String("NAPTR"), | ||
Name: aws.String("example.com."), | ||
ResourceRecords: []*route53.ResourceRecord{ | ||
&route53.ResourceRecord{ | ||
Value: aws.String(`100 10 "u" "sip+E2U" "!^.*$!sip:[email protected]!i" .`), | ||
}, | ||
}, | ||
TTL: aws.Int64(86400), | ||
}, | ||
Output: []dns.RR{ | ||
&dns.NAPTR{ | ||
Hdr: dns.RR_Header{ | ||
Name: "example.com.", | ||
Rrtype: dns.TypeNAPTR, | ||
Class: dns.ClassINET, | ||
Ttl: uint32(86400), | ||
}, | ||
Order: 100, | ||
Preference: 10, | ||
Flags: "u", | ||
Service: "sip+E2U", | ||
Regexp: "!^.*$!sip:[email protected]!i", | ||
Replacement: ".", | ||
}, | ||
}, | ||
}, | ||
{ | ||
Input: route53.ResourceRecordSet{ | ||
Type: aws.String("A"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ test 86400 IN TXT "multivalued" " txt \"quoted\" record" | |
www 86400 IN A 10.0.0.1 | ||
web 86400 IN CNAME www | ||
google 86400 IN CNAME www.google.com. | ||
rfc3403-1 86400 IN NAPTR 100 10 "u" "sip+E2U" "!^.*$!sip:[email protected]!i" . | ||
rfc3403-2 86400 IN NAPTR 100 50 "a" "z3950+N2L+N2C" "" cidserver.example.com. |