-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
dnsmasq: Add EDNS0 Upstream support #15965
dnsmasq: Add EDNS0 Upstream support #15965
Conversation
a396e35
to
f580d28
Compare
f580d28
to
44fbe28
Compare
606e8cf
to
1c2eb37
Compare
@systemcrash We had have a discussion on the previous PR, please review the new PR. Thank you. |
28ff4a9
to
127ed32
Compare
You also need to squash your commits and reword the commit to have a commit message body. You can use your PR description. |
f060d59
to
4cb6705
Compare
Thank you, I missed that. Updated again. |
4cb6705
to
55df023
Compare
config_get add_mac "$cfg" add_mac | ||
if [ "$add_mac" = "1" ]; then | ||
xappend "--add-mac" | ||
elif [ -n "$add_mac" ]; then | ||
xappend "--add-mac=$add_mac" | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about..... this?
config_get add_mac "$cfg" add_mac
[ -n "$add_mac" ] && xappend "--add-mac${add_mac:+=$add_mac}"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop add-mac, it's already supported:
openwrt/package/network/services/dnsmasq/files/dnsmasq.init
Lines 1116 to 1120 in 55df023
config_get addmac "$cfg" addmac 0 | |
[ "$addmac" != "0" ] && { | |
[ "$addmac" = "1" ] && addmac= | |
xappend "--add-mac${addmac:+="$addmac"}" | |
} |
Absolutely right. |
Interesting. As it's written |
If you're first, you get to call dibs. But following some accepted convention is generally appreciated and makes for greater consistency. |
55df023
to
a5c1c46
Compare
This PR and the Luci PR updated. |
BTW this is still not addressed, you need to add a commit message for the test to pass. |
a5c1c46
to
75c861e
Compare
Any idea what I can do to get this merged? |
Keep making noise, I guess. Seek reviews from those with commit perms also helps. |
@hauke @robimarko @jow- @Ansuel |
75c861e
to
79aafcf
Compare
@schuettecarsten I cant review this as I have no idea about dnsmasq internals |
651920d
to
c04abc2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me.
I implemented EDNS0 on my dns server recently, using the addmac
option that already exists and confdir
pointing to a file with the line add-subnet=32,128
, I thought about adding these native options in openwrt
and opening a PR, but to my surprise someone already did it, and it works correctly for me.
My repo with my automated build can be see here:
And my artifacts here:
Would this feature allow AdGuardHome and Pi-Hole to receive the IP and hostname and not have OpenWrt act as an intermediary? |
Yes, but receive IP and/or MAC, the hostname you need to set manually or have AdGuardHome/Pi-Hole ask your router |
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: Carsten Schuette <[email protected]> Link: openwrt#15965 Signed-off-by: Robert Marko <[email protected]>
c04abc2
to
57c600d
Compare
Thanks! Rebased on top of main and merged! |
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: Carsten Schuette <[email protected]> Link: openwrt#15965 Signed-off-by: Robert Marko <[email protected]>
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: Carsten Schuette <[email protected]> Link: openwrt/openwrt#15965 Signed-off-by: Robert Marko <[email protected]>
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: Carsten Schuette <[email protected]> Link: openwrt#15965 Signed-off-by: Robert Marko <[email protected]>
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: Carsten Schuette <[email protected]> Link: openwrt#15965 Signed-off-by: Robert Marko <[email protected]>
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: Carsten Schuette <[email protected]> Link: openwrt#15965 Signed-off-by: Robert Marko <[email protected]>
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: Carsten Schuette <[email protected]> Link: openwrt#15965 Signed-off-by: Robert Marko <[email protected]>
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: Carsten Schuette <[email protected]> Link: openwrt#15965 Signed-off-by: Robert Marko <[email protected]>
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: Carsten Schuette <[email protected]> Link: openwrt#15965 Signed-off-by: Robert Marko <[email protected]>
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: Carsten Schuette <[email protected]> Link: openwrt#15965 Signed-off-by: Robert Marko <[email protected]>
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt.
This replaces #14349 which is not updated by the original author.
Supported options:
addmac
- already supported and unchangedstripmac
(bool) - will add--strip_mac
addsubnet
- will add--add-subnet=<value>
stripsubnet
(bool) - will add--strip_subnet
Patch for luci is openwrt/luci#7198