News for hackers. Stuff that matters.
Re:Dora: A open-source Rust DHCP Server by ckdarby on Wednesday December 07, 2022 @10:52AM (#33895744)
Hey, I'm from BlueCat (though my opinions are my own). Will lurk the comments if there are any questions around the project or general DHCP.
Re:Dora: A open-source Rust DHCP Server by justsomehnguy on Wednesday December 07, 2022 @10:34PM (#33903835)
A couple of notes:

If you can, add the support for CIDR style netmask (/8, /24 etc). Nothing wrong without it, but when you hop between them constantly mistakes happen.

In the example.yaml you state what option 3 is required - but it's not. It is absolutely a valid way to run some network without providing a default router.[0] If this is somehow is really a requirement anywhere than that requirement should be removed.

One of the things what I often use in MS DHCP is the server wide options, so some basic option values are configured on the server level and I add/override the needed ones on the scope level.

PS while the name is amusing, it is a possible IP conflict there, especially since you clearly state you know about Dora.

[0] And you can still provide the routign info through the option 121. Even for 0/0

Re:Dora: A open-source Rust DHCP Server by leshow on Thursday December 08, 2022 @12:23PM (#33910506)
> One of the things what I often use in MS DHCP is the server wide options

The config format was created primarily to be easy to generate & consume programmatically, so the format is fully 'flattened' with no real abstraction. But this may be something we add later. It's also why the option format is the way it is. I'm sure we could make some improvements there to make hand writing easier.

I appreciate your other suggestions, thanks for taking the time to look through things. I will have a look at both the router option and the CIDR input.

Re:Dora: A open-source Rust DHCP Server by jarym on Wednesday December 07, 2022 @10:58AM (#33895843)
Looks cool, what was the motivation for writing another DHCP server - just for learning Rust or something else?
Re:Dora: A open-source Rust DHCP Server by ckdarby on Wednesday December 07, 2022 @11:07AM (#33895978)
FYI /u/leshow is the core contributor of this project.

We've been doing Rust before this. We've rewritten some of our core components over to Rust. Discussed a bit in this post: https://medium.techatscale.com/open-heart-surgery-from-java-...

In terms of writing a DHCP server there was research looking through Github, and the conclusion was that there is a gap in the DHCP space. DHCPd was approaching EOL (and now is EOL). Others in the DHCP industry were calling for options, and it looked like Dora could potentially fill some of those asks: https://ns1.com/blog/isc-dhcp-is-eol-what-will-replace-it

Re:Dora: A open-source Rust DHCP Server by formerly_proven on Wednesday December 07, 2022 @11:26AM (#33896281)
I dunno about "another". After some issues with dnsmasq I went looking and there aren't actually a lot of open source DHCP servers. There's like dhcpd, dnsmasq and kea.

(I actually contemplated writing my own dhcp server in Rust while debugging dnsmasq but felt like it's one of those real PITA kinds of projects. Managed to workaround whatever the dnsmasq problem was after a few hours.)

Re:Dora: A open-source Rust DHCP Server by wyuenho on Wednesday December 07, 2022 @12:54PM (#33897629)
Depending on your use case CoreDNS may also be an option.
Re:Dora: A open-source Rust DHCP Server by Already__Taken on Wednesday December 07, 2022 @07:48PM (#33902619)
is there a plugin to serve DHCP I've missed?
Re:Dora: A open-source Rust DHCP Server by wyuenho on Friday December 09, 2022 @07:55AM (#33920695)
Re:Dora: A open-source Rust DHCP Server by Already__Taken on Wednesday December 07, 2022 @07:40PM (#33902544)
was currently writing a rust cli that's called by an incantation of dnsmasq --script my_bin but it's a nightmare to debug.