SourceForge.net Logo

D.4. /etc/sysconfig/dnsmasq.conf

# GPL $Id: dnsmasq.conf,v 1.4 2005/03/09 02:31:25 cvonk Exp $
# run-time configuration for DNS forwarder and DHCP server (dnsmasq)
#
# DNS forwarder for external domains
#
resolv-file=/etc/sysconfig/dnsmasq/resolv.conf # upstream name servers
no-poll                                  # do not poll resolv-file
except-interface=eth1                    # do not answer on external i/f
domain-needed                            # don't forward plain names
bogus-priv                               # don't forward private addresse
bogus-nxdomain=64.94.110.11              # keep Verisign in control
filterwin2k                              # filter useless Windows DNS requests
#
# Local DNS name server
#
no-hosts                                 # do not read /etc/hosts
addn-hosts=/etc/sysconfig/dnsmasq/hosts  # instead, read this file
expand-hosts                             # add the domain to /etc/hosts entries
domain=vonk                              # domain name
local=/vonk/                             # answer these domains from /etc/hosts
#
# Automatically configure DHCP client network i/f (RFC 1533)
#
dhcp-option=1,255.255.255.0              # subnet mark
dhcp-option=2,-28800                     # UTC -8:00 
dhcp-option=lan, 3,10.0.1.1              # default g/w for LAN client
dhcp-option=wifi,3,10.0.2.1              # default g/w for WiFi clients
dhcp-option=vpn, 3,10.0.3.1              # default g/w for VPN clients
dhcp-option=lan, 6,10.0.1.1              # DNS server for LAN clients
dhcp-option=wifi,6,10.0.2.1              # DNS server for WiFi clients
dhcp-option=vpn, 6,10.0.3.1              # DNS server for VPN clients
dhcp-option=7,10.0.1.2                   # SYSLOG server
#dhcp-option=wifi,33,10.0.1.4,10.0.2.1,10.0.1.100,10.0.2.1 #
#                                        # STATIC ROUTE for WiFi clients
dhcp-option=40,vonk                      # NIS domain
dhcp-option=41,10.0.1.2                  # NIS domain server
dhcp-option=42,10.0.1.1                  # NTP server
#
# DHCP options for BOOTP
#
#dhcp-option=17,/home/cvonk/tftp         # BOOTP rootpath
#dhcp-option=18,/pxe/pxelinux.0          # BOOTP more info
#
# DHCP address range
#
dhcp-range=lan,10.0.1.120,10.0.1.125,,15m  # DHCP addr range for LAN clients
dhcp-range=wifi,10.0.2.120,10.0.2.125,,15m # DHCP addr range for WIFI clients
# dhcp-range for vpn controlled by L2TP      # DHCP addr rance for VPN clients
#
# MAC addresses below are statically mapped to IP addresses
#
dhcp-host=00:16:76:AA:DE:FF,net:lan,  zoef.vonk,zoef.vonk,24h
dhcp-host=00:90:4B:2F:6E:D4,net:wifi, crox.vonk,crox.vonk,12h
dhcp-host=00:0D:56:32:DD:8B,net:lan,  crox.lan.vonk,crox.lan.vonk,12h
dhcp-host=00:1A:6B:CE:9D:83,net:lan,  bor.lan.vonk,bor.lan.vonk,24h
dhcp-host=00:13:E8:92:4B:5F,net:wifi, bor.vonk,bor.vonk,24h
dhcp-host=00:1d:60:62:28:db,net:wifi, truus.vonk,truus.vonk,12h
dhcp-host=00:1c:23:a1:94:3a,net:lan,  truus.lan.vonk,truus.lan.vonk,12h
dhcp-host=00:17:F2:F9:3D:BA,net:lan,  appletv.vonk,appletv.vonk,24h
dhcp-host=00:1a:73:37:48:1b,net:wifi, myra.vonk,myra.vonk,12h
dhcp-host=00:16:D4:C3:14:E3,net:lan,  myra.lan.vonk,myra.lan.vonk,12h
dhcp-host=00:05:3c:04:b8:65,net:lan,  martha.vonk,martha.vonk,12h
dhcp-host=00:07:95:F9:CF:67,net:lan,  back.vonk,back.vonk,24h
dhcp-host=00:60:08:93:8F:88,net:lan,  nis.vonk,nis.vonk,24h
#
# MX records
#
# mx-host=vonk,mail.vonk,50                # 
# mx-target=mail.vonk                      # target for localmx 
# localmx                                  #

Example D.4. /etc/sysconfig/dnsmasq.conf