a1fred / coredns-sql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coredns-sql

Simplified version of https://github.com/wenerme/coredns-pdsql/

  • Domain table removed
  • Wildcard searches removed
  • Case insensitive search using sql: LOWER(...)
  • fallthrough option added

Usage

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...]
}

See also

About


Languages

Language:Go 98.4%Language:Makefile 1.6%