Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3706 - odhcpd defaults to advertising it's own host as a resolver #8723

Closed
openwrt-bot opened this issue Mar 25, 2021 · 6 comments
Closed
Labels

Comments

@openwrt-bot
Copy link

brianjmurrell:

Supply the following if possible:

  • Device problem occurs on
    x86_64
  • Software versions of OpenWrt/LEDE release, packages, etc.
    19.07.7
    Package: odhcpd
    Version: 2020-05-03-49e4949c-3
  • Steps to reproduce
    Configure LAN interface for IPv6. In the "config dhcp 'lan'" section of /etc/config/dhcp don't configure any dns items.

Observe that odhcpd (possibly incorrectly) just assumes the host that it is running on is a DNS resolver and puts the IP address of the node it's running in it's RAs as a "Recursive DNS server".

Of course, if there is a resolver running in the network with an IPv6 address, I can use "list dns '...'" to specify it.

But if there is no resolver with an IPv6 address, including the host odhcpd is running on, there is no way to prevent odhcpd from announcing an invalid "Recursive DNS server" as it incorrectly announces itself barring any "dns" option/list configuration.

@openwrt-bot
Copy link
Author

jow-:

Use option dns_service 0 to inhibit this behavior. Also see https://git.openwrt.org/?p=project/odhcpd.git;a=blob;f=README;hb=8d8a8cd35137ff0fa11b6be455fdd596a8d7d2e9#l106

@openwrt-bot
Copy link
Author

brianjmurrell:

That doesn't seem to be working here:

config dhcp 'lan'
option interface 'lan'
option dhcpv6 'disabled'
option ra 'server'
option ra_management '0'
#list dns 'fd31:aeb1:48df::2'
list domain 'example.com'
option prefix_filter 'fc00:0:0:0:0:0:0:0/7'
option ra_preference 'high'
option ra_default '1'
option dns_service 0

config dhcp 'lan1'
option interface 'lan1'
option dhcpv6 'disabled'
option ra 'server'
option ra_management '0'
#list dns 'fd31:aeb1:48df::2'
list domain 'example.com'
option prefix_filter '2001:abc:de:123::/64'
option ra_preference 'medium'
option dns_service 0

Still getting:
Recursive DNS server : fd31:aeb1:48df::1

from rdisc6.

@openwrt-bot
Copy link
Author

dedeckeh:

Which release are you using to test this ?
This feature is only available from release 21.02 onwards

@openwrt-bot
Copy link
Author

brianjmurrell:

Which release are you using to test this ?

In the description:

//- Software versions of OpenWrt/LEDE release, packages, etc.
19.07.7//

This feature is only available from release 21.02 onwards

No chance of a backport? Is it too invasive?

So, is 21 the release after 20, which is not even a release yet?

@openwrt-bot
Copy link
Author

dedeckeh:

Only bugfixes are backported to stable releases; not features

The 21 release is the release currently being prepared

@openwrt-bot
Copy link
Author

brianjmurrell:

Could I argue that odhcpd advertising itself as a DNS resolver, when it's not, and no ability to disable that is a bug, as it's causing lookup failures on the entire LAN it's servicing? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant