- The parser and semantic analyzer are written in Golang. You must download and install Golang from here before proceeding.
- Clone this GitHub repository
- Run
go install
in the directory to install all depedencies - Run
go build
to build the program. There should be an executable calleddnsScanner
in the current directory if it's compiled correctly. - Set the
DNSSCAN_RESOLV_PATH
environmental variable to the path of theresolv.conf
file. This file contains the information needed for the DNS library to perform lookups. There is a example file in this repository that uses8.8.8.8
to resolve DNS queries. - Run the
dnsScanner
executable. This spawns an HTTP server that listens at port 10000. An HTTP get request tohttp://localhost:1000/api/{domain}
(where "{domain}" is replaced with the domain to scan) awill return a JSON object with the results.
Feel free to contact me with any questions or issues!