Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#9806 closed defect (worksforme)

(ar71xx, dnsmasq) configuration args are not appended.

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: dnsmasq interface config Cc:

Description

The options "interface" and "notinterface" don't seem to work (anymore) in the dnsmasq section of "/etc/config/dhcp".

When I edit /etc/init.d/dnsmasq, and hardcode the variable it works. Im not good at scripting, so i cant fix it by myself...

Attachments (1)

openwrt-dnsmasq.patch (937 bytes) - added by pharaoh <pharaoh@…> 7 years ago.

Download all attachments as: .zip

Change History (11)

Changed 7 years ago by pharaoh <pharaoh@…>

comment:1 Changed 7 years ago by pharaoh <pharaoh@…>

the attached patch openwrt-dnsmasq.patch fixes the problem.

comment:2 Changed 7 years ago by nbd

how can that patch fix the problem? I don't see how it would make any difference at all

comment:3 Changed 7 years ago by pharaoh <pharaoh@…>

geez, you're right, shouldn't change a thing, it's nonsense.
my only excuse is lack of sleep or lack of coffee or both.
sorry for the noise. from now on i post only when i'm awake.

comment:4 Changed 6 years ago by anonymous

Any update on this?

It looks like the command "config_list_foreach" doesn´t work... Is this still a valid script command?

Thank you for your time!

comment:5 Changed 6 years ago by jow

  • Resolution set to worksforme
  • Status changed from new to closed

Those options work just fine for me. Since the submitter never showed a configuration that triggers the alleged problem I assume user error and close this ticket as worksforme.

comment:6 Changed 6 years ago by anonymous

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I'd like to reopen this ticket. I've added new info below:

My /etc/config/dhcp

config 'dnsmasq'
	option 'domainneeded' '1'
	option 'boguspriv' '1'
	option 'localise_queries' '1'
	option 'rebind_protection' '1'
	option 'rebind_localhost' '0'
	list 'rebind_domain' 'louwes.info'
	option 'local' '/louwes.info/'
	option 'domain' 'louwes.info'
	option 'expandhosts' '1'
	option 'nonegcache' '0'
	option 'authoritative' '1'
	option 'readethers' '1'
	option 'leasefile' '/tmp/dhcp.leases'
	option 'resolvfile' '/tmp/resolv.conf.auto'
	option 'interface' 'lan'
	option 'nonwildcard' '1'

config 'dhcp'
	option 'interface' 'lan'
	option 'start' '100'
	option 'limit' '150'
	option 'leasetime' '12h'
	option 'ignore' '0'

config 'dhcp'
	option 'interface' 'isp1'
	option 'ignore' '1'

config 'dhcp'
	option 'interface' 'isp2'
	option 'ignore' '1'

Which results in:

root@mercurius:~# netstat -ntl | grep 53
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      
tcp        0      0 31.151.168.179:53       0.0.0.0:*               LISTEN      
tcp        0      0 82.169.207.80:53        0.0.0.0:*               LISTEN      
tcp        0      0 192.168.33.1:53         0.0.0.0:*               LISTEN      
tcp        0      0 ::1:53                  :::*                    LISTEN      
tcp        0      0 fe80::c63d:c7ff:fe86:a99:53 :::*                    LISTEN      
tcp        0      0 2001:610:64d:1::1:53    :::*                    LISTEN      
tcp        0      0 fe80::c63d:c7ff:fe86:a9a:53 :::*                    LISTEN      
tcp        0      0 2001:610:600:90f::2:53  :::*                    LISTEN      
tcp        0      0 fe80::c0a8:2101:53      :::*                    LISTEN      
tcp        0      0 fe80::52a9:cf50:53      :::*                    LISTEN      
tcp        0      0 fe80::1f97:a8b3:53      :::*                    LISTEN      

But if i add 'append args "-i br-lan"' in the section dnsmasq() in the file /etc/init.d/dhcp, then this is the result:

root@mercurius:~# netstat -ntl | grep 53
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      
tcp        0      0 192.168.33.1:53         0.0.0.0:*               LISTEN      
tcp        0      0 ::1:53                  :::*                    LISTEN      
tcp        0      0 2001:610:64d:1::1:53    :::*                    LISTEN      
tcp        0      0 fe80::c63d:c7ff:fe86:a9a:53 :::*                    LISTEN

comment:7 Changed 6 years ago by anonymous

Extra info: Running trunk r28208 on WNDR3700v2

comment:8 Changed 6 years ago by jow

  • Resolution set to worksforme
  • Status changed from reopened to closed

It must be "list interface" not "option interface".

comment:9 Changed 6 years ago by anonymous

Ah, stupid me...

That did the trick! Thank you for your time!

comment:10 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.