JoeDog / siege

Siege is an http load tester and benchmarking utility
GNU General Public License v3.0
5.91k stars 386 forks source link

-H "Host:x.y.z" http://MyIP/ is not using the provided IP and is going through the DNS #181

Open oah4333 opened 4 years ago

oah4333 commented 4 years ago

Hi I am using Siege 4.0.5 on centos 7. when I issue: siege --delay=0 -p -t2S -c1 -H "Host:x.y.z" http://Server's-IP/ The request is still going through the DNS and hence cloudflare. The whole reason I am using the server's IP and the host-header is to circumvent cloudflare i.e., the siege --delay=0 -p -t2S -c1 -H "Host:x.y.z" http://Server's-IP/ is behaving as if I have typed: siege --delay=0 -p -t2S -c1 http://x.y.z/

I tried the same header with apachebench and it is working just fine (it is hitting the server via the specified IP address) and then branches tot he host (as expected).

scarolan commented 9 months ago

Same problem here, even when I use an IP address it hammers the crap out of my DNS server. I tried putting a short hostname in the /etc/hosts file but it still insists on querying external DNS.