Here's the scenario:
I have a web application that creates a number of web sites on the server it's installed. Is there a way to get a list of all the URLs used on IIS on that server? I'd like to see any URL that's listed whether it directs to a web page, redirects to another URL, etc.
I've tried googling this, but I just get pages and pages of things to try that never seem to give me the info I'm looking for.
I'm a complete newbie to IIS.
Or do you mean perhaps every DOMAIN (or IP) that IIS is defined to be served?
The former would be more challenging, but it could be obtained by various means to just list every file in every web accessible folder.
The latter may really be what you mean, and that can be found by listing every binding in every site in iis, which can be done via the iis ui or at the command line such as with tools like appcmd.
Even then, note that if you have a binding for all ips (*) and no domain name (like the default site is defined out of the box), then you CANNOT tell from that info what domains might come in, as ANY could, if directed to your server's ip address from the definition in any dns server or hosts file.
(I have just added another reply, answering the question a different way.)