openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
163 stars 99 forks source link

Support for DHCP options (like static routes, alternate DNS server, etc) #19

Open mikejuni opened 10 years ago

mikejuni commented 10 years ago

Hi,

I'm now using some custom dnsmasq options in OpenWRT to issue static routes, alternate default gateway and DNS servers. However these options does not exist in odhcpd.

Would be nice if these could be supported in order to completely replace the DHCP functions in dnsmasq in OpenWRT.

mehlis commented 10 years ago

I implemented the "alternative default gateway", it's called router option in the RFC alternative DNS servers as possible right now: use "dns" option :)

@mikejuni can you try/review https://github.com/mehlis/odhcpd/compare/implement-dhcp4-router-config?expand=1

I can try this with openwrt on 12th august, if new code is working I'll open a PR!

sbyx commented 10 years ago

Patch looks good to me. Feel free to make a PR and I will merge it.

mehlis commented 10 years ago

@mikejuni https://github.com/sbyx/odhcpd/pull/20 is merged, from my perspective odhcpd is a replacement for dnsmasq now

@sbyx this issue is addressed from my point of view

mikejuni commented 10 years ago

I've reviewed the relevant patches. Noted that it unfortunately still does not provide the configuration options that I've been using in DNSMASQ. I've a couple of DHCP clients (not all, only a few) that would actually be routed through an alternative router and assigned a different DNS. This means that in the configuration section "host" it should allow overriding default DNS and gateway, or better, allowing allocation of different static routes as well.

I understand that this is very complex but DNSMASQ for now works very well doing so, plus with an ipv6 enabled DNSMASQ it also allocates IPv6 address for my SIXXS tunnel as well.

mikken commented 8 years ago

This is a desired feature for me, too. What I miss:

thalamus commented 6 years ago

This feature would be very useful. Currently I'm using a few dhcp options with dnsmasq, and I would much prefer to use odhcpd wholly instead.

The options I'm currently using with dnsmasq are:

list dhcp_option '43,01:04:00:00:00:02' - disables NetBIOS list dhcp_option '252,"\n"' - stops Windows asking for proxy information list dhcp_option '15,lan' - search domain list dhcp_option '6,10.10.10.254' - dns server (because dnsmasq is in parallel with unbound)

Neustradamus commented 4 years ago

Any news on it?

serial115200 commented 4 years ago

Any news on it?

kitchung commented 2 years ago

Any news on it?