#17683: incorrect format of /tmp/hosts/dhcp when using dnsmasq static lease
option
dns
---------------------------+-----------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Barrier Breaker 14.07
Component: packages | Version: Trunk
Keywords: dnsmasq, dhcp |
---------------------------+-----------------------------------
While testing the recently introduced /etc/config/dhcp config host with
option dns, I noticed some possibly incorrect file format:
/etc/config/dhcp
{{{
...
config 'host'
option 'name' 'pc1'
option 'mac' '11:22:33:44:55:66'
option 'ip' '192.168.100.55'
option 'dns' '1'
# configure a static lease without MAC address
config 'host'
option 'name' 'pc2'
option 'ip' '192.168.100.56'
option 'dns' '1'
}}}
which results in
{{{
root@OpenWrt:/etc/config# cat /tmp/etc/dnsmasq.conf
# auto-generated config file from /etc/config/dhcp
...
dhcp-host=11:22:33:44:55:66,192.168.100.55,pc1
dhcp-host=pc2,192.168.100.56
}}}
and
{{{
root@OpenWrt:/etc/config# cat /tmp/hosts/dhcp
# auto-generated config file from /etc/config/dhcp
192.168.100.55 pc1.lan
192.168.100.56 .lan
}}}
Shouldn't the last line in /tmp/hosts/dhcp look like
192.168.100.56 pc2.lan
?
--
Ticket URL: <https://dev.openwrt.org/ticket/17683>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets