You can set vhost in apache, so that you can build independent websites with multiple domain names on one host.
I have a requirement, which is to find the vhost list on the host given the public IP address of the host.
The solution I am currently thinking of is to capture packets with tcpdump and analyze the vhost field in the http protocol. However, if this process is programmed, it will still require a lot of work to implement. I just want to know if there are any ready-made tools that can achieve it.
Or is there any other good solution that can be implemented?
如果只是想知道ip对应的host.
dig -x x.x.x.x +short
刚刚试过了,这个方法好像不行哦
![](http://img.php.cn/upload/image/000/000/000/191aa41f4a18d77f71907aa8a551394f-0.png)
加了 +short 参数说明都不显示
不加 +short 参数显示出dns服务器信息