diff options
Diffstat (limited to 'tools/conf/etc/dnsmasq.conf')
-rw-r--r-- | tools/conf/etc/dnsmasq.conf | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/tools/conf/etc/dnsmasq.conf b/tools/conf/etc/dnsmasq.conf index e8bec3e..709b271 100644 --- a/tools/conf/etc/dnsmasq.conf +++ b/tools/conf/etc/dnsmasq.conf @@ -21,6 +21,9 @@ domain-needed # Never forward addresses in the non-routed address spaces. bogus-priv +# Multiple address for same domain based on interface +localise-queries + # Uncomment these to enable DNSSEC validation and caching: # (Requires dnsmasq to be built with DNSSEC option.) #conf-file=%%PREFIX%%/share/dnsmasq/trust-anchors.conf @@ -72,6 +75,7 @@ no-poll #server=84.200.69.80 #sapo server=212.55.154.174 +#server=8.8.8.8 # 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 @@ -84,7 +88,10 @@ local=/ank/ # 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 # web-server. -address=/machine.example.org/10.0.0.4 +address=/hive.gnu.systems/10.0.0.4 +#address=/hive.gnu.systems/192.168.1.5 +#host-record=hive.gnu.systems,10.0.0.4 +#host-record=hive.gnu.systems,192.168.1.67 # --address (and --server) work with IPv6 addresses too. #address=/www.thekelleys.org.uk/fe80::20d:60ff:fe36:f83 @@ -115,7 +122,7 @@ group=root # Repeat the line for more than one interface. interface=lo interface=br0 -#interface=wlp7s0 +interface=wlp7s0 # Or you can specify which interface _not_ to listen on #except-interface=wlp7s0 @@ -131,7 +138,7 @@ interface=br0 # configure it as shown above, and then use the following line to # disable DHCP and TFTP on it. no-dhcp-interface=lo -#no-dhcp-interface=wlp7s0 +no-dhcp-interface=wlp7s0 #no-dhcp-interface=enp8s0 # On systems which support it, dnsmasq binds the wildcard address, @@ -171,9 +178,9 @@ dhcp-option=15,ank # Same idea, but range rather then subnet #domain=reserved.thekelleys.org.uk,192.68.3.100,192.168.3.200 -address=/.akamai.net/127.0.0.1 +#address=/.akamai.net/127.0.0.1 address=/.firefox.com/127.0.0.1 -address=/.google.com/127.0.0.1 +#address=/.google.com/127.0.0.1 address=/.stripe.com/127.0.0.1 address=/.mozilla.com/127.0.0.1 @@ -262,6 +269,8 @@ dhcp-host=00:14:BF:6E:61:21,lan,10.0.0.2,infinite dhcp-host=54:60:be:ef:5c:54,c1,10.0.0.3,infinite dhcp-host=54:60:be:ef:5c:14,c2,10.0.0.4,infinite dhcp-host=54:60:be:ef:5c:a1,c18,10.0.0.5,infinite +dhcp-host=00:08:02:04:7f:9d,c30,10.0.0.6,infinite +dhcp-host=e0:cb:4e:99:eb:f2,c40,10.0.0.7,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 @@ -362,11 +371,13 @@ dhcp-host=54:60:be:ef:5c:a1,c18,10.0.0.5,infinite # end of this section. dhcp-option=1,255.0.0.0 +#dhcp-option=1,10.255.255.255 # Override the default route supplied by dnsmasq, which assumes the # router is the same machine as the one running dnsmasq. #dhcp-option=3,10.0.0.1 dhcp-option=3,10.0.0.1 +#dhcp-option=3,10.0.0.254 # Do the same thing, but using the option name #dhcp-option=option:router,1.2.3.4 @@ -445,6 +456,7 @@ dhcp-option=6,10.0.0.254,10.0.0.254 # 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 +#dhcp-option=33,10.0.0.254 # Send vendor-class specific options encapsulated in DHCP option 43. # The meaning of the options is defined by the vendor-class so @@ -481,7 +493,8 @@ dhcp-option=33,10.0.0.1 # this is you want to boot machines over the network and you will need # a TFTP server; either dnsmasq's built in TFTP server or an # external one. (See below for how to enable the TFTP server.) -#dhcp-boot=pxelinux.0 +dhcp-boot=pxelinux/pxelinux.0 +#dhcp-boot=efi/BOOTX64.efi # The same as above, but use custom tftp-server instead machine running dnsmasq #dhcp-boot=pxelinux,server.name,192.168.1.100 @@ -538,10 +551,11 @@ dhcp-option=33,10.0.0.1 # Enable dnsmasq's built-in TFTP server -#enable-tftp +enable-tftp # Set the root directory for files available via FTP. #tftp-root=/var/ftpd +tftp-root=/srv/tftp # Do not abort if the tftp-root is unavailable #tftp-no-fail @@ -629,9 +643,12 @@ local-ttl=60 # Return an MX record named "maildomain.com" with target # servermachine.com and preference 50 #mx-host=maildomain.com,servermachine.com,50 +#mx-host=hive.gnu.systems,c2.ank,50 +mx-host=hive.gnu.systems,10.0.0.4,50 # Set the default target for MX records created using the localmx option. #mx-target=servermachine.com +#mx-target=c2.ank # Return an MX record pointing to the mx-target for all local # machines. |