With a bit of help from Michael D. Schleif I've created a package for my Dachsetein routers that puts local hostnames into dns as they're assigned leases. It's working for me, so I'm posting it in case it'll help someone else -- or in case I've done something stupid. :-)
<http://home.attbi.com/~erichouse1/leaf/dhcp2dns.lrp> Here's the readme: This package works with tinydns.lrp, dnscache.lrp and dhcpd.lrp to add the names of local hosts given leases to the local dns namespace. It should just "drop in" -- i.e. not require configuration. It contains two files. The first goes in /etc/init.d and gets run at startup. All it does is add a line to /etc/crontab that calls the second script every N minutes (default 5). The second script, called from /etc/crontab, checks whether the leases file has changed. If it has, it parses it for hostname:IPADDR pairs, and adds them in the correct format to the private dns data file. It then restarts tinydns and dnscache. Disclaimer: While I've been using and tweaking some variant of LRP for a couple of years, I'm a C/C++ programmer with little professional experience with either shell scripting or system administration. This is probably not the best way to do what I've done. But I've done it, and put it out hoping that it'll be useful to someone. If you do find it useful (or fix something), let me know. Or if the same thing's already been done better please point me at it! Thanks for the help (and for a great product)! --Eric House ****************************************************************************** * From the desktop of: Eric House, [EMAIL PROTECTED] * * Check out Safe Harbor for PalmOS: <http://www.peak.org/~fixin/harbor> * ****************************************************************************** _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
