forked from coredns/coredns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin/file: Use NXDOMAIN response if CNAME target is NXDOMAIN (cored…
…ns#4303) * pass through nxdomain results Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * return srvfail and nodata results Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * cover more response cases Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
- Loading branch information
1 parent
5ecf23a
commit 6bbb48d
Showing
3 changed files
with
145 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$ORIGIN example.org. | ||
@ 3600 IN SOA sns.dns.icann.org. noc.dns.icann.org. ( | ||
2017042745 ; serial | ||
7200 ; refresh (2 hours) | ||
3600 ; retry (1 hour) | ||
1209600 ; expire (2 weeks) | ||
3600 ; minimum (1 hour) | ||
) | ||
|
||
3600 IN NS a.iana-servers.net. | ||
3600 IN NS b.iana-servers.net. | ||
|
||
chain1 3600 IN CNAME nxdomain | ||
nxdomain 3600 IN CNAME nxdomain.example.net. | ||
chain2 3600 IN CNAME srvfail | ||
srvfail 3600 IN CNAME srvfail.example.net. | ||
chain3 3600 IN CNAME nodata | ||
nodata 3600 IN CNAME nodata.example.net. | ||
|