dnas

command module
v0.0.0-...-7d88f83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2014 License: MIT Imports: 24 Imported by: 0

README

DNAS - Domain Name Analytics System

Build Status

Logs all DNS questions and answers for searching and metrics. Supports logging to mysql, postgres, sqlite3 and json.

Install

  • Using Go Get

    • Note: You will need libpcap-dev before you build DNAS.
    • go get github.com/mephux/dnas
  • Using Git & Go Build

    • Note: You will need libpcap-dev before you build DNAS.
    • git clone https://github.com/mephux/dnas.git
    • cd dnas
    • make
  • Using Vagrant & Docker

    • vagrant up

Usage

Example: sudo dnas -i en0 -H -u mephux

  DNAS (0.2.0) - Domain Name Analytics System

  Usage: dnas [options]

  Options:
    -i, --interface=eth0          Interface to monitor
    -p, --port=53                 DNS port (53)
    -D, --daemon                  Run DNAS in daemon mode
    -w, --write=FILE              Write JSON output to log file
    -u, --user=USER               Drop privileges to this user
    -H, --hexdump                 Show hexdump of DNS packet
        --mysql                   Enable Mysql Output Support
        --postgres                Enable Postgres Output Support
        --sqlite3                 Enable Sqlite3 Output Support
        --db-user=root            Database User (root)
        --db-password=PASSWORD    Database Password
        --db-database=dnas        Database Database (dnas)
        --db-host=127.0.0.1       Database Host
        --db-port=3306            Database Port
        --db-path=~/.dnas.db      Path to Database on disk. (sqlite3 only)
        --db-tls                  Enable TLS / SSL encrypted connection to the database. (mysql/postgres only)
        --db-skip-verify          Allow Self-signed or invalid certificate (mysql/postgres only)
        --db-verbose              Show database logs in STDOUT
    -q, --quiet                   Suppress DNAS output
    -v, --version                 Show version information

  Help Options:
    -h, --help                    Show this help message

OUTPUT Support

* sqlite3
* Mysql
* Postgres
* Json

Self-Promotion

Like DNAS? Follow the repository on GitHub and if you would like to stalk me, follow mephux on Twitter and GitHub.

MIT LICENSE

The MIT License (MIT) - LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL