Configure Dns Settings
Configures DNS server addresses and search domains for the HCX Manager appliance.
Important Notes:
- Service Restart Required: You must restart the Application Service and Web Service for DNS changes to take effect
- Changes are persistent across reboots
- Maximum 3 DNS servers recommended (OS limitation)
- DNS search domains help resolve unqualified hostnames
Restart Commands:
systemctl restart app-engine
systemctl restart web-engine
Warning: Without DNS configuration, the HCX Manager may not resolve:
- vCenter Server hostnames
- NSX Manager hostnames
- NTP server hostnames
- External service endpoints
{
"ipv4Dns": [
"10.0.0.10",
"10.0.0.11"
],
"ipv6Dns": [
"2001:db8::1",
"2001:db8::2"
],
"domainList": "example.com,corp.example.com"
}
List of IPv4 DNS server addresses
List of IPv6 DNS server addresses
Comma-separated list of DNS search domains
DNS settings configured successfully
{
"ipv4Dns": [
"10.0.0.10",
"10.0.0.11"
],
"ipv6Dns": [
"2001:db8::1",
"2001:db8::2"
],
"domainList": "example.com,corp.example.com"
}
List of IPv4 DNS server addresses
List of IPv6 DNS server addresses
Comma-separated list of DNS search domains
Bad request - Invalid DNS configuration
{
"isSuccess": false,
"message": "Request schema validation failed",
"httpStatusCode": 400
}
Indicates if the operation was successful
Human-readable error message
HTTP status code
Internal server error - Failed to configure DNS
{
"isSuccess": false,
"message": "Request schema validation failed",
"httpStatusCode": 400
}
Indicates if the operation was successful
Human-readable error message
HTTP status code
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/system/network/dns