sandeeprenjith / dnsblast

DNS Blast is a performance testing utility for DNS servers. It generates multiple simultaneous DNS queries against a specified DNS server and allows you to specify the rate of queries.
Other
36 stars 4 forks source link

dnsblast will not launch on windows 10 #16

Open Chouhada opened 4 years ago

Chouhada commented 4 years ago

Describe the bug Unable to execute a test on Windows 10 using the downloaded binary

To Reproduce Steps to reproduce the behavior:

  1. Download the dnsblast-v1-windows-amd64.tar.gz package and extract
  2. Executing dnsblast.exe will provide a help output as expected
  3. Running dnsblast with -s will fail. Eg dnsblast -s 192.168.1.2. IP address doesn't matter.
c:\Users\User\Desktop>dnsblast.exe
  -l int
        Duration to run load (default 60)
  -p string
        The destination UDP port (default "53")
  -r int
        Packets per second to send (default 100)
  -s string
        The address of the target server (default "invalid")

c:\Users\User\Desktop>dnsblast.exe -s 1.1.1.1
2020/06/13 16:19:54  === Error Handler ===
2020/06/13 16:19:54 read udp 192.168.1.217:56399->1.1.1.1:53: i/o timeout
2020/06/13 16:19:54  === Error Handler ===
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0x615925]

goroutine 1 [running]:
github.com/sandeeprenjith/dnsblast/qry.SimpleQuery(0xc0000120d8, 0x7, 0x68c0d5, 0x2, 0xc0000122d0, 0xd, 0x68c095, 0x1, 0xc000062180)
        /home/nd33p/go/src/github.com/sandeeprenjith/dnsblast/qry/qry.go:31 +0x235
main.main()
        /home/nd33p/go/src/github.com/sandeeprenjith/dnsblast/main.go:51 +0x2f5

c:\Users\User\Desktop>

Expected behavior dnsblast should run the command successfully

Desktop (please complete the following information):