coredns-override/README.md

25 lines
485 B
Markdown
Raw Normal View History

2022-04-02 23:33:05 +00:00
A plugin to override A and AAAA records with a custom value.
I made this to override the public IP address of my server with its VPN IP address.
There is probably a better way to do this, but I couldn't find it.
# Usage
2022-04-03 14:14:48 +00:00
Add this to your `plugin.cfg` beetween `minimal` and `template` :
2022-04-02 23:33:05 +00:00
```
2022-04-03 14:14:48 +00:00
override:git.kapelle.org/niklas/coredns-override
2022-04-02 23:33:05 +00:00
```
In your `Corefile`:
```
. {
override {
12.34.56.78 10.0.0.1
98.76.54.32 10.0.0.2
}
forward . 1.1.1.1
}
```