GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - crissyfield/logsql: CoreDNS plugin to log requested domains in a database.

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
migrations
migrations
 
 
README.md
README.md
 
 
logsql.go
logsql.go
 
 
logsql_test.go
logsql_test.go
 
 
responsewriter.go
responsewriter.go
 
 
responsewriter_test.go
responsewriter_test.go
 
 
setup.go
setup.go
 
 
setup_test.go
setup_test.go
 
 

Repository files navigation

logsql

Name

logsql - logs DNS queries to a SQL database.

Description

The logsql plugin logs DNS queries and their associated domain names to a SQL database. It captures all domains present in DNS responses and stores them in a database.

Domains are "upserted" into the database, meaning that if a domain already exists, only the updated_at timestamp is updated for the existing database row. This allows you to track both when domains were first queried and when they were last seen.

Currently, the plugin supports PostgreSQL and SQLite3 databases.

Syntax

logsql DIALECT DSN
  • DIALECT is the database dialect to use (postgres or sqlite3)
  • DSN is the Data Source Name (connection string) for your database

Examples

Log all DNS queries to a PostgreSQL database:

. {
    logsql postgres postgres://user:password@localhost/dns_logs
    forward . 8.8.8.8
}

Log all DNS queries to a SQLite database:

. {
    logsql sqlite3 ./dns_logs.db
    forward . 8.8.8.8
}

About

CoreDNS plugin to log requested domains in a database.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.