Skip to content

net-dnsmasq.plugin.bash¤

dnsmasq install configurations.

group:postnet | runtype:minmon | deps: - | port: LO:53

Usage
net-dnsmasq help|install|uninstall|download|disable|configgen|configapply|check|run|updateblist
$ net-dnsmasq install - install dnsmasq
$ net-dnsmasq uninstall - uninstall dnsmasq
$ net-dnsmasq download - download dnsmasq package files to pkg dir
$ net-dnsmasq disable - disable dnsmasq plugin
$ net-dnsmasq configgen - generate dnsmasq configuration files
$ net-dnsmasq configapply - apply dnsmasq configuration files
$ net-dnsmasq check - check dnsmasq plugin status
$ net-dnsmasq run - run dnsmasq service
$ net-dnsmasq updateblist - update DNS blacklist files
$ net-dnsmasq help - show this help message
Description

Dnsmasq is a lightweight DNS forwarder and DHCP server for small networks.

Jangbi Configs¤

/opt/jangbi/.config
RUN_NET_DNSMASQ=1 # enable dnsmasq
DNSMASQ_PORTS="LO:53" # ports to listen, LO - localhost, 53 - DNS port

Check if running¤

bash command
$ ss -nltup|grep dnsmasq
udp   UNCONN 0      0          127.0.0.1:53         0.0.0.0:*    users:(("dnsmasq",pid=12345,fd=5))
$ pidof dnsmasq
12345

Current Configuration¤

Current configuration is stored in /etc/dnsmasq/. it is generated by net-dnsmasq configgen command on install. You can edit it manually and not run install or configapply commands to keep current configurations.

/etc/dnsmasq/dnsmasq.conf
# JB_ROLE=gateway
domain-needed
bogus-priv
dnssec
dnssec-check-unsigned
filterwin2k
strict-order
no-resolv
no-poll
conf-file=/etc/dnsmasq/trust-anchors.conf
server=1.1.1.1
listen-address=127.0.0.1

interface=lo

bind-interfaces

no-hosts
dhcp-range=interface:lo,127.0.0.1,127.0.0.254,12h

dhcp-leasefile=/var/lib/misc/dnsmasq.leases
cache-size=1000
no-negcache
conf-dir=/etc/dnsmasq/,*.conf
local-service
dns-loop-detect
log-queries
log-dhcp