DNSLog-GO 是一款使用 Golang 编写的监控 DNS 解析记录的工具,自带 WEB 界面。
Introduction --- DNSLog-GO is a tool written in golang to monitor DNS resolution logs. Support: - Docker one-line command deployment - WEB interface or API mode - Multiple accounts for multiple users. Or tool scanning and manual testing, data is not interfered with - Support for setting up A records to perform temporary testing or demonstrate ns service self-resolution Screenshot: Installation --- Detailed tutorial: https://mp.weixin.qq.com/s/mUXJa0imfOi721bkBpwFg 1. Get the release version Here https://GitHub.com/lanyi1998/DNSlog-GO/releases download the latest release and extract it, or run Docker shell wget https://raw.githubusercontent.com/lanyi1998/DNSlog-GO/master/config.yaml # modify your config.yaml file Docker run -d -p 53:53 -p 53:53/udp -p 8000:8000 -v pwd/config.yaml:/DNSlog-GO/config.yaml --name dnslog --privileged --restart=always lanyi1998/dnslog-go:latest 2. Prepare domain names and public IP addresses To build and use DNSLog, you need to have a domain name such as (a.com) and a public IP address such as 1.1.1.1. Modify the NS record of a.com to NS1.vpsip.NIP.IO NS2.vpsip.NIP.IO, such as ns1.1.1.1.1.nip.io ns1.1.1.1.1.nip.io In this step, you need to set up the NS record on the page provided by the domain name provider. Some domain name providers only allow the NS record to be modified to an already authenticated NS address. Therefore, you need to find a domain name provider that supports modifying the NS record to your own NS. Note: After modifying the NS record, it will take 24-48 hours to take effect in some regions. 3. Modify the configuration file config.ini Http: host: 0.0.0.0 port: 8000 consoleDisable: false User: # "token": "user corresponding to the subdomain" 'admin': 'dnslog' Dns: domain: demo.com ARecord: 'www': '1.1.1.1' 4. Start the client for the corresponding system Note that after the server restarts, if the user corresponding to the subdomain is modified, you must clear the localStorage in the browser, otherwise the data will not be retrieved --- API Python Demo ... 5. Golang SDK golang package main import ( "net/http" "GitHub.com/lanyi1998/DNSlog-GO/pkg/sdk" ) func main() { client, err := sdk.NewDnsLogClient("http://127.0.0.1:8000", "admin") if err != nil { panic(err) } dnslog := client.RandomSubDomain(10) client.RandomSSRFUrl(10) http.Get("http://" + dnslog) // one http request one dns if ok, := client.VerifyDns(dnslog); ok { println(" [DNS] Verification successful", dnslog) } // one request verifies multiple DNS, efficient, suitable for scenarios such as scanners that send large numbers of dns requests Stargazers over time 404星链计划 DNSlog-GO has now joined the 404 Star Chain Program
暂无开放 Issues,或尚未同步最近议题。