mirror of
https://github.com/coredns/coredns.git
synced 2025-11-04 11:13:16 -05:00
plugin/acl: whitespace cleanup (#3239)
OWNERS file was padded, remove empty lines. Fix code block in README, and set codeblock type to 'corefile' without the upper case C. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -4,4 +4,3 @@ reviewers:
|
|||||||
approvers:
|
approvers:
|
||||||
- miekg
|
- miekg
|
||||||
- ihac
|
- ihac
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ To demonstrate the usage of plugin acl, here we provide some typical examples.
|
|||||||
|
|
||||||
Block all DNS queries with record type A from 192.168.0.0/16:
|
Block all DNS queries with record type A from 192.168.0.0/16:
|
||||||
|
|
||||||
~~~ Corefile
|
~~~ corefile
|
||||||
. {
|
. {
|
||||||
acl {
|
acl {
|
||||||
block type A net 192.168.0.0/16
|
block type A net 192.168.0.0/16
|
||||||
@@ -37,18 +37,18 @@ Block all DNS queries with record type A from 192.168.0.0/16:
|
|||||||
|
|
||||||
Block all DNS queries from 192.168.0.0/16 except for 192.168.1.0/24:
|
Block all DNS queries from 192.168.0.0/16 except for 192.168.1.0/24:
|
||||||
|
|
||||||
~~~ Corefile
|
~~~ corefile
|
||||||
. {
|
. {
|
||||||
acl {
|
acl {
|
||||||
allow net 192.168.1.0/24
|
allow net 192.168.1.0/24
|
||||||
block net 192.168.0.0/16
|
block net 192.168.0.0/16
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
~~~
|
||||||
|
|
||||||
Allow only DNS queries from 192.168.0.0/24 and 192.168.1.0/24:
|
Allow only DNS queries from 192.168.0.0/24 and 192.168.1.0/24:
|
||||||
|
|
||||||
~~~ Corefile
|
~~~ corefile
|
||||||
. {
|
. {
|
||||||
acl {
|
acl {
|
||||||
allow net 192.168.0.0/16 192.168.1.0/24
|
allow net 192.168.0.0/16 192.168.1.0/24
|
||||||
@@ -59,7 +59,7 @@ Allow only DNS queries from 192.168.0.0/24 and 192.168.1.0/24:
|
|||||||
|
|
||||||
Block all DNS queries from 192.168.1.0/24 towards a.example.org:
|
Block all DNS queries from 192.168.1.0/24 towards a.example.org:
|
||||||
|
|
||||||
~~~ Corefile
|
~~~ corefile
|
||||||
example.org {
|
example.org {
|
||||||
acl a.example.org {
|
acl a.example.org {
|
||||||
block net 192.168.1.0/24
|
block net 192.168.1.0/24
|
||||||
|
|||||||
Reference in New Issue
Block a user