Compare commits
2 Commits
6ff47b2a29
...
fb818b86a2
| Author | SHA1 | Date | |
|---|---|---|---|
| fb818b86a2 | |||
| 8dc088ffde |
@@ -4,10 +4,9 @@ I made this to override the public IP address of my server with its VPN IP addre
|
|||||||
There is probably a better way to do this, but I couldn't find it.
|
There is probably a better way to do this, but I couldn't find it.
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
Add this to your `plugin.cfg` beetween `minimal` and `template` :
|
||||||
Add this to your `plugin.cfg`:
|
|
||||||
```
|
```
|
||||||
override:git.kapelle.org/niklas/coredns-override
|
override:git.kapelle.org/niklas/coredns-override
|
||||||
```
|
```
|
||||||
|
|
||||||
In your `Corefile`:
|
In your `Corefile`:
|
||||||
|
|||||||
2
setup.go
2
setup.go
@@ -22,8 +22,6 @@ func setup(c *caddy.Controller) error {
|
|||||||
return plugin.Error("override", err)
|
return plugin.Error("override", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug(rules)
|
|
||||||
|
|
||||||
dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler {
|
dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler {
|
||||||
return Override{Next: next, Rules: rules}
|
return Override{Next: next, Rules: rules}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user