[This is preliminary documentation and subject to change]
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 |
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 |
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 |