about summary refs log tree commit diff stats
path: root/tools/conf/etc/dnsmasq.conf
diff options
context:
n # 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