host_name Property

The Domain Name of an Internet host. When set, it initiates a search for the corresponding address(es).

Syntax

def get_host_name() -> str: ...
def set_host_name(value: str) -> None: ...

host_name = property(get_host_name, set_host_name)

Default Value

""

Remarks

This property contains the domain name of the host whose IP address is specified by host_address.

If this property is set to a domain name, a search is initiated for the corresponding host address(s).

The on_request_complete event is fired when the search is complete. The request_id property identifies the pending request.

Example (Resolve a Name)


IPInfoControl.HostName = "MyHostName"
While IPInfoControl.PendingRequests > 0
    IPInfoControl.DoEvents()
End While
ResolvedAddress = IPInfoControl.HostAddress

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]