Modify

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:

Description

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

?

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

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.