diff options
author | Silvino Silva <silvino@bk.ru> | 2018-02-23 13:43:57 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2018-02-23 13:43:57 +0000 |
commit | 67bfaba4f9bb92031d6d174de1f8fcae6a37340d (patch) | |
tree | 1e4253d554f6dbbabcd8ffd28ca6f09dbfaf8457 /tools | |
parent | 746c2f76a305d4251f58f3327f8147f60a1be38f (diff) | |
download | doc-67bfaba4f9bb92031d6d174de1f8fcae6a37340d.tar.gz |
dnsmasq conf with different net
Diffstat (limited to 'tools')
-rw-r--r-- | tools/conf/etc/dnsmasq.conf | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/tools/conf/etc/dnsmasq.conf b/tools/conf/etc/dnsmasq.conf index f8f7201..b8da62e 100644 --- a/tools/conf/etc/dnsmasq.conf +++ b/tools/conf/etc/dnsmasq.conf @@ -33,7 +33,7 @@ proxy-dnssec # record somewhere between the root and the domain does not exist. # The cost of setting this is that even queries in unsigned domains will need # one or more extra DNS queries to verify. -#dnssec-check-unsigned +dnssec-check-unsigned # Uncomment this to filter useless windows-originated DNS requests # which can trigger dial-on-demand links needlessly. @@ -52,7 +52,7 @@ proxy-dnssec # to be up. Uncommenting this forces dnsmasq to try each query # with each server strictly in the order they appear in # /etc/resolv.conf -#strict-order +strict-order # If you don't want dnsmasq to read /etc/resolv.conf or any other # file, getting its servers from this file instead (see below), then @@ -66,8 +66,10 @@ no-poll # Add other name servers here, with domain specs if they are for # non-public domains. #server=/localnet/192.168.0.1 -server=127.0.0.1#40 +#server=127.0.0.1#40 #server=213.73.91.35 +#server=37.235.1.174 +server=84.200.69.80 # Example of routing PTR queries to nameservers: this will send all # address->name queries for 192.168.3/24 to nameserver 10.1.2.3 @@ -75,7 +77,7 @@ server=127.0.0.1#40 # Add local-only domains here, queries in these domains are answered # from /etc/hosts or DHCP only. -local=/core/ +local=/c9/ # Add domains which you want to force to an IP address here. # The example below send any host in double-click.net to a local @@ -102,22 +104,27 @@ local=/core/ # than the default, edit the following lines. #user=nobody #group=nobody - +# NOT READY FOR PRODUCTION +user=root +group=root # If you want dnsmasq to listen for DHCP and DNS requests only on # specified interfaces (and the loopback) give the name of the # interface (eg eth0) here. # Repeat the line for more than one interface. interface=lo interface=br0 +#interface=wlp7s0 # Or you can specify which interface _not_ to listen on -except-interface=wlp7s0 -except-interface=enp8s0 +#except-interface=wlp7s0 +#except-interface=enp8s0 # Or which to listen on by address (remember to include 127.0.0.1 if # you use this.) -listen-address=127.0.0.1 -#listen-address=10.0.0.1 +#listen-address=127.0.0.1 +#listen-address=10.0.0.254 +#listen-address=192.168.1.33 + # If you want dnsmasq to provide only DNS service on an interface, # configure it as shown above, and then use the following line to # disable DHCP and TFTP on it. @@ -132,7 +139,7 @@ no-dhcp-interface=lo # want dnsmasq to really bind only the interfaces it is listening on, # uncomment this option. About the only time you may need this is when # running another nameserver on the same machine. -bind-interfaces +#bind-interfaces # If you don't want dnsmasq to read /etc/hosts, uncomment the # following line. @@ -153,7 +160,8 @@ expand-hosts # 2) Sets the "domain" DHCP option thereby potentially setting the # domain of all systems configured by DHCP # 3) Provides the domain part for "expand-hosts" -domain=core +domain=c9,10.0.0.0/8 +dhcp-option=15,c9 # Set a different domain for a particular subnet #domain=wireless.thekelleys.org.uk,192.168.2.0/24 @@ -167,7 +175,7 @@ domain=core # repeat this for each network on which you want to supply DHCP # service. #dhcp-range=192.168.0.50,192.168.0.150,12h -dhcp-range=br0,10.0.0.5,10.0.0.50,2h +dhcp-range=10.0.0.100,10.0.0.200,255.0.0.0,2h # This is an example of a DHCP range where the netmask is given. This # is needed for networks we reach the dnsmasq DHCP server via a relay @@ -239,7 +247,11 @@ dhcp-range=br0,10.0.0.5,10.0.0.50,2h # Always allocate the host with Ethernet address 11:22:33:44:55:66 # The IP address 192.168.0.60 #dhcp-host=11:22:33:44:55:66,192.168.0.60 +#dhcp-host=54:60:BE:EF:5C:72,10.0.0.2 +dhcp-host=50:67:f0:a1:bc:ab,cr1,10.0.0.1,infinite +dhcp-host=00:14:BF:6E:61:21,cr2,10.0.0.2,infinite +dhcp-host=54:60:BE:EF:5C:64,c14,10.0.0.4,infinite # Always set the name of the host with hardware address # 11:22:33:44:55:66 to be "fred" #dhcp-host=11:22:33:44:55:66,fred @@ -339,9 +351,12 @@ dhcp-range=br0,10.0.0.5,10.0.0.50,2h # are some options which are recommended, they are detailed at the # end of this section. +dhcp-option=1,255.0.0.0 + # Override the default route supplied by dnsmasq, which assumes the # router is the same machine as the one running dnsmasq. -#dhcp-option=3,1.2.3.4 +#dhcp-option=3,10.0.0.1 +dhcp-option=3,10.0.0.1 # Do the same thing, but using the option name #dhcp-option=option:router,1.2.3.4 @@ -352,6 +367,9 @@ dhcp-range=br0,10.0.0.5,10.0.0.50,2h # for all other option numbers. #dhcp-option=3 +# DNS +dhcp-option=6,10.0.0.254,10.0.0.254 + # Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5 #dhcp-option=option:ntp-server,192.168.0.4,10.10.0.5 @@ -416,6 +434,7 @@ dhcp-range=br0,10.0.0.5,10.0.0.50,2h # Send RFC-3442 classless static routes (note the netmask encoding) #dhcp-option=121,192.168.1.0/24,1.2.3.4,10.0.0.0/8,5.6.7.8 +dhcp-option=33,10.0.0.1 # Send vendor-class specific options encapsulated in DHCP option 43. # The meaning of the options is defined by the vendor-class so @@ -567,7 +586,7 @@ dhcp-range=br0,10.0.0.5,10.0.0.50,2h #dhcp-script=/bin/echo # Set the cachesize here. -cache-size=30000 +cache-size=60000 # If you want to disable negative caching, uncomment this. no-negcache @@ -666,7 +685,7 @@ local-ttl=60 log-queries # Log lots of extra information about DHCP transactions. -#log-dhcp +log-dhcp # Include another lot of configuration options. #conf-file=/etc/dnsmasq.more.conf |