H
H
HexUserHex2020-01-31 14:09:10
Nginx
HexUserHex, 2020-01-31 14:09:10

Find out dns names of all sites located on the same server?

Good afternoon,
What is the current way to find all sites located on the same server (using virtualhost)?

PS: Not naturally having access to the server (remotely)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Godless, 2020-01-31
@Godless

For Apache

grep -Ri "ServerName" /etc/apache2
grep -Ri "ServerAlias" /etc/apache2

for nginx
grep -Ri "server_name" /etc/nginx
UPD: Here is the answer why not.
There is no direct way, only a full enumeration of DNS names and a comparison of the result.

C
CityCat4, 2020-01-31
@CityCat4

What is the current way...

None. And there never was. Only a stupid direct enumeration of all conceivable options.

D
Dr. Bacon, 2020-01-31
@bacon

Bing had the ability to specify Ip in the search and it showed all the domains that it had in the index. Been using it for a long time, don't know how it is now.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question