]>
Commit | Line | Data |
---|---|---|
9e4abcb5 SK |
1 | # Configuration file for dnsmasq. |
2 | # | |
3 | # Format is one option per line, legal options are the same | |
4 | # as the long options legal on the command line. See | |
5 | # "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details. | |
6 | ||
7 | # Change these lines if you want dnsmasq to serve MX records. | |
8 | # Only one of mx-host and mx-target need be set, the other defaults | |
9 | # to the name of the host running dnsmasq. | |
10 | #mx-host= | |
11 | #mx-target= | |
12 | #selfmx | |
13 | #localmx | |
14 | ||
15 | # The following three options make you a better netizen, since they | |
16 | # tell dnsmasq to filter out queries which the public DNS cannot | |
17 | # answer, and which load the servers (especially the root servers) | |
18 | # uneccessarily. If you have a dial-on-demand link they also stop | |
19 | # these requests from bringing up the link uneccessarily. | |
20 | ||
21 | # Never forward plain names (with a dot or domain part) | |
22 | domain-needed | |
23 | # Reply to reverse queries for addresses in the non-routed address | |
24 | # space with the dotted.quad address | |
25 | bogus-priv | |
26 | # Filter useless windows-originated DNS requests | |
27 | filterwin2k | |
28 | ||
29 | ||
30 | # Change this line if you want dns to get its upstream servers from | |
31 | # somewhere other that /etc/resolv.conf | |
32 | #resolv-file= | |
33 | ||
34 | # If you don't want dnsmasq to read /etc/resolv.conf or any other | |
35 | # file, getting its servers for this file instead (see below), then | |
36 | # uncomment this | |
37 | #no-resolv | |
38 | ||
39 | # If you don't want dnsmasq to poll /etc/resolv.conf or other resolv | |
40 | # files for changes and re-read them then uncomment this. | |
41 | #no-poll | |
42 | ||
43 | # Add other name servers here, with domain specs if they are for | |
44 | # non-public domains. | |
45 | #server=/localnet/192.168.0.1 | |
46 | ||
47 | # Add local-only domains here, queries in these domains are answered | |
48 | # from /etc/hosts or DHCP only. | |
49 | #local=/localnet/ | |
50 | ||
51 | # Add domains which you want to force to an IP address here. | |
52 | # The example below send any host in doubleclick.net to a local | |
53 | # webserver. | |
54 | #address=/doubleclick.net/127.0.0.1 | |
55 | ||
56 | # You no longer (as of version 1.7) need to set these to enable | |
57 | # dnsmasq to read /etc/ppp/resolv.conf since dnsmasq now uses the | |
58 | # "dip" group to achieve this. | |
59 | #user= | |
60 | #group= | |
61 | ||
62 | # If you want dnsmasq to listen for requests only on specified interfaces | |
63 | # (and the loopback) give the name of the interface (eg eth0) here. | |
64 | # Repeat the line for more than one interface. | |
65 | #interface= | |
66 | # Or you can specify which interface _not_ to listen on | |
67 | #except-interface= | |
68 | # Or which to listen on by address (remember to include 127.0.0.1 if | |
69 | # you use this.) | |
70 | #listen-address= | |
71 | ||
72 | # If you don't want dnsmasq to read /etc/hosts, uncomment the | |
73 | # following line. | |
74 | #no-hosts | |
75 | # or if you want it to read another file, as well as /etc/hosts, use | |
76 | # this. | |
77 | #addn-hosts=/etc/banner_add_hosts | |
78 | ||
79 | # Set this (and domain: see below) if you want to have a domain | |
80 | # automatically added to simple names in a hosts-file. | |
81 | #expand-hosts | |
82 | ||
83 | # Uncomment this to enable the integrated DHCP server, you need | |
84 | # to supply the range of addresses available for lease and optionally | |
85 | # a lease time. If you have more than one interface, you will need to | |
86 | # repeat this for each interface on which you want to supply DHCP | |
87 | # service. | |
88 | #dhcp-range=192.168.0.50,192.168.0.150,12h | |
89 | ||
90 | # Supply parameters for specified hosts using DHCP. There are lots | |
91 | # of valid alternatives, do we will give examples of each. Note that | |
92 | # IP addresses DO NOT have to be in the range given above, they just | |
93 | # need to be on the same network. | |
94 | ||
95 | # Always allocate the host with ethernet address 11:22:33:44:55:66 | |
96 | # The IP address 192.168.0.60 | |
97 | #dhcp-host=11:22:33:44:55:66,192.168.0.60 | |
98 | ||
99 | # Always set the name of the host with hardware address | |
100 | # 11:22:33:44:55:66 to be "fred" | |
101 | #dhcp-host=11:22:33:44:55:66,fred | |
102 | ||
103 | # Always give the host with ethernet address 11:22:33:44:55:66 | |
104 | # the name fred and IP address 192.168.0.60 and lease time 45 minutes | |
105 | #dhcp-host=11:22:33:44:55:66,fred,192.168.0.60,45m | |
106 | ||
107 | # Give the machine which says it's name is "bert" IP address | |
108 | # 192.168.0.70 and an infinite lease | |
109 | #dhcp-host=bert,192.168.0.70,infinite | |
110 | ||
111 | # Always give the host with client identifier 01:02:02:04 | |
112 | # the IP address 192.168.0.60 | |
113 | #dhcp-host=id:01:02:02:04,192.168.0.60 | |
114 | ||
115 | # Always give the host with client identifier "marjorie" | |
116 | # the IP address 192.168.0.60 | |
117 | #dhcp-host=id:marjorie,192.168.0.60 | |
118 | ||
119 | # Send options to hosts which ask for a DHCP lease. | |
120 | # See RFC 2132 for details of available options. | |
121 | ||
122 | # Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5 | |
123 | #dhcp-option=42,192.168.0.4,10.10.0.5 | |
124 | ||
125 | # Set the NIS domain name to "welly" | |
126 | #dhcp-option=40,welly | |
127 | ||
128 | # Set the boot filename and tftpd server name and address | |
129 | # for BOOTP. You will only need this is you want to | |
130 | # boot machines over the network. | |
131 | #dhcp-boot=/var/ftpd/pxelinux.0,boothost,192.168.0.3 | |
132 | ||
133 | # The DHCP server needs somewhere on disk to keep its lease database. | |
134 | # This defaults to a sane location, but if you want to change it, use | |
135 | # the line below. | |
136 | #dhcp-leasefile=/var/lib/dnsmasq/leases | |
137 | ||
138 | # Override the default route (which is normally automagically set | |
139 | # to be the machine running dnsmasq | |
140 | #dhcp-option=2,192,168.4.4 | |
141 | ||
142 | # Set the cachesize here. | |
143 | #cache-size=600 | |
144 | ||
145 | # If you want to disable negative caching, uncomment this. | |
146 | #no-negcache | |
147 | ||
148 | # Normally responses which come form /etc/hosts and the DHCP lease | |
149 | # file have Time-To-Live set as zero, which conventionally means | |
150 | # do not cache further. If you are happy to trade lower load on the | |
151 | # server for potentially stale date, you can set a time-to-live (in | |
152 | # seconds) here. | |
153 | #local-ttl= | |
154 | ||
155 | # If you want dnsmasq to detect attempts by Verisign to send queries | |
156 | # to unregistered .com and .net hosts to its sitefinder service and | |
157 | # have dnsmasq instead return the correct NXDOMAIN response, uncomment | |
158 | # this line. You can add similar lines to do the same for other | |
159 | # registries which have implemented wildcard A records. | |
160 | #bogus-nxdomain=64.94.110.11 | |
161 | ||
162 | # For debugging purposes, log each DNS query as it passes through | |
163 | # dnsmasq. | |
164 | #log-queries | |
165 | ||
166 | ||
167 | ||
168 | ||
169 | ||
170 |