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   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.

Data type Boolean
Default value FALSE
Inheritance Inheritable

Access Locations

This property is accessible at the following locations:

Metabase Path Key Type
/LM/W3SVC IIsWebService
/LM/W3SVC/N IIsWebServer

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
Default value DWORD_METADATA
User type IIS_MD_UT_SERVER