Re: DHCP Changes with ver 3beta2pl11

New Message Reply Date view Thread view Subject view Author view Attachment view

From: Steve Hideg (hideg@saintmarys.edu)
Date: Wed Jan 03 2001 - 20:41:07 CST


At 7:41 PM -0600 1/3/01, Nick Ciesinski wrote:
>Due to some system problems we had to re-build our DHCP server... In doing
>so we installed DHCPD version 3b2pl11. I don't know if anyone has used this
>version (or any of the beta 2 versions of 3) with netreg.. I figured I
>would let you know of the problems I experienced and how I fixed them.
>
>The first problem I had was it seems that now you can't have duplicate host
>entries (entries with the same name). The server complained about them on
>startup. I had to add a section to the register.cgi to check to make sure a
>student didn't already register another computer so it wouldn't add a 2nd
>entry into the config file and crash the server. If anyone is interested in
>the code I used I can send it along.

I thought this was the case with previous versions of the ISC DHCP
server. I got around this--and let students register multiple
machines--by checking the dhcpd.conf.new file and appending "-2",
"-3", etc. to hostnames to avoid duplicates. This way, I don't have
to care about duplicates, and multiple registrations by the same user
(new machine, new card, additional machine) don't result in emergency
dhcpd.conf editing sessions for me. My code makes sure hostnames, IP
addresses, and MAC addresses are unique in dhcpd.conf.new.

I'm willing to share this code with anyone who wants it. (I sent my
entire source code to Peter for inclusion in the contributions
section of his web site, but I don't think he ever managed to find
time to do anything with it. (maybe student slave labour would be
helpful ;-) ).

++Steve
**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************


New Message Reply Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:34 CDT