<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=823360417-02012009><FONT face=Arial
size=2>Hi.</FONT></SPAN></DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial size=2>I had what I thought
was a clever idea to get dnsmasq to re-read it's whole dnsmasq.conf file when it
received a SIGHUP signal. I invoked dnsmasq with the following command
line options:</FONT></SPAN></DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial size=2>
-i eth0 --conf-file=/etc/dnsmasq.once.conf</FONT></SPAN></DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial size=2></FONT></SPAN><SPAN
class=823360417-02012009><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial size=2>The
dnsmasq.once.conf file was basically empty except for the single
line</FONT></SPAN></DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial size=2>
dhcp-optsfile=/etc/dnsmasq.conf</FONT></SPAN></DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial size=2>My hope was that
this would cause the dnsmasq.conf file to be read at startup but this doesn't
appear to be the case. Nor does it appear to be read when a SIGHUP is sent
to dnsmasq. So, I tried a variation. I added</FONT></SPAN></DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial size=2>
conf-file=/etc/dnsmasq.conf</FONT></SPAN></DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial size=2>to the
dnsmasq.once.conf file. However, this created its own problems.
Whenever dnsmasq was restarted, I started getting error messages of the
form</FONT></SPAN></DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial size=2>
bad dhcp-option at line xx of /etc/dnsmasq.conf</FONT></SPAN></DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823360417-02012009><FONT face=Arial size=2>So, my question is,
is what I'm trying to do a *bad* idea or am I just doing it wrong?<BR><BR>-
John</FONT></SPAN></DIV></BODY></HTML>