[This is preliminary documentation and subject to change]

UseHostName

This property specifies whether the server returns its DNS host name (the computer name, by default) when doing redirects. If the value of this property is FALSE, then the host's IP address is returned instead of a host name.

note Note    If the client sends the host header, the server will use the value specified in the host header for the UseHostName property, regardless of the server's own internal setting.

Attribute NameAttribute Value
Data TypeBOOL
AttributesINHERIT
Default ValueFALSE
MetaFlagsExCACHE_PROPERTY_MODIFIED
User TypeIIS_MD_UT_SERVER
StartingNumber
EndingNumber0
ID2066

Access Locations

This property is accessible at the following locations:

Metabase PathIIS Admin Object Type
/LM/W3SVC/2IIsWebServer
/LM/W3SVC/Info/Templates/Public Web SiteIIsWebServer
/LM/W3SVC/Info/Templates/Secure Web SiteIIsWebServer
/LM/W3SVCIIsWebService

IIS Admin Base Object Information

The following table lists additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier
MD_USE_HOST_NAME
Data typeBOOL
User typeIIS_MD_UT_SERVER

© 1997-2001 Microsoft Corporation. All rights reserved.