# dnsmasq
# Autogenerated from man page /usr/share/man/man8/dnsmasq.8.gz
complete -c dnsmasq -l test -d 'Read and syntax check configuration file(s)'
complete -c dnsmasq -s w -l help -d 'Display all command-line options'
complete -c dnsmasq -s h -l no-hosts -d 'Don\'t read the hostnames in /etc/hosts'
complete -c dnsmasq -s H -l addn-hosts -d 'Additional hosts file.  Read the specified file as well as /etc/hosts'
complete -c dnsmasq -l hostsdir -d 'Read all the hosts files contained in the directory'
complete -c dnsmasq -s E -l expand-hosts -d 'Add the domain to simple names (without a period) in /etc/hosts in the same w…'
complete -c dnsmasq -s T -l local-ttl -d 'When replying with information from /etc/hosts or configuration or the DHCP l…'
complete -c dnsmasq -l dhcp-ttl -d 'As for --local-ttl, but affects only replies with information from DHCP leases'
complete -c dnsmasq -l neg-ttl -d 'Negative replies from upstream servers normally contain time-to-live informat…'
complete -c dnsmasq -l max-ttl -d 'Set a maximum TTL value that will be handed out to clients'
complete -c dnsmasq -l max-cache-ttl -d 'Set a maximum TTL value for entries in the cache'
complete -c dnsmasq -l min-cache-ttl -d 'Extend short TTL values to the time given when caching them'
complete -c dnsmasq -l auth-ttl -d 'Set the TTL value returned in answers from the authoritative server'
complete -c dnsmasq -s k -l keep-in-foreground -d 'Do not go into the background at startup but otherwise run as normal'
complete -c dnsmasq -s d -l no-daemon -d 'Debug mode: don\'t fork to the background, don\'t write a pid file, don\'t chang…'
complete -c dnsmasq -s q -l log-queries -d 'Log the results of DNS queries handled by dnsmasq'
complete -c dnsmasq -s 8 -l log-facility -d 'Set the facility to which dnsmasq will send syslog entries, this defaults to …'
complete -c dnsmasq -l log-debug -d 'Enable extra logging intended for debugging rather than information'
complete -c dnsmasq -l log-async -d 'Enable asynchronous logging and optionally set the limit on the number of lin…'
complete -c dnsmasq -s x -l pid-file -d 'Specify an alternate path for dnsmasq to record its process-id in'
complete -c dnsmasq -s u -l user -d 'Specify the userid to which dnsmasq will change after startup'
complete -c dnsmasq -s g -l group -d 'Specify the group which dnsmasq will run as'
complete -c dnsmasq -s v -l version -d 'Print the version number'
complete -c dnsmasq -s p -l port -d 'Listen on <port> instead of the standard DNS port (53)'
complete -c dnsmasq -s P -l edns-packet-max -d 'Specify the largest EDNS'
complete -c dnsmasq -s Q -l query-port -d 'Send outbound DNS queries from, and listen for their replies on, the specific…'
complete -c dnsmasq -l min-port -d 'Do not use ports less than that given as source for outbound DNS queries'
complete -c dnsmasq -l max-port -d 'Use ports lower than that given as source for outbound DNS queries'
complete -c dnsmasq -s i -l interface -d 'Listen only on the specified interface(s)'
complete -c dnsmasq -s I -l except-interface -d 'Do not listen on the specified interface'
complete -c dnsmasq -l auth-server -d 'Enable DNS authoritative mode for queries arriving at an interface or address'
complete -c dnsmasq -l local-service -d 'Accept DNS queries only from hosts whose address is on a local subnet, ie a s…'
complete -c dnsmasq -s 2 -l no-dhcp-interface -d 'Do not provide DHCP or TFTP on the specified interface, but do provide DNS se…'
complete -c dnsmasq -s a -l listen-address -d 'Listen on the given IP address(es)'
complete -c dnsmasq -s z -l bind-interfaces -d 'On systems which support it, dnsmasq binds the wildcard address, even when it…'
complete -c dnsmasq -l bind-dynamic -d 'Enable a network mode which is a hybrid between   --bind-interfaces and the d…'
complete -c dnsmasq -s y -l localise-queries -d 'Return answers to DNS queries from /etc/hosts and --interface-name and --dyna…'
complete -c dnsmasq -s b -l bogus-priv -d 'Bogus private reverse lookups'
complete -c dnsmasq -s V -l alias -d 'Modify IPv4 addresses returned from upstream nameservers; old-ip is replaced …'
complete -c dnsmasq -s B -l bogus-nxdomain -d 'Transform replies which contain the specified address or subnet into "No such…'
complete -c dnsmasq -l ignore-address -d 'Ignore replies to A or AAAA queries which include the specified address or su…'
complete -c dnsmasq -s f -l filterwin2k -d 'Later versions of windows make periodic DNS requests which don\'t get sensible…'
complete -c dnsmasq -s r -l resolv-file -d 'Read the IP addresses of the upstream nameservers from <file>, instead of /et…'
complete -c dnsmasq -s R -l no-resolv -d 'Don\'t read /etc/resolv. conf'
complete -c dnsmasq -s 1 -l enable-dbus -d 'Allow dnsmasq configuration to be updated via DBus method calls'
complete -c dnsmasq -l enable-ubus -d 'Enable dnsmasq UBus interface'
complete -c dnsmasq -s o -l strict-order -d 'By default, dnsmasq will send queries to any of the upstream servers it knows…'
complete -c dnsmasq -l all-servers -d 'By default, when dnsmasq has more than one upstream server available, it will…'
complete -c dnsmasq -l dns-loop-detect -d 'Enable code to detect DNS forwarding loops; ie the situation where a query se…'
complete -c dnsmasq -l stop-dns-rebind -d 'Reject (and log) addresses from upstream nameservers which are in the private…'
complete -c dnsmasq -l rebind-localhost-ok -d 'Exempt 127. 0. 0. 0/8 and ::1 from rebinding checks'
complete -c dnsmasq -l rebind-domain-ok -d 'Do not detect and block dns-rebind on queries to these domains'
complete -c dnsmasq -s n -l no-poll -d 'Don\'t poll /etc/resolv. conf for changes'
complete -c dnsmasq -l clear-on-reload -d 'Whenever /etc/resolv'
complete -c dnsmasq -s D -l domain-needed -d 'Tells dnsmasq to never forward A or AAAA queries for plain names, without dot…'
complete -c dnsmasq -s S -l local -l server -d 'Specify IP address of upstream servers directly'
complete -c dnsmasq -l rev-server -d 'This is functionally the same as   --server,  but provides some syntactic sug…'
complete -c dnsmasq -s A -l address -d 'Specify an IP address to return for any host in the given domains'
complete -c dnsmasq -l ipset -d 'Places the resolved IP addresses of queries for one or more domains in the sp…'
complete -c dnsmasq -l connmark-allowlist-enable -d 'Enables filtering of incoming DNS queries with associated Linux connection tr…'
complete -c dnsmasq -l connmark-allowlist -d 'Configures the DNS patterns that are allowed in DNS queries associated with t…'
complete -c dnsmasq -s m -l mx-host -d 'Return an MX record named <mx name> pointing to the given hostname (if given)…'
complete -c dnsmasq -s t -l mx-target -d 'Specify the default target for the MX record returned by dnsmasq'
complete -c dnsmasq -s e -l selfmx -d 'Return an MX record pointing to itself for each local machine'
complete -c dnsmasq -s L -l localmx -d 'Return an MX record pointing to the host given by --mx-target (or the machine…'
complete -c dnsmasq -s W -l srv-host -d 'Return a SRV DNS record.  See RFC2782 for details'
complete -c dnsmasq -l host-record -d 'Add A, AAAA and PTR records to the DNS'
complete -c dnsmasq -l dynamic-host -d 'Add A, AAAA and PTR records to the DNS in the same subnet as the specified in…'
complete -c dnsmasq -s Y -l txt-record -d 'Return a TXT DNS record'
complete -c dnsmasq -l ptr-record -d 'Return a PTR DNS record'
complete -c dnsmasq -l naptr-record -d 'Return an NAPTR DNS record, as specified in RFC3403'
complete -c dnsmasq -l caa-record -d 'Return a CAA DNS record, as specified in RFC6844'
complete -c dnsmasq -l cname -d 'Return a CNAME record which indicates that <cname> is really <target>'
complete -c dnsmasq -l dns-rr -d 'Return an arbitrary DNS Resource Record'
complete -c dnsmasq -l interface-name -d 'Return DNS records associating the name with the address(es) of the given int…'
complete -c dnsmasq -l synth-domain -d 'Create artificial A/AAAA and PTR records for an address range'
complete -c dnsmasq -l dumpfile -d 'Specify the location of a pcap-format file which dnsmasq uses to dump copies …'
complete -c dnsmasq -l dumpmask -d 'Specify which types of packets should be added to the dumpfile'
complete -c dnsmasq -l add-mac -d 'Add the MAC address of the requestor to DNS queries which are forwarded upstr…'
complete -c dnsmasq -l add-cpe-id -d 'Add an arbitrary identifying string to DNS queries which are forwarded upstre…'
complete -c dnsmasq -l add-subnet -d 'Add a subnet address to the DNS queries which are forwarded upstream'
complete -c dnsmasq -l umbrella -d 'Embeds the requestor\'s IP address in DNS queries forwarded upstream'
complete -c dnsmasq -s c -l cache-size -d 'Set the size of dnsmasq\'s cache.  The default is 150 names'
complete -c dnsmasq -s N -l no-negcache -d 'Disable negative caching'
complete -c dnsmasq -s 0 -l dns-forward-max -d 'Set the maximum number of concurrent DNS queries'
complete -c dnsmasq -l dnssec -d 'Validate DNS replies and cache DNSSEC data'
complete -c dnsmasq -l trust-anchor -d 'Provide DS records to act a trust anchors for DNSSEC validation'
complete -c dnsmasq -l dnssec-check-unsigned -d 'As a default, dnsmasq checks that unsigned DNS replies are legitimate: this e…'
complete -c dnsmasq -l dnssec-no-timecheck -d 'DNSSEC signatures are only valid for specified time windows, and should be re…'
complete -c dnsmasq -l dnssec-timestamp -d 'Enables an alternative way of checking the validity of the system time for DN…'
complete -c dnsmasq -l proxy-dnssec -d 'Copy the DNSSEC Authenticated Data bit from upstream servers to downstream cl…'
complete -c dnsmasq -l dnssec-debug -d 'Set debugging mode for the DNSSEC validation, set the Checking Disabled bit o…'
complete -c dnsmasq -l auth-zone -d 'Define a DNS zone for which dnsmasq acts as authoritative server'
complete -c dnsmasq -l auth-soa -d 'Specify fields in the SOA record associated with authoritative zones'
complete -c dnsmasq -l auth-sec-servers -d 'Specify any secondary servers for a zone for which dnsmasq is authoritative'
complete -c dnsmasq -l auth-peer -d 'Specify the addresses of secondary servers which are allowed to initiate zone…'
complete -c dnsmasq -l conntrack -d 'Read the Linux connection track mark associated with incoming DNS queries and…'
complete -c dnsmasq -s F -l dhcp-range -d 'Enable the DHCP server'
complete -c dnsmasq -s G -l dhcp-host -d 'Specify per host parameters for the DHCP server'
complete -c dnsmasq -l dhcp-hostsfile -d 'Read DHCP host information from the specified file'
complete -c dnsmasq -l dhcp-optsfile -d 'Read DHCP option information from the specified file'
complete -c dnsmasq -l dhcp-hostsdir -d 'This is equivalent to --dhcp-hostsfile, except for the following'
complete -c dnsmasq -l dhcp-optsdir -d 'This is equivalent to --dhcp-optsfile, with the differences noted for --dhcp-…'
complete -c dnsmasq -s Z -l read-ethers -d 'Read /etc/ethers for information about hosts for the DHCP server'
complete -c dnsmasq -s O -l dhcp-option -d 'Specify different or extra options to DHCP clients'
complete -c dnsmasq -l dhcp-option-force -d 'This works in exactly the same way as  --dhcp-option except that the option w…'
complete -c dnsmasq -l dhcp-no-override -d '(IPv4 only) Disable re-use of the DHCP servername and filename fields as extr…'
complete -c dnsmasq -l dhcp-relay -d 'Configure dnsmasq to do DHCP relay'
complete -c dnsmasq -s U -l dhcp-vendorclass -d 'Map from a vendor-class string to a tag'
complete -c dnsmasq -s j -l dhcp-userclass -d 'Map from a user-class string to a tag (with substring matching, like vendor c…'
complete -c dnsmasq -s 4 -l dhcp-mac -d 'Map from a MAC address to a tag.  The MAC address may include wildcards'
complete -c dnsmasq -l dhcp-circuitid -l dhcp-remoteid -d 'Map from RFC3046 relay agent options to tags'
complete -c dnsmasq -l dhcp-subscrid -d '(IPv4 and IPv6) Map from RFC3993 subscriber-id relay agent options to tags'
complete -c dnsmasq -l dhcp-proxy -d '(IPv4 only) A normal DHCP relay agent is only used to forward the initial par…'
complete -c dnsmasq -l dhcp-match -d 'Without a value, set the tag if the client sends a DHCP option of the given n…'
complete -c dnsmasq -l dhcp-name-match -d 'Set the tag if the given name is supplied by a DHCP client'
complete -c dnsmasq -l tag-if -d 'Perform boolean operations on tags'
complete -c dnsmasq -s J -l dhcp-ignore -d 'When all the given tags appear in the tag set ignore the host and do not allo…'
complete -c dnsmasq -l dhcp-ignore-names -d 'When all the given tags appear in the tag set, ignore any hostname provided b…'
complete -c dnsmasq -l dhcp-generate-names -d '(IPv4 only) Generate a name for DHCP clients which do not otherwise have one,…'
complete -c dnsmasq -l dhcp-broadcast -d '(IPv4 only) When all the given tags appear in the tag set, always use broadca…'
complete -c dnsmasq -s M -l dhcp-boot -d '(IPv4 only) Set BOOTP options to be returned by the DHCP server'
complete -c dnsmasq -l dhcp-sequential-ip -d 'Dnsmasq is designed to choose IP addresses for DHCP clients using a hash of t…'
complete -c dnsmasq -l dhcp-ignore-clid -d 'Dnsmasq is reading \'client identifier\' (RFC 2131) option sent by clients (if …'
complete -c dnsmasq -l pxe-service -d 'Most uses of PXE boot-ROMS simply allow the PXE system to obtain an IP addres…'
complete -c dnsmasq -l pxe-prompt -d 'Setting this provides a prompt to be displayed after PXE boot'
complete -c dnsmasq -l dhcp-pxe-vendor -d 'According to UEFI and PXE specifications, DHCP packets between PXE clients an…'
complete -c dnsmasq -s X -l dhcp-lease-max -d 'Limits dnsmasq to the specified maximum number of DHCP leases'
complete -c dnsmasq -s K -l dhcp-authoritative -d 'Should be set when dnsmasq is definitely the only DHCP server on a network'
complete -c dnsmasq -l dhcp-rapid-commit -d 'Enable DHCPv4 Rapid Commit Option specified in RFC 4039'
complete -c dnsmasq -l dhcp-alternate-port -d '(IPv4 only) Change the ports used for DHCP from the default'
complete -c dnsmasq -s 3 -l bootp-dynamic -d '(IPv4 only) Enable dynamic allocation of IP addresses to BOOTP clients'
complete -c dnsmasq -s 5 -l no-ping -d '(IPv4 only) By default, the DHCP server will attempt to ensure that an addres…'
complete -c dnsmasq -l log-dhcp -d 'Extra logging for DHCP: log all the options sent to DHCP clients and the tags…'
complete -c dnsmasq -l quiet-dhcp -l quiet-dhcp6 -l quiet-ra -l quiet-tftp -d 'Suppress logging of the routine operation of these protocols'
complete -c dnsmasq -s l -l dhcp-leasefile -d 'Use the specified file to store DHCP lease information'
complete -c dnsmasq -l dhcp-duid -d '(IPv6 only) Specify the server persistent UID which the DHCPv6 server will use'
complete -c dnsmasq -s 6 -l dhcp-script -d 'Whenever a new DHCP lease is created, or an old one destroyed, or a TFTP file…'
complete -c dnsmasq -l dhcp-luascript -d 'Specify a script written in Lua, to be run when leases are created, destroyed…'
complete -c dnsmasq -l dhcp-scriptuser -d 'Specify the user as which to run the lease-change script or Lua script'
complete -c dnsmasq -l script-arp -d 'Enable the "arp" and "arp-old" functions in the --dhcp-script and --dhcp-luas…'
complete -c dnsmasq -s 9 -l leasefile-ro -d 'Completely suppress use of the lease database file'
complete -c dnsmasq -l script-on-renewal -d 'Call the DHCP script when the lease expiry time changes, for instance when th…'
complete -c dnsmasq -l bridge-interface -d 'Treat DHCP (v4 and v6) requests and IPv6 Router Solicit packets arriving at a…'
complete -c dnsmasq -l shared-network -d 'v The DHCP server determines which DHCP ranges are useable for allocating an …'
complete -c dnsmasq -s s -l domain -d 'Specifies DNS domains for the DHCP server'
complete -c dnsmasq -l dhcp-fqdn -d 'In the default mode, dnsmasq inserts the unqualified names of DHCP clients in…'
complete -c dnsmasq -l dhcp-client-update -d 'Normally, when giving a DHCP lease, dnsmasq sets flags in the FQDN option to …'
complete -c dnsmasq -l enable-ra -d 'Enable dnsmasq\'s IPv6 Router Advertisement feature'
complete -c dnsmasq -l ra-param -d 'Set non-default values for router advertisements sent via an interface'
complete -c dnsmasq -l dhcp-reply-delay -d 'Delays sending DHCPOFFER and PROXYDHCP replies for at least the specified num…'
complete -c dnsmasq -l enable-tftp -d 'Enable the TFTP server function'
complete -c dnsmasq -l tftp-root -d 'Look for files to transfer using TFTP relative to the given directory'
complete -c dnsmasq -l tftp-no-fail -d 'Do not abort startup if specified tftp root directories are inaccessible'
complete -c dnsmasq -l tftp-unique-root -d 'Add the IP or hardware address of the TFTP client as a path component on the …'
complete -c dnsmasq -l tftp-secure -d 'Enable TFTP secure mode: without this, any file which is readable by the dnsm…'
complete -c dnsmasq -l tftp-lowercase -d 'Convert filenames in TFTP requests to all lowercase'
complete -c dnsmasq -l tftp-max -d 'Set the maximum number of concurrent TFTP connections allowed'
complete -c dnsmasq -l tftp-mtu -d 'Use size as the ceiling of the MTU supported by the intervening network when …'
complete -c dnsmasq -l tftp-no-blocksize -d 'Stop the TFTP server from negotiating the "blocksize" option with a client'
complete -c dnsmasq -l tftp-port-range -d 'A TFTP server listens on a well-known port (69) for connection initiation, bu…'
complete -c dnsmasq -l tftp-single-port -d 'Run in a mode where the TFTP server uses ONLY the well-known port (69) for it…'
complete -c dnsmasq -s C -l conf-file -d 'Specify a configuration file'
complete -c dnsmasq -s 7 -l conf-dir -d 'Read all the files in the given directory as configuration files'
complete -c dnsmasq -l servers-file -d 'A special case of '
complete -c dnsmasq -l -dynamic-host -d 'provided the address falls into one of the subnets specified in the'

