Simplified version of https://github.com/wenerme/coredns-pdsql/
Domain
table removed- Wildcard searches removed
- Case insensitive search using sql:
LOWER(...)
fallthrough
option added
plugin.cfg
...
sql:github.com/a1fred/coredns-sql
sql_postgres:github.com/jinzhu/gorm/dialects/postgres
...
Corefile
sql postgres "host=postgres user=postgres password=postgres dbname=dns port=5432 sslmode=disable" {
# debug db # Uncomment to log sql queries
auto-migrate
fallthrough [ZONES...]
}