Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS doesn't resolve correctly when using local domains #54

Open
geNAZt opened this issue Feb 27, 2022 · 1 comment
Open

DNS doesn't resolve correctly when using local domains #54

geNAZt opened this issue Feb 27, 2022 · 1 comment

Comments

@geNAZt
Copy link

geNAZt commented Feb 27, 2022

Hi,

i have setup a custom domain (*.ldev) to show on my own network. This is done via resolver config on a mac os 12 device. The problem now is that ddosify doesn't try the local DNS resolver at all and directly tries to resolve the domain given via the parent DNS resolver (which is my router):

 ./ddosify -t https://symfony-test.ldev/lucky/number                                                            
⚙️  Initializing...
🔥 Engine fired.

🛑 CTRL+C to gracefully stop.
✔️  Successful Run: 0        0%       ❌ Failed Run: 14     100%       ⏱️  Avg. Duration: 0.00000s
^C✔️  Successful Run: 0        0%       ❌ Failed Run: 22     100%       ⏱️  Avg. Duration: 0.00000s


RESULT
-------------------------------------
Success Count:    0     (0%)
Failed Count:     22    (100%)

Durations (Avg):

Error Distribution (Count:Reason):
  22     :dial tcp: lookup symfony-test.ldev on 192.168.0.1:53: no such host

I would expect that ddosify can resolve the domain like all other tools like ping can:

ping symfony-test.ldev                                                                                                         
PING symfony-test.ldev (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.068 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.236 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.151 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.125 ms

Thanks :)

@fatihbaltaci
Copy link
Member

Hi @geNAZt, thanks for the issue :)

I reproduced the issue with the brew dnsmasq package. Since the ddosify is built on a different server, golang http package does not resolve your private dns server's domains. As a workaround, you can build ddosify on your machine:

cd /tmp
git clone https://github.com/ddosify/ddosify.git
go build -o ddosify
./ddosify -t https://symfony-test.ldev/lucky/number

I will look for other solutions to avoid this issue with the pre-compiled ddosify binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants