This plugin allows CoreDNS to check PTR, A and AAAA in a postgres database.
Compile CoreDNS with the edited plugin.cfg
dnssec:dnssec
dbcheck:github.com/creamfinance/coredns-dbcheck
reverse:reverse
It may be possible that there are vendoring conflicts, for reproduceable results build in a container and move all vendored go modules from coredns into the global GOPATH.
Add the following section to your config file to enable the plugin.
dbcheck {
fallthrough
database postgres
connection_string postgres://coredns:[email protected]/coredns?sslmode=disable
}
Execute the provided db.sql file.
Merge requests for:
- additional type handling
- multi value handling
- dynamic tables (without the fixed structure)
- database support (for mysql, oracle, etc)
are welcome.