| Field | Type | Description | Value(s) |
|---|---|---|---|
nameservers | NameserverConfig | A list of nameservers (DNS servers) to use for resolving domain names. Nameservers are used to resolve domain names on the host, and they are also propagated to Kubernetes DNS (CoreDNS) for use by pods running on the cluster. This overrides any nameservers obtained via DHCP or platform configuration. Default configuration is to use 1.1.1.1 and 8.8.8.8 as nameservers. | |
searchDomains | SearchDomainsConfig | Configuration for search domains (in /etc/resolv.conf). The default is to derive search domains from the hostname FQDN. |
nameservers[]
NameserverConfig represents a single nameserver configuration.| Field | Type | Description | Value(s) |
|---|---|---|---|
address | Addr | The IP address of the nameserver. |
searchDomains
SearchDomainsConfig represents search domains configuration.| Field | Type | Description | Value(s) |
|---|---|---|---|
domains | []string | A list of search domains to be used for DNS resolution. Search domains are appended to unqualified domain names during DNS resolution. For example, if “example.com” is a search domain and a user tries to resolve ”host”, the system will attempt to resolve “host.example.com”. This overrides any search domains obtained via DHCP or platform configuration. The default configuration derives the search domain from the hostname FQDN. | |
disableDefault | bool | Disable default search domain configuration from hostname FQDN. When set to true, the system will not derive search domains from the hostname FQDN. This allows for a custom configuration of search domains without any defaults. |