Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a Windows 2003 IIS6 setup.

I would like to get an extract (system output) of all the header dns entries (virtual hosts etc).

As I need to move my server and just updated the IPs (I don't have direct access to my DNS server as it is managed by our hosting provider, and I can't very well just say "updated all our domains" as we have other servers.

And no, I don't have a pre-existing list, some of this was done before I joined my company.

Thoughts? Is there a way or do I go through manually and do it?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You can list the existing sites with:

cscript C:\WINDOWS\system32\iisweb.vbs /query

Output looks like the following, the Host column is the host header value.

Connecting to server ...Done.
Site Name (Metabase Path)                     Status  IP              Port  Host
================================================================================
Default Web Site (W3SVC/1)                    STARTED ALL             80    N/A
directory.example.com (W3SVC/2)               STARTED ALL             80    directory.example.com

Here is the Technet for iisweb.vbs as well as the Managing Web Sites Using Scripts parent article.

share|improve this answer
    
Great! Yep that's what I need :) Will accept your answer once it lets me (currently saying minimum 5 min) –  Jakub Jul 15 '11 at 17:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.