Opened 3 years ago

Last modified 3 years ago

#17683 new defect

incorrect format of /tmp/hosts/dhcp when using dnsmasq static lease option dns

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: dnsmasq, dhcp Cc:


While testing the recently introduced /etc/config/dhcp config host with option dns, I noticed some possibly incorrect file format:


config 'host'
        option 'name' 'pc1'
        option 'mac' '11:22:33:44:55:66'
        option 'ip' ''
        option 'dns' '1'

# configure a static lease without MAC address
config 'host'
        option 'name' 'pc2'
        option 'ip' ''
        option 'dns' '1'

which results in

root@OpenWrt:/etc/config# cat /tmp/etc/dnsmasq.conf
# auto-generated config file from /etc/config/dhcp



root@OpenWrt:/etc/config# cat /tmp/hosts/dhcp
# auto-generated config file from /etc/config/dhcp pc1.lan .lan

Shouldn't the last line in /tmp/hosts/dhcp look like pc2.lan


Attachments (0)

Change History (2)

comment:2 Changed 3 years ago by anonymous

Please close this ticket, patches have been applied.

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.