You are viewing documentation for version 1.24.x. The most current version is 1.26.x.  This documentation is available for 1.26.x.

dns

Settings related to custom DNS settings (settings.dns.*)

Bottlerocket generates the host resolv.conf1 from settings.dns.* values.

Setting list for settings.dns


Full Reference

settings.dns.name-servers

A list of IP address strings that represent the desired name server(s).

Accepted values:
  • IP addresses
[settings.dns]
name-servers = ["1.2.3.4", "5.6.7.8"]
apiclient apply <<EOF
[settings.dns]
name-servers = ["1.2.3.4", "5.6.7.8"]
EOF
Also see: 

settings.dns.search-list

An list of domain strings that represent the desired domain search path(s).

[settings.dns]
search-list = ["foo.bar", "baz.foo"]
apiclient apply <<EOF
[settings.dns]
search-list = ["foo.bar", "baz.foo"]
EOF
Also see: 

  1. /etc/resolv.conf for variants using wicked and /run/systemd/resolve/resolv.conf for variants using systemd-networkd (*-k8s-1.28-* and *-ecs-2-* and newer). ↩︎