모든 옵션

Add A, AAAA, and PTR records for this router only on DHCP served LAN. enhanced function available on Trunk with option add_local_fqdn

add_local_fqdn

integer

1

Add A, AAAA, and PTR records for this router only on DHCP served LAN. 0 - Disable. 1 - Hostname on Primary Address. 2 - Hostname on All Addresses. 3 - FDQN on All Addresses. 4 - iface.host.domain on All Addresses. add_local_fqdn on Trunk but not 17.01.0

add_wan_fqdn

integer

0

Labels WAN interfaces like add_local_fqdn instead of your ISP assigned default which may be obscure. WAN is inferred from config dhcp sections with option ignore 1 set, so they do not need to be named WANadd_wan_fqdn on Trunk but not 17.01.0

addnhosts

list of file paths

(none)

-H

Additional host files to read for serving DNS responses

authoritative

boolean

1

-K

Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network

Check the zones of unsigned replies to ensure that unsigned replies are allowed in those zones. This protects against an attacker forging unsigned replies for signed DNS zones, but is slower and requires that the nameservers upstream of dnsmasq are DNSSEC-capable. Requires the dnsmasq-full package. Caution: If you use this option on a device that doesn't have a hardware clock, dns resolution may break after a reboot of the device due to an incorrect system time.

ednspacket_max

integer

1280

-P

Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder

enable_tftp

boolean

0

--enable-tftp

Enable the builtin TFTP server

expandhosts

boolean

1

-E

Add the local domain part to names found in /etc/hosts

filterwin2k

boolean

0

-f

Do not forward requests that cannot be answered by public name servers

fqdn

boolean

0

--dhcp-fqdn

Do not resolve unqualifed local hostnames. Needs domain to be set.

interface

list of interface names

(all interfaces)

-i

List of interfaces to listen on. If unspecified, dnsmasq will listen to all interfaces except those listed in notinterface. Note that dnsmasq listens on loopback by default.

leasefile

file path

(none)

-l (ell)

Store DHCP leases in this file

local

string

(none)

-S

Look up DNS entries for this domain from /etc/hosts. This follows the same syntax as server entries, see the man page.

localise_queries

boolean

0

-y

Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in /etc/hosts. Note well the spelling of this option.

localservice

boolean

1

--local-service

Accept DNS queries only from hosts whose address is on a local subnet, ie a subnet for which an interface exists on the server.

logqueries

boolean

0

-q

Log the results of DNS queries, dump cache on SIGUSR1

nodaemon

boolean

0

-d

Don't daemonize the dnsmasq process

nohosts

boolean

0

-h

Don't read DNS names from /etc/hosts

nonegcache

boolean

0

-N

Disable caching of negative “no such domain” responses

noresolv

boolean

0

-R

Don't read upstream servers from /etc/resolv.conf

notinterface

list of interface names

(none)

-I (eye)

Interfaces dnsmasq should not listen on.

nonwildcard

boolean

0

-z

Bind only configured interface addresses, instead of the wildcard address.

port

port number

53

-p

Listening port for DNS queries, disables DNS server functionality if set to 0