[Dnsmasq-discuss] Problem with dhcp-optsfile

Don Muller don at djmuller.com
Fri Feb 26 22:41:48 GMT 2010



> -----Original Message-----
> From: Simon Kelley [mailto:simon at thekelleys.org.uk]
> Sent: Friday, February 26, 2010 10:39 AM
> To: Don Muller
> Cc: dnsmasq-discuss at lists.thekelleys.org.uk
> Subject: Re: [Dnsmasq-discuss] Problem with dhcp-optsfile
> 
> Don Muller wrote:
> > I have the following dhcp options in my dnsmasq.conf file:
> >
> >
> >
> > dhcp-option=option:router,192.168.22.252                          #
> set
> > router address (3)
> >
> > dhcp-option=option:dns-server,192.168.22.244                 # set
> dns
> > server address (6)
> >
> > dhcp-option=option:domain-name,djmuller.com             # set domain
> > name (15)
> >
> > dhcp-option=option:ntp-server,192.168.22.250                 # set
> time
> > server (42)
> >
> > dhcp-option=option:netbios-ns,192.168.22.244                 # set
> > netbios-over-TCP/IP nameserver(s) aka WINS server(s) (44)
> >
> > dhcp-option=option:netbios-nodetype,8                             #
> > netbios node type (46)
> >
> >
> >
> > They work fine with no problems. I decided to move them to their own
> > file using dhcp-optsfile=. When I restarted dnsmasq I received the
> > following errors in the log file:
> >
> >
> >
> > Feb 26 10:05:19 dnsmasq[10052]: bad dhcp-option at line 3 of
> > /share/MD0_DATA/apps/config/dnsmasq/dnsmasq-dhcp-options.conf
> >
> > Feb 26 10:05:19 dnsmasq[10052]: bad dhcp-option at line 4 of
> > /share/MD0_DATA/apps/config/dnsmasq/dnsmasq-dhcp-options.conf
> >
> > Feb 26 10:05:19 dnsmasq[10052]: bad dhcp-option at line 5 of
> > /share/MD0_DATA/apps/config/dnsmasq/dnsmasq-dhcp-options.conf
> >
> > Feb 26 10:05:19 dnsmasq[10052]: bad dhcp-option at line 6 of
> > /share/MD0_DATA/apps/config/dnsmasq/dnsmasq-dhcp-options.conf
> >
> > Feb 26 10:05:19 dnsmasq[10052]: bad dhcp-option at line 7 of
> > /share/MD0_DATA/apps/config/dnsmasq/dnsmasq-dhcp-options.conf
> >
> >
> >
> > The first two lines  in the dhcp-optsfile are comments.
> >
> >
> >
> > Why do these lines work in the dnsmasq.conf file but not in the
> > dhcp-optsfile? What am I doing wrong?
> >
> >
> Remove "dhcp-option="  from the start of each line.
OK. That should probably be added to the man pages.

Does the same hold true for the dhcp-hostsfile? Should it not contain
dhcp-host=?
> 
> 
> Cheers,
> 
> Simon.

Thanks
Don




More information about the Dnsmasq-discuss mailing list