OpenMediaVault-Plugin-Developers / openmediavault-dnsmasq

OpenMediaVault plugin for Dnsmasq
1 stars 4 forks source link

Adding a 2. static hosts messing up dnsmasq-hosts OMV 3.0 #4

Open muisyle opened 8 years ago

muisyle commented 8 years ago

In OMV 3 when I add a second static host in the webgui it is writing the host in the same line like the first one in dnsmasq-hosts.

nas 192.168.2.10mail 192.168.2.11

should be

nas 192.168.2.10 mail 192.168.2.11

If I change this in nano both static hosts work but it is changing it back sometimes to one line.

ryecoaaron commented 8 years ago

Try 3.0.1 in the repo now.

ScotchTape commented 8 years ago

This also still happens on dnsmasq-dhcphosts: b8:27:eb:92:8a:87,192.168.178.252b8:27:eb:6c:51:d1,192.168.178.242b8:27:eb:89:9c:d6,192.168.178.22000:17:88:21:c6:30,192.168.178.212ac:cf:23:28:47:72,192.168.178.211ec:e5:12:00:62:17,192.168.178.21004:20:9a:ad:42:10,192.168.178.2200:0b:82:73:60:02,192.168.178.25000:19:7d:14:e8:0c,192.168.178.167c:e9:d3:52:29:05,192.168.178.2158:1f:aa:e5:53:0e,192.168.178.25100:04:20:e8:51:c2,192.168.178.12900:15:17:31:ec:14,192.168.178.3268:05:ca:24:ed:53,192.168.178.12c0:3f:d5:64:b5:34,192.168.178.1400:09:b0:9e:54:e9,192.168.178.20f0:27:2d:2f:9e:ed,192.168.178.15f0:f6:1c:b7:ed:a4,192.168.178.4d8:bb:2c:c5:e9:50,192.168.178.3bc:5f:f4:7b:d7:9b,192.168.178.1

ryecoaaron commented 8 years ago

Try 3.0.3 in repo now.

ScotchTape commented 8 years ago

OK, 3.0.3 fixed it BUT, when I try to edit an entry, like changing the MAC and save it, I'' be greeted by this: `Error #3002: exception 'OMVException' with message 'Failed to set configuration' in /usr/share/openmediavault/engined/rpc/dnsmasq.inc:538 Stack trace:

0 [internal function]: OMVRpcServiceDnsmasq->setEntry(Array, Array)

1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)

2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('setEntry', Array, Array)

3 /usr/sbin/omv-engined(500): OMVRpc::exec('Dnsmasq', 'setEntry', Array, Array, 1)

4 {main}`