<div dir="ltr">Hello Gregor!<br><br><div class="gmail_quote">2008/10/1 Gregor Kling <span dir="ltr"><<a href="mailto:gregor.kling@dvz.fh-giessen.de">gregor.kling@dvz.fh-giessen.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Dmitry,<br>
Dmitry Cherkasov schrieb:<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello everybody.<br>
<br>
I am sure this topic was discussed a lot of times, yet I didn't find<br>
satisfying information in ISC DHCP docs or internet.<br>
<br>
I'm looking for a solution to tie dhcpd with external database, e.g.<br>
MySQL. What I need is the following:<br>
<br>
1) keeping per host (and probably other) information in external DB so<br>
that dhcpd queries it when serving requests<br>
2) storing lease information in external DB<br>
<br>
Certainly, some tasks may be fulfilled with OMAPI and parsing<br>
dhcpd.leases, but it does not seem to be flexible enough.<br>
So the question is how it may be possible to implement dhcpd<br>
interaction with external SQL database?<br>
<br>
  <br>
</blockquote></div>
It may not be very helpful to you, but it does not feel very comfortable with life-asking a backend database<br>
for something ~trivial~ as dhcp/dns data.<br>
This is another layer that could wreak havoc. In case of problems you have to cope not with flat files but with a system that need to use a query language instead of a simple grep.<br>
If you want to host your data in a database there a plenty good reasons.<br>
But IMHO its always better to generate the data for dns or dhcp data from the backend and use the native format of<br>
the service.<br>
Why do you want to hold data about leases in a mysql databases. I cannot see an advantage ?<div><div></div><div class="Wj3C7c"></div></div></blockquote><div><br><br>This is not a problem in general to _provide_ configuration data for dhcpd operation. One can use omapi or generate conf file and then sighup the daemon.<br>
The problem is to _get_ data from dhcpd. Accounting is one of such examples. Integration with sophisticated management and monitoring systems is another one. Parsing dhcpd.leases may serve as a certain solution but it is far from convenient interfacing with other applications.<br>
Several dhcpd's working with a common lease db may also be an interesting application. This is practically impossible with linear text file.<br><br>As an intermediate solution there may be a possibility to execute some external programs/scripts on significant actions of dhcpd (choosing client data to deliver, installing or removing a lease, etc.) but this may have a significant impact on performance, I suppose.<br>
 <br>As you see there is another post confirming the need for the feature, also I wrote in my first letter:<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="Wj3C7c"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
P.S. I'm obviously not the first to look for such solution, there are<br>
for example <a href="http://users.accesscomm.ca/docsis_server/" target="_blank">http://users.accesscomm.ca/docsis_server/</a> ,<br>
<a href="http://www.anemon.org/wiki/" target="_blank">http://www.anemon.org/wiki/</a> .<br>
Also there are DHCP implementations when server generates accounting<br>
using some AAA protocol like RADIUS (e.g.<br>
<a href="http://www.cisco.com/en/US/docs/ios/12_2sr/12_2srb/feature/guide/ipradacc.html" target="_blank">http://www.cisco.com/en/US/docs/ios/12_2sr/12_2srb/feature/guide/ipradacc.html</a>).<br>
<br> 
 <br>
</blockquote>
</div></div></blockquote></div><br clear="all"><br>-- <br>Dmitry Cherkasov<br>
</div>