Virtual Host Bruteforce
The vhost mode tests different Host HTTP headers against a target IP to discover virtual hosts configured on shared hosting, load balancers, and reverse proxies.
What are Virtual Hosts
Virtual hosting allows multiple websites to share a single IP address. The web server (Apache, Nginx, etc.) decides which site to serve based on the Host header in the HTTP request. When you visit example.com, your browser sends Host: example.com. If you send Host: admin.example.com to the same IP, you might get a completely different website.
This is extremely common in cloud environments, shared hosting, and CDNs. A single load balancer might route traffic for dozens of different domains and subdomains. Virtual host enumeration helps you discover these hidden websites that share the same infrastructure.
How Vhost Scanning Works
You specify the IP address (not the domain name) as the target. Gobuster sends HTTP requests directly to this IP.
For each word in the wordlist, Gobuster sends an HTTP request with Host: word.target.com
Gobuster compares the response to a baseline request. Different responses indicate a different virtual host.
Responses matching the baseline are filtered out. Unique responses are reported as discovered virtual hosts.
Vhost Scanning Commands
Basic Virtual Host Scan
1gobuster vhost -u http://10.0.0.1/ -w /usr/share/wordlists/vhosts.txt
Tests each word from vhosts.txt as a Host header against 10.0.0.1.
With Automatic Domain Appending
1gobuster vhost -u http://10.0.0.1/ -w /usr/share/wordlists/common.txt --append-domain -d example.com
The --append-domain flag adds .example.com to each wordlist entry automatically.
Higher Thread Count
1gobuster vhost -u http://10.0.0.1/ -w vhosts.txt -t 50
Increases parallelism for faster scanning against responsive targets.
Save Results
1gobuster vhost -u http://10.0.0.1/ -w vhosts.txt -o vhosts-found.txt
Saves discovered virtual hosts to a file for further investigation.
Tips & Considerations
Tip
--append-domain when your wordlist contains bare words like "admin", "api", "dev". Without it, Gobuster sends Host: admin which is usually wrong.Warning
Info
gobuster dns, then verify they resolve to the same IP and test with gobuster vhost.