[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 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
Data Type | BOOL
Attributes | INHERIT
Default Value | FALSE
MetaFlagsEx | CACHE_PROPERTY_MODIFIED
User Type | IIS_MD_UT_SERVER
StartingNumber |
EndingNumber | 0
ID | 2066

### Access Locations

This property is accessible at the following locations:

Metabase Path | IIS Admin Object Type
/LM/W3SVC/2 | IIsWebServer
/LM/W3SVC/Info/Templates/Public Web Site | IIsWebServer
/LM/W3SVC/Info/Templates/Secure Web Site | IIsWebServer
/LM/W3SVC | IIsWebService

### 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 type | BOOL
User type | IIS_MD_UT_SERVER

© 1997-2001 Microsoft Corporation. All rights reserved.