DNSServer Property

The address of the DNS server.

Syntax

public var dnsServer: String?

Default Value

""

Remarks

This property contains the address of the DNS server. The component attempts to find the default DNS server for the machine where it is installed, and provide it in the DNSServer property. You may later change it to any particular DNS server you want to query. While any internet host running a DNS service will suffice, it is preferable to use either the DNS server for your network or the DNS server for the domain which you are querying.

If the component cannot determine the default DNS server address, the property value will be an empty string.

NOTE: Automatic discovery of the default DNS server is not supported in the Java edition.

This property is not available at design time.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks 2020 Kotlin Edition - Version 20.0 [Build 7941]