Skip to content

chuanjiesun/dns_log-in-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dns_log-in-golang

capture DNS QUERY traffic ,written in golang, support mirror port(可镜像口抓取).  

This program use gopacket to capture DNS REQUEST,and use beego ORM MYSQL to log into mysql database.

Requirements

golang gopacket beego go-sql-driver libpcap-dev

Test

Test on Debian

Usage

go run dns_log.go

OR compile it to binary,and execute it.

You should edit database configurations to adapt to yours.
1. create a database
2. the program will auto create table and log dns queries

There are screenshots


About

capture DNS QUERY traffic ,written in golang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages