]> go.fuhry.dev Git - runtime.git/commit
machines/agent: support dns_server_v[46] fields with interface name stand ins
authorDan Fuhry <dan@fuhry.com>
Fri, 13 Sep 2024 01:04:26 +0000 (21:04 -0400)
committerDan Fuhry <dan@fuhry.com>
Fri, 13 Sep 2024 01:04:26 +0000 (21:04 -0400)
commitc906502f427c8ba30e3809e2c58c437bcc599056
tree04e94111b85e3196867d78a6f7e9da7400fa5bc7
parent6b49f6fcd79cb12a095778e55414490874ba3f8c
machines/agent: support dns_server_v[46] fields with interface name stand ins

Add support for the `dns_server_v4` and `dns_server_v6` domain fields.

If either is a unix network interface name, use the primary IP address of that interface as the address.
machines/templates/dhcpd4.conf.j2
machines/templates/dhcpd6.conf.j2
machines/types.go