Add client side support for DNS configuration. Use RTM_PROPOSAL_STATIC
authortobhe <tobhe@openbsd.org>
Wed, 1 Sep 2021 15:30:06 +0000 (15:30 +0000)
committertobhe <tobhe@openbsd.org>
Wed, 1 Sep 2021 15:30:06 +0000 (15:30 +0000)
commit9ef39cf4356d5d4cc171237b25a0461edfb93c4b
tree893c4caea44d551e3791a65be246ca2a283afa68
parent28fe9b395d0b2c3275562ddc62e5e43b39d409b9
Add client side support for DNS configuration. Use RTM_PROPOSAL_STATIC
route messages to propose the name server to resolvd(8).
For now, iked will only propose a single name server from the first
established connection.

Automatic name server configuration is enabled by default for policies using
the 'iface' option.

discussed with deraadt@
ok for the DNS parts florian@
ok for the rest patrick@
sbin/iked/config.c
sbin/iked/iked.c
sbin/iked/iked.h
sbin/iked/ikev2.c
sbin/iked/ikev2_msg.c
sbin/iked/ikev2_pld.c
sbin/iked/policy.c
sbin/iked/types.h
sbin/iked/vroute.c