In the command line of Android, there are dnsmasq commands. But where are all the config files (dnsmasq.conf, dnsmasq.pid...)?
As far as I try is creating my own configuration files and using the following command:
dnsmasq --conf-file=the/location/of/my/file
It says:
dnsmasq: failed to open pidfile /var/run/dnsmasq.pid: No such file or directory
When I create pid file it says:
dnsmasq: failed to open pidfile dnsmasq.pid: Read-only file system
Any recommendations on how I can control my dnsmasq (DHCP, DNS server)?
Debug mode (-d
or --no-daemon
) avoids the need for the pid file by not forking, if that helps.
Update: --pid-file
with no arguments looks like a nicer way of avoiding the need for a pid file.