Dhcp option 'dns'

According to https://openwrt.org/docs/guide-user/base-system/dhcp

DNS servers to announce on the network. Only IPv6 addresses are accepted. To configure IPv4 DNS servers, use dhcp_option.

But to https://openwrt.org/docs/techref/odhcpd

DNS servers to announce on the network. IPv4 and IPv6 addresses are accepted.

Which one is correct?

Also, when I enable relay mode to relay IPv6 from wan to lan1 and lan2:

config dhcp 'lan1'
	option interface 'lan1'
	option dhcpv6 'hybrid'
	option dhcpv4 'server'
	option start '100'
	option limit '150'
	option leasetime '2h'
	option ra 'hybrid'
	list ra_flags 'managed-config'
	list ra_flags 'other-config'
	option ra_slaac '1'
	option ra_dns '1'
	list dns 'fde0:d2f7:a53c::1' # rewrite wan DNS to this address
	option ndp 'hybrid'

config dhcp 'lan2'
	option interface 'lan2'
	option dhcpv6 'hybrid'
	option dhcpv4 'server'
	option start '100'
	option limit '150'
	option leasetime '2h'
	option ra 'hybrid'
	list ra_flags 'managed-config'
	list ra_flags 'other-config'
	option ra_slaac '1'
	option ra_dns '1'
	# list dns 'fde0:d2f7:a53c::1' # I do not specify a DNS here
	option ndp 'hybrid'

config dhcp 'wan'
	option interface 'wan'
	option dhcpv6 'relay'
	option ra 'relay'
	option ndp 'relay'
	option master '1'

For some reason, hosts in lan2 receive the DNS fde0:d2f7:a53c::1 instead of the DNS on the wan interface, unless I remove that line from config dhcp 'lan1'. If I remove both lines, then all hosts from lan1 and lan2 receive DNS from wan normally. Is this a bug?

Did you enter this file via LUCI?

No I almost never use LuCI.

default odhcpd is without ip4 support, so in fact both texts say same.

ODHCPD is not DNSMasq