Share via


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 Name Attribute Value
XML Data Type Boolean
WMI Data Type
Boolean
ADSI Data Type Boolean
ABO Data Type Boolean
ABO Metabase identifier
MD_USE_HOST_NAME
Attributes INHERIT
Default Value true
MetaFlagsEx CACHE_PROPERTY_MODIFIED
User Type IIS_MD_UT_SERVER
StartingNumber Not applicable
EndingNumber 0
ID 2066

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Code Example

For general code examples, please see Code Examples to Configure Metabase Properties