Host Network System Get Dns Config
Deprecated as of vSphere API 5.5, which is moved to each NetStackInstance. This only works on the default NetStackInstance.
Client-side DNS configuration.
The unique identifier for the managed object to which the property attaches; the serialized managed object reference for a request has the form moType/moId
, in this case HostNetworkSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
OK
{
"_typeName": "string",
"dhcp": false,
"virtualNicDevice": "string",
"ipv6VirtualNicDevice": "string",
"hostName": "string",
"domainName": "string",
"address": [
"string"
],
"searchDomain": [
"string"
]
}
The flag to indicate whether or not DHCP (dynamic host control protocol) is used to determine DNS configuration automatically.
If DHCP is enabled, the DHCP DNS of the vmkernel nic will override the system's DNS.
This field applies to both IPv4 and IPv6 DNS settings if ipv6VirtualNicDevice is unset, otherwise it is applicable only for IPv4 setting. This field is ignored if DHCP is disabled by the dhcp property.
If DHCP is enabled, the IPv6 DHCP DNS of the vmkernel nic will override the system's IPv6 DNS.
This field is ignored if DHCP is disabled by the dhcp property.
The host name portion of DNS name.
For example, "esx01".
Note: When DHCP is not enabled, the property can be set explicitly. When DHCP is enabled, the property reflects the current DNS configuration, but cannot be set. The hostName can't have character '.' in it when set explicitly.
The domain name portion of the DNS name.
For example, "vmware.com".
Note: When DHCP is not enabled, the property can be set explicitly. When DHCP is enabled, the property reflects the current DNS configuration, but cannot be set.
The IP addresses of the DNS servers, placed in order of preference.
Note: When DHCP is not enabled, the property can be set explicitly. When DHCP is enabled, the property reflects the current DNS configuration, but cannot be set.
The domain in which to search for hosts, placed in order of preference.
Note: When DHCP is not enabled, the property can be set explicitly. When DHCP is enabled, the property reflects the current DNS configuration, but cannot be set.