Home  >  Q&A  >  body text

nginx - Is there any tool that can automatically analyze the vhosts of public IP addresses?

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?

迷茫迷茫2618 days ago478

reply all(2)I'll reply

  • 为情所困

    为情所困2017-05-16 17:01:43

    如果只是想知道ip对应的host.
    dig -x x.x.x.x +short

    reply
    0
  • ringa_lee

    ringa_lee2017-05-16 17:01:43

    刚刚试过了,这个方法好像不行哦
    加了 +short 参数说明都不显示
    不加 +short 参数显示出dns服务器信息

    reply
    0
  • Cancelreply