Git Product home page Git Product logo

dnsmasq-qpkg's People

Contributors

erichiller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dnsmasq-qpkg's Issues

Configuration Invalid / Start Failure

Hello Eric,

As always appreciate your effort!

When trying to change the DNS settings to my network default (see image), I receive a configuration invalid.

image

The log remains empty.

System Notes:
Qnap TS-219PII (ARMv5e)
Firmware: 4.2.0 (20160119)
Installer: dnsmasq_0.1f_arm-x19.qpkg

As an aside, with default settings (default .10 network), start fails and no log entry.
No sign of dnsmasq in the process list. I'm creating a separate issue item, but just in case it's related . . .

Installation issue on TS-109Pro

The package is not installing correctly on a TS-109Pro:

  • "/sbin/notice_log_tool" does not exist on the TS-109Pro
  • "/usr/bin/openssl" is not present in the TS-109Pro
  • qpkg does not check if dnsmasq is already installed on optware.
  • web interface gives: Fatal error: Can't use function return value in write context in /share/HDA_DATA/.qpkg/dnsmasq/web/index.php on line 95

Install log:
./dnsmasq_0.1f_arm-x09.qpkg
Install QNAP package on TS-NAS...
91+1 records in
91+1 records out
./
./package_routines
./qinstall.sh
./md5sum
./qpkg.cfg
8+1 records in
8+1 records out
200+1 records in
200+1 records out
Link service start/stop script: dnsmasq.sh
Set QPKG information in /etc/config/qpkg.conf
Generating public/private rsa key pair.
Your identification has been saved in /share/HDA_DATA/.qpkg/dnsmasq/id_rsa.
Your public key has been saved in /share/HDA_DATA/.qpkg/dnsmasq/id_rsa.pub.
The key fingerprint is:
98:22:c4:7f:76:e9:7f:00:04:3c:44:9f:d4:84:2a:f4 dnsmasq_webui_command_login
package_routines: line 158: /usr/bin/openssl: No such file or directory
chmod: /share/HDA_DATA/.qpkg/dnsmasq/dnsmasq/id_rsa_npw: Not a directory
/etc/init.d/dnsmasq.sh: line 20: /sbin/notice_log_tool: No such file or directory
Starting dnsmasq
/etc/init.d/dnsmasq.sh: line 20: /sbin/notice_log_tool: No such file or directory
/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq -k -C /share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.conf --dhcp-hostsfile=/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq_dhcphosts.conf --addn-hosts=/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq_hostmap.conf --dhcp-leasefile=/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.leases --pid-file=/var/run/dnsmasq.pid --log-facility=/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.log
/etc/init.d/dnsmasq.sh: line 20: /sbin/notice_log_tool: No such file or directory
dnsmasq [30801] is now running.
[App Center] dnsmasq 0.1f installation succeeded.
[App Center] dnsmasq enabled.

App restart:
/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.sh restart
/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.sh: line 20: /sbin/notice_log_tool: No such file or directory
PIDFILE NOT FOUND AT LOCATION (/var/run/dnsmasq.pid)
/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.sh: line 20: /sbin/notice_log_tool: No such file or directory
Starting dnsmasq
/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.sh: line 20: /sbin/notice_log_tool: No such file or directory
/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq -k -C /share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.conf --dhcp-hostsfile=/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq_dhcphosts.conf --addn-hosts=/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq_hostmap.conf --dhcp-leasefile=/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.leases --pid-file=/var/run/dnsmasq.pid --log-facility=/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.log
/share/HDA_DATA/.qpkg/dnsmasq/dnsmasq.sh: line 20: /sbin/notice_log_tool: No such file or directory
dnsmasq [31099] is now running.

x86 architecture

This looks fantastic. Unfortunately my QNAP is x86 based (rather than x86_64). Could you please provide a summary of the toolchain and process you used to cross compile this, so I can build it locally?

Or you build an x86 version alongside the existing x86_64, of course, but I don't want to assume you'll take on the extra work.

dnsmasq not working on QTS 4.4.3

Installation was ok, but when I start dnsmasq I get "192.168.1.3 has refused a connection.".
192.168.1.3 is the IP of my NAS.

WEB UI not working on QTS 4.2.0 / TVS 863

I have issues to get the web UI to work on my TVS 863 (AMD)
The UI shows up with the buttons replaced by simple links and the
Forms don't show up or work at all.

Looks like the php script or the js isn't working correctly.
Can it be there must be something changed in the Webserver settings?

Conflict with Container services

QNAP Container servers seems to be running a dnsmasq of its own that I havent figured out how to disable or redirect. Turning off Container server fixes the issue.
Otherwise I get
[/share/CACHEDEV1_DATA/.qpkg/dnsmasq] # /share/CACHEDEV1_DATA/.qpkg/dnsmasq/dnsmasq -k -i bond0 -C /share/CACHEDEV1_DATA/.qpkg/dnsmasq/dnsmasq.conf --dhcp-leasefile=/share/CACHEDEV1_DATA/.qpkg/dnsmasq/dnsmasq.leases --addn-hosts=/share/CACHEDEV1_DATA/.qpkg/dnsmasq/dnsmasq_hostmap.conf --dhcp-hostsfile=/share/CACHEDEV1_DATA/.qpkg/dnsmasq/dnsmasq_dhcphosts.conf --pid-file=/var/run/dnsmasq.pid --log-facility=/share/CACHEDEV1_DATA/.qpkg/dnsmasq/dnsmasq.log -

dnsmasq: failed to bind DHCP server socket: Address already in use

I tried adding options to the startup like
--no-dhcp-interface=eth0, --no-dhcp-interface=* etc no good.

Is DHCP required for DNS use only ? I couldnt find anything obvious on the dnsmasq web page.
My router is doing DHCP just fine but not DNS ...

Server will not stop/start, not all interfaces populating

image

After configuration, and the save (which automatically tries to start it and says failure) I check the admin page to see it says running.
The pid file exists, because dnsmasq IS running but the interface is not stopping it, starting it, etc.

The log file doesn't give me any information other than a comment that the start/stop/restart was issued.

image

And I know I'm not the "normal" configuration for a qnap device, but there exists and option to bond the ethernet ports on the pro units and other units with dual ethernet, which results in the ethernet device BOND0, which isn't populating in the drop down. Fixed this on my branch.

This is after a clean install.

Additionally, the server does not start itself on reboot, I'm not sure if I can just add the word start to the dnsmasq.sh in the qpkg.conf, but for now I just added an autorun.sh entry to my qpkg.conf since I don't want to reboot too many times at the moment.

Looking for QPKG for TS-231

Hi,

I am trying to install this package on a TS-231, which has a Freescale™ ARM®v7 Cortex®-A9 dual-core 1.2GHz processor (from the datasheet), but none of the provided WPKGs is accepted by the QNAP OS 4.2.1. I always get a message like "Wrong architecture: dnsmasq 0.1f is built for arm-x19" in the system log. The message is the same for all packages (I know, the x86 packages won't run, but I gave them i try), except the architecture.
Any ideas why this is not working?

Thanks
yoyobo

ARM?

What do we need to do, to get this working on ARM based QNAPs as well?

Web GUI Configuration issue

Hi, first, thanks very much for putting the time into cobbling this together, I was on my way to setup dnsmasq via entware on my 670Pro (i3, x64) so I would have a replacement DHCP service that offered static leases since my cable company replacement my modem with one that doesn't have the capability (I didn't want to add another NAT device to the mix just for one feature)

I went through the setup stages, and I need to know do I have to disable entware for this to function correctly? Or a reboot needed before configuring it? The problem I'm encountering is that it's not saving any of the entered information once you close and reopen the dashboard icon. Also, after entering one static lease, there are no more rows to enter any more and I've tried every key combination I can think of to force another row, but no luck.
image

Is there a step that I'm missing or is something conflicting?

Qnap TS-219PII (ARMv5e) Process Fails to Start

System Notes:
Qnap TS-219PII (ARMv5e)
Firmware: 4.2.0 (20160119)

Installer: dnsmasq_0.1f_arm-x19.qpkg

Hi Eric,

Manual attempts to start the process fail. Nothing in the utility's logs.
Tried rebooting the NAS, and see in the logs that dnsmasq starts but its not in the process list.

There are a few interesting entries in the system (QTS) logs - please see #533 - Missing PID file.

CSV (added TXT extension to bypass GitHub Upload restrictions):
system-log.csv.txt

Logs + Process List:
image

*Configuration Notes: *
Using default configuration (previous attempts to update subnet failed per Issue #11)

As always, if there is anything that I can do to assist with debugging/compiling/etc. please let me know.

Looking for dnsmasq (qpkg) version that work with QTS 4.3.3

Hi, i have one QNap TS-212 (arm-x19) with QTS 4.3.3 running on it.
The dnsmasq doesn't work with this version of QTS.
There is any possibility to release one compatible version of dnsmasq?
Or any tutorial showing how to install (and how to make work) the actual version on QTS 4.3.3?
Thanks in advance!

Installs, will not update any settings. TS-470Pro, v4.2.1

Installed on TS-470 Pro (v4.2.1) UI works, but nothing will update. All throw a 404 error (below), window will not close, but can close from menu bar. Looks very interesting, but just doesnt work.
Niel [email protected]

Error :

<title>404 Not Found</title>

Not Found

The requested URL /postdat.php was not found on this server.


Apache Server at 192.168.10.225 Port 8081

Hardcoded to eth0

First, AWESOME WORK, I've been looking for something like this for months.
I also need to be able to make my own dpkg and downloaded the build kits from qnap but stopped there ( too much to read).
I cant tell from the 'source' and this page how you build the .qpkg files
It would be really useful if you had notes on how you did that, then I could attempt to reproduce and submit improvements.

One TINY thing the startup script binds to eth0. I'm using a bonded link of eth0 +eth1 so I needed to change that to bond0. Having a field in the GUI for what net to bond to would be really useful.

( or see above, if I can build and test this myself I'll submit a pull request. See next issue).

dnsmasq conflicts on start on ports (suspect QNAP Samba Active Directory)

Hi, I have got dnsmasq running, but I needed to edit the config manually to get it to work.

I have my QNAP running as an Active Directory Domain Controller, which I suspect is using the DNS port so dnsmasq could not start.

I have manually configured dnsmasq to use a different port and not bind to the first nic:

interface=eth1
except-interface=lo
except-interface=eth0
port=8099

I am running a TS451 with 4.2

Issue with static hosts

Hi,

I installed dnsmasq on my TS251 running 4.2.1.
Installation went fine.

When I try to create static host entry, by adding MAC address, IP, Hostname I have the following error.

<title>404 Not Found</title>

Not Found

The requested URL /postdat.php was not found on this server.


Apache Server at 192.168.1.2 Port 8081

Deletion of the conf file,log file readability

First, I have to thank you again for the update, if you didn't notice, I did fork it, but haven't had time to really work on the ideas I was playing around with but I will make notes in my fork if you want to import any of them.

This issue though I think I need to address, unless you feel it's appropriate to add the extra boxes in the configuration page. I know the whole thing is supposed to stay as simple as possible, but for whatever reason, dnsmasq doesn't deliver the nameservers to the dhcp clients in my environment without the nameserver option being specified directly in the conf:

dhcp-option=6,8.8.8.8,8.8.4.4

This is probably due to the qnap not being the router in my network. The qnap is just another network device with subnetted access to the internet so only the qsync server is exposed.

I also use a few other flags for dhcp. So perhaps either not re-writing the entire conf when there is a config change, or adding a box for Additional Options to the config page.

I'm now using the 4.2.1 beta firmware because I needed to have an issue addressed by qnap, and they once again changed the entire webgui design, if you haven't seen it yet.
I'm unsure if your update, or if their update is the reason that dnsmasq icon doesn't show anywhere on the main menu or the desktop area, even when it's explicitly checked in the app menu.
(Complete uninstall and reinstall of the qpkg fixed this)
I'm sure the 4.2.1 will be rolled out publicly before March.

I also made some changes to the css style to alternate colors on the log file for readability. Those are in my fork.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.