tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dhcpsd released, a RFC2131 DHCP server (was Re: ISC's EoL dhcp suite, including dhcpd)



 ---- On Sun, 02 Nov 2025 19:04:45 +0000  Brook Milligan <brook%biology.nmsu.edu@localhost> wrote --- 
 > 
 > > On Nov 2, 2025, at 01:38, Roy Marples <roy%marples.name@localhost> wrote:
 > > 
 > > So here it is - dhcpsd is released and is available in pkgsrc-current.
 > > 
 > > This is a DHCP server, driven by plugins rather than a specific
 > > configuration.
 > 
 > I notice the following in the static IP address mapping section of the docs:
 > 
 >     first sucess wins
 > 
 > Does this mean that there is an ambiguity regarding which of multiple sources might provide the information?  Is there a race?  Is there a fixed order of searching?
 > 
 > Unless this is widely obvious (always possible), perhaps some clarity is needed.

dhcpsd -p ethers -p addrinfo -p lua

This means ethers will be consulted first.
If that provids an ip address it wins. If that provides a hostname it is stored for the next plugin to use.
addrinfo will then use the hostname from a prior plugin if found, or the hostname presented by the client to lookup the ip address. If found that wins.
Lastly, lua is consulted for a an ip address and it has all the data from the prior plugins and DHCP message to interogate.

Lets now put lua first

dhcpsd -p lua -p ethers -p addrinfo

If lua returns an ip address then that is used, otherwise ethers and then addrinfo is used.

Does that now make sense?

Now why you would want to use lua and ethers at the same time I really don't know, but I thought it was worth documenting the rules around which plugin gets to pick the ip address.

If you can wordsmith the documentation any better, patches welcome :)

Roy


Home | Main Index | Thread Index | Old Index