* Fix corefile usage * plugin/file: allow README.md testing Allow readme testing for the file plugin and fix bugs that where found: * the reader wasn't reset when re-reading the same io.reader for a different origin. Signed-off-by: Miek Gieben <miek@miek.nl> * Update test/example_test.go Co-Authored-By: Michael Grosser <development@stp-ip.net>
16 lines
441 B
Go
16 lines
441 B
Go
package test
|
|
|
|
const exampleOrg = `; example.org test file
|
|
$TTL 3600
|
|
@ IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600
|
|
@ IN NS b.iana-servers.net.
|
|
@ IN NS a.iana-servers.net.
|
|
@ IN A 127.0.0.1
|
|
@ IN A 127.0.0.2
|
|
short 1 IN A 127.0.0.3
|
|
|
|
*.w 3600 IN TXT "Wildcard"
|
|
a.b.c.w IN TXT "Not a wildcard"
|
|
cname IN CNAME www.example.net.
|
|
service IN SRV 8080 10 10 @
|
|
`
|