View Single Post
Posts: 175 | Thanked: 210 times | Joined on Mar 2013
#8
Originally Posted by Halftux View Post
When dnsmasq for example runs as dns server you have more than one pid.
Really? I have never seen more than one instance of dnsmasq on my N900... or are you referring to dnsmasq as dns server and not dns forwarder (is it even possible).
I start to think that I have another Maemo version than you and sicelo, as you say you have more than one instance of dnsmasq and he says he has already seen a /var/run/resolv.conf file where I never had.

Code:
~ $ ps -ef | grep dnsmasq
 9289 nobody    2160 S    /usr/sbin/dnsmasq -k -i lo -a 127.0.0.1 -z
10187 user      2864 S    grep dnsmasq
~ $
Originally Posted by Halftux View Post
In genwall I restarting dnsmasq with following code:

Code:
stop dnsmasq && start dnsmasq
stop dnsmasq? Just like this? I don't have any stop or start command...

Code:
~ $ stop
-sh: stop: not found
~ $ start
-sh: start: not found
~ $
Or maybe you refer to /etc/init.d/dnsmasq stop and /etc/init.d/dnsmasq start which I've already seen on the forum, but sadly I don't have any /etc/init.d/dnsmasq file.

Code:
~ $ /etc/init.d/dnsmasq stop
-sh: /etc/init.d/dnsmasq: not found
~ $ ls -l /etc/init.d/ | grep dnsmasq
~ $
The only solution I have found for now is to stop dnsmasq from my script with kill `pidof dnsmasq` and it will restart by itself (I don't know how, maybe a watchdog that looks for dnsmasq and starts it if not found) so dnsmasq reads again it's configuration and looks for the /var/run/resolv.conf.$interface files. This way DNS seems to work (will have to use it more days to really tell).