sonic-buildimage/files/image_config/resolv-config/resolv.conf.j2
Oleksandr Ivantsiv 475fe27c0b
[dns] Add support for static DNS configuration. (#14549)
- Why I did it
Add support for static DNS configuration. According to sonic-net/SONiC#1262 HLD.

- How I did it
Add a new resolv-config.service that is responsible for transferring configuration from Config DB into /etc/resolv.conf file that is consumed by various subsystems in Linux to resolve domain names into IP addresses.

- How to verify it
Run the image compilation. Each component related to the static DNS feature is covered with the unit tests.
Run sonic-mgmt tests. Static DNS feature will be covered with the system tests.
Install the image and run manual tests.
2023-06-22 19:12:30 +03:00

4 lines
70 B
Django/Jinja

{% for ip in DNS_NAMESERVER|sort %}
nameserver {{ ip }}
{% endfor -%}