DNSMASQ exit error code 2

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
Sailordude99
DD-WRT Novice


Joined: 24 Jul 2019
Posts: 10
Location: California

PostPosted: Sat Aug 24, 2019 21:34    Post subject: DNSMASQ exit error code 2 Reply with quote
Hello

Setting up DNSMASQ on my R8500
Firmware: DD-WRT v3.0-r40750 std (08/23/19)

I used telnet to check status of DNSMASQ, getting an exit error code 2.


root@hubby:~# cat /tmp/dnsmasq.conf
interface=br0
resolv-file=/tmp/resolv.dnsmasq
strict-order
domain=hubby.net
leasefile-ro
dhcp-script=/etc/lease_update.sh
dhcp-lease-max=50
dhcp-option=br0,3,192.168.1.1
dhcp-authoritative
dhcp-range=br0,192.168.1.100,192.168.1.149,255.255.255.0,1440m
bogus-priv
conf-file=/etc/rfc6761.conf
proxy-dnssec
dhcp-rapid-commit
stop-dns-rebind
dhcp-option=252,"\n"
cache-size=1500
root@hubby:~# /bin/ps | grep [d]nsmasq
21035 root dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf
21037 root dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf
root@hubby:~# dnsmasq -t --conf-file=/tmp/dnsmasq
root@hubby:~# echo $?
2
root@hubby:~# 1
-sh: 1: not found
root@hubby:~# root@hubby:~# cat /tmp/dnsmasq.conf
-sh: root@hubby:~#: not found
root@hubby:~# interface=br0
root@hubby:~# resolv-file=/tmp/resolv.dnsmasq
dhcp-rapid-commit
stop-dns-rebind
dhcp-option=252,"\n"
cache-size=1500
root@hubby:~# /bin/ps | grep [d]nsmasq
21035 root dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf
-sh: resolv-file=/tmp/resolv.dnsmasq: not found
21037 root dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf
root@hubby:~# dnsmasq -t --conf-file=/tmp/dnsmasq
root@hubby:~# echo $?
2
root@hubby:~# 1
root@hubby:~# strict-order
-sh: strict-order: not found
root@hubby:~# domain=hubby.net
root@hubby:~# leasefile-ro
-sh: leasefile-ro: not found
root@hubby:~# dhcp-script=/etc/lease_update.sh
-sh: dhcp-script=/etc/lease_update.sh: not found
root@hubby:~# dhcp-lease-max=50
-sh: dhcp-lease-max=50: not found
root@hubby:~# dhcp-option=br0,3,192.168.1.1
-sh: dhcp-option=br0,3,192.168.1.1: not found
root@hubby:~# dhcp-authoritative
-sh: dhcp-authoritative: not found
root@hubby:~# dhcp-range=br0,192.168.1.100,192.168.1.149,255.255.255.0,1440m
-sh: dhcp-range=br0,192.168.1.100,192.168.1.149,255.255.255.0,1440m: not found
root@hubby:~# bogus-priv
-sh: bogus-priv: not found
root@hubby:~# conf-file=/etc/rfc6761.conf
-sh: conf-file=/etc/rfc6761.conf: not found
root@hubby:~# proxy-dnssec
-sh: proxy-dnssec: not found
root@hubby:~# dhcp-rapid-commit
-sh: dhcp-rapid-commit: not found
root@hubby:~# stop-dns-rebind
-sh: stop-dns-rebind: not found
root@hubby:~# dhcp-option=252,"\n"
-sh: dhcp-option=252,\n: not found
root@hubby:~# cache-size=1500
-sh: cache-size=1500: not found
root@hubby:~# root@hubby:~# /bin/ps | grep [d]nsmasq
-sh: root@hubby:~#: not found
root@hubby:~# 21035 root dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.co
nf
-sh: 21035: not found
root@hubby:~# 21037 root dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.co
nf
-sh: 21037: not found
root@hubby:~# root@hubby:~# dnsmasq -t --conf-file=/tmp/dnsmasq
-sh: root@hubby:~#: not found
root@hubby:~# root@hubby:~# echo $?
-sh: root@hubby:~#: not found
root@hubby:~# 2
-sh: 2: not found
root@hubby:~# root@hubby:~# 1
-sh: root@hubby:~#: not found


Request assistance from the esteemed community.

V/R
Sailordude

_________________
R8500 v3.0-r39960M kongac (06/08/19)
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6056
Location: Romerike, Norway

PostPosted: Sun Aug 25, 2019 8:01    Post subject: Reply with quote
http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html#lbAI
Sailordude99
DD-WRT Novice


Joined: 24 Jul 2019
Posts: 10
Location: California

PostPosted: Sun Aug 25, 2019 8:12    Post subject: Reply with quote
Thank you, was looking for that reference. Problem solved Smile
_________________
R8500 v3.0-r39960M kongac (06/08/19)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum