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 set settings.dns.name-servers=["1.2.3.4", "5.6.7.8"]
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 set settings.dns.search-list=["foo.bar", "baz.foo"]
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). ↩︎