浏览代码

dnsmasq configuration added

master
Dirk Alders 1年前
父节点
当前提交
3f1945c1ed

+ 3
- 0
10_do_not_listen_to_internet_vlan.conf 查看文件

@@ -0,0 +1,3 @@
1
+# Or you can specify which interface _not_ to listen on
2
+except-interface=eth0.10
3
+

+ 27
- 0
20_common.conf 查看文件

@@ -0,0 +1,27 @@
1
+# Set the DHCP server to authoritative mode. In this mode it will barge in
2
+# and take over the lease for any client which broadcasts on the network,
3
+# whether it has a record of the lease or not. This avoids long timeouts
4
+# when a machine wakes up on a new network. DO NOT enable this if there's
5
+# the slightest chance that you might end up accidentally configuring a DHCP
6
+# server for your campus/company accidentally. The ISC server uses
7
+# the same option, and this URL provides more information:
8
+# http://www.isc.org/files/auth.html
9
+dhcp-authoritative
10
+
11
+# Add local-only domains here, queries in these domains are answered
12
+# from /etc/hosts or DHCP only.
13
+local=/home/
14
+
15
+# Set this (and domain: see below) if you want to have a domain
16
+# automatically added to simple names in a hosts-file.
17
+expand-hosts
18
+
19
+# Set the domain for dnsmasq. this is optional, but if it is set, it
20
+# does the following things.
21
+# 1) Allows DHCP hosts to have fully qualified domain names, as long
22
+#     as the domain part matches this setting.
23
+# 2) Sets the "domain" DHCP option thereby potentially setting the
24
+#    domain of all systems configured by DHCP
25
+# 3) Provides the domain part for "expand-hosts"
26
+domain=home
27
+

+ 10
- 0
40_dhcp_vlan20_definition.conf 查看文件

@@ -0,0 +1,10 @@
1
+# Uncomment this to enable the integrated DHCP server, you need
2
+# to supply the range of addresses available for lease and optionally
3
+# a lease time. If you have more than one network, you will need to
4
+# repeat this for each network on which you want to supply DHCP
5
+# service.
6
+dhcp-range=VLAN20,192.168.20.50,192.168.20.150,12h
7
+
8
+dhcp-option=VLAN20,option:router,192.168.20.1
9
+
10
+dhcp-option=VLAN20,option:dns-server,192.168.20.1

+ 10
- 0
40_dhcp_vlan30_definition.conf 查看文件

@@ -0,0 +1,10 @@
1
+# Uncomment this to enable the integrated DHCP server, you need
2
+# to supply the range of addresses available for lease and optionally
3
+# a lease time. If you have more than one network, you will need to
4
+# repeat this for each network on which you want to supply DHCP
5
+# service.
6
+dhcp-range=192.168.30.50,192.168.30.150,12h
7
+
8
+dhcp-option=option:router,192.168.30.1
9
+
10
+dhcp-option=option:dns-server,192.168.30.1

+ 10
- 0
40_dhcp_vlan40_definition.conf 查看文件

@@ -0,0 +1,10 @@
1
+# Uncomment this to enable the integrated DHCP server, you need
2
+# to supply the range of addresses available for lease and optionally
3
+# a lease time. If you have more than one network, you will need to
4
+# repeat this for each network on which you want to supply DHCP
5
+# service.
6
+dhcp-range=VLAN40,192.168.40.50,192.168.40.150,12h
7
+
8
+dhcp-option=VLAN40,option:router,192.168.40.1
9
+
10
+dhcp-option=VLAN40,option:dns-server,192.168.40.1

+ 10
- 0
40_dhcp_vlan50_definition.conf 查看文件

@@ -0,0 +1,10 @@
1
+# Uncomment this to enable the integrated DHCP server, you need
2
+# to supply the range of addresses available for lease and optionally
3
+# a lease time. If you have more than one network, you will need to
4
+# repeat this for each network on which you want to supply DHCP
5
+# service.
6
+dhcp-range=VLAN50,192.168.50.50,192.168.50.150,12h
7
+
8
+dhcp-option=VLAN50,option:router,192.168.50.1
9
+
10
+dhcp-option=VLAN50,option:dns-server,192.168.50.1

+ 10
- 0
40_dhcp_vlan60_definition.conf 查看文件

@@ -0,0 +1,10 @@
1
+# Uncomment this to enable the integrated DHCP server, you need
2
+# to supply the range of addresses available for lease and optionally
3
+# a lease time. If you have more than one network, you will need to
4
+# repeat this for each network on which you want to supply DHCP
5
+# service.
6
+dhcp-range=VLAN60,192.168.60.50,192.168.60.150,12h
7
+
8
+dhcp-option=VLAN60,option:router,192.168.60.1
9
+
10
+dhcp-option=VLAN60,option:dns-server,192.168.60.1

+ 7
- 0
60_create_leases_file.conf 查看文件

@@ -0,0 +1,7 @@
1
+# The DHCP server needs somewhere on disk to keep its lease database.
2
+# This defaults to a sane location, but if you want to change it, use
3
+# the line below.
4
+dhcp-leasefile=/var/lib/misc/dnsmasq.leases
5
+
6
+# Set the cachesize here.
7
+cache-size=4096

+ 15
- 0
70_cnames.conf 查看文件

@@ -0,0 +1,15 @@
1
+# firewall.home
2
+cname=fw.home,firewall.home
3
+cname=dns.home,firewall.home
4
+cname=dhcp.home,firewall.home
5
+cname=tv.home,firewall.home
6
+
7
+# multimedia.home
8
+cname=smart.home,multimedia.home
9
+cname=mqtt.home,multimedia.home
10
+cname=scan.home,multimedia.home
11
+cname=gfw.home,multimedia.home
12
+
13
+# mfc-j5330dw.home
14
+cname=brother.home,mfc-j5330dw.home
15
+

+ 5
- 0
80_static_ip.conf 查看文件

@@ -0,0 +1,5 @@
1
+# brother.home (BRNB422006223E2)
2
+# LAN
3
+# dhcp-host=b4:22:00:62:23:e2,mfc-j5330dw,192.168.0.10
4
+# WLAN
5
+dhcp-host=c8:94:02:b3:81:69,mfc-j5330dw,192.168.30.10

+ 6
- 0
99_debug.conf_ 查看文件

@@ -0,0 +1,6 @@
1
+# For debugging purposes, log each DNS query as it passes through
2
+# dnsmasq.
3
+#log-queries
4
+
5
+# Log lots of extra information about DHCP transactions.
6
+#log-dhcp

正在加载...
取消
保存