You are viewing documentation for version 1.15.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.conf
1 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
Note
If you do not provide this setting, Bottlerocket gathers the name servers from the DHCP lease.
[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
settings.dns.search-list
An list of domain strings that represent the desired domain search path(s).
Note
If you do not provide this setting, Bottlerocket gathers the DNS search list from the DHCP lease.
[settings.dns]
search-list = ["foo.bar", "baz.foo"]
apiclient apply <<EOF
[settings.dns]
search-list = ["foo.bar", "baz.foo"]
EOF