Discussion:
AUTOCONF4 flag
Peter Wens
2021-05-01 14:10:07 UTC
Permalink
Hi,

In OpenSBD 6.9 the AUTOCONF4 flag is not set
with 'dhcp' set in hostname.if (from fresh install)

If 'autoconf' instead of 'dhcp' is used with dhcpleased
the flag is set.

Is this intentional in 6.9?

Best regards,

Peter
Theo de Raadt
2021-05-01 15:08:34 UTC
Permalink
Post by Peter Wens
Hi,
In OpenSBD 6.9 the AUTOCONF4 flag is not set
with 'dhcp' set in hostname.if (from fresh install)
You have described this incorrectly. In 6.8, choosing "dhcp" would run
dhclient(8) in that interfaces, and dhclient would set the AUTOCONF4 flag.
That was incorrect. AUTOCONF4 is supposed to work like AUTOCONF6.

These are per-interface flags which indicate a request: "Someone please
go get us a dynamic address". dhclient incorrectly believed the flag
meant "I have gotten a dynamic address"
Post by Peter Wens
If 'autoconf' instead of 'dhcp' is used with dhcpleased
the flag is set.
Is this intentional in 6.9?
Yes, it is intentional.

In 6.9:

1) 'autoconf' is to instruct dhcpleased(8), to do dhcp lease-learning, then
dhcpleased(8) will communicate learned DNS configuration via
route-socket to resolvd(8), which will make changes to /etc/resolv.conf

2) 'dhcp' runs a per-interface dhclient(8) which will manage /etc/resolv.conf

The two dhcp modes of operation are incompatible.

By 7.0 we hope to switch to the model described in (1), because this
allows resolvd(8) to blend DNS configuration from multiple sources into
/etc/resolv.conf, rather than havine one per-interface daemon smashing
the file.
Peter Wens
2021-05-01 19:17:32 UTC
Permalink
Thanks for clearing this up.

Peter
Post by Theo de Raadt
Post by Peter Wens
Hi,
In OpenSBD 6.9 the AUTOCONF4 flag is not set
with 'dhcp' set in hostname.if (from fresh install)
You have described this incorrectly. In 6.8, choosing "dhcp" would run
dhclient(8) in that interfaces, and dhclient would set the AUTOCONF4 flag.
That was incorrect. AUTOCONF4 is supposed to work like AUTOCONF6.
These are per-interface flags which indicate a request: "Someone please
go get us a dynamic address". dhclient incorrectly believed the flag
meant "I have gotten a dynamic address"
Post by Peter Wens
If 'autoconf' instead of 'dhcp' is used with dhcpleased
the flag is set.
Is this intentional in 6.9?
Yes, it is intentional.
1) 'autoconf' is to instruct dhcpleased(8), to do dhcp lease-learning, then
dhcpleased(8) will communicate learned DNS configuration via
route-socket to resolvd(8), which will make changes to /etc/resolv.conf
2) 'dhcp' runs a per-interface dhclient(8) which will manage /etc/resolv.conf
The two dhcp modes of operation are incompatible.
By 7.0 we hope to switch to the model described in (1), because this
allows resolvd(8) to blend DNS configuration from multiple sources into
/etc/resolv.conf, rather than havine one per-interface daemon smashing
the file.
Loading...