Skip to content

a1fred/coredns-sql

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published