# Configuration file for dnsmasq. ############# ## Logging ## ############# # For debugging purposes, log each DNS query as it passes through dnsmasq. log-queries # Log lots of extra information about DHCP transactions. log-dhcp # Log facility # Définit la "facility" dans laquelle Dnsmasq enverra ses entrées syslog, # par défaut DAEMON ou LOCAL0 si le mode debug est activé. # Si la "facility" contient au moins un caractère "/", alors # Dnsmasq considère qu'il s'agit d'un fichier et enverra les logs dans # le fichier correspondant à la place du syslog. # (Les erreurs lors de la lecture de la configuration vont toujours vers # le syslog, mais tous les messages postérieures à un démarrage réussi # seront exclusivement envoyés vers le fichier de logs). # Lorsque Dnsmasq est configuré pour envoyer ses traces vers un # fichier, la réception d'un signal SIGUSR2 entraine la fermeture et réouverture du fichier. # Cela permet la rotation de fichiers de traces sans nécessiter l'arrêt de Dnsmasq. log-facility=/var/log/dnsmasq.log ################# ## Options DNS ## ################# # Domaine local domain=%%nom_domaine_local # If you want to disable negative ("no such domain") caching, uncomment this. no-negcache # forces dnsmasq to try each query with each server # #strictly in the order they appear in /etc/resolv.conf strict-order # Set this (and domain: see below) if you want to have a domain # automatically added to simple names in a hosts-file. expand-hosts # Uncomment this to filter useless windows-originated DNS requests # which can trigger dial-on-demand links needlessly. # Note that (amongst other things) this blocks all SRV requests, # so don't use it if you use eg Kerberos, SIP, XMMP or Google-talk. # This option only affects forwarding, SRV records originating for # dnsmasq (via srv-host= lines) are not suppressed by it. filterwin2k ########## ## DHCP ## ########## ## Options globales DHCP ## dhcp-authoritative # Send microsoft-specific option to tell windows to release the DHCP lease # when it shuts down. Note the "i" flag, to tell dnsmasq to send the # value as a four-byte integer - that's what microsoft wants. See # http://technet2.microsoft.com/WindowsServer/en/library/a70f1bb7-d2d4-49f0-96d6-4b7414ecfaae1033.mspx?mfr=true dhcp-option=vendor:MSFT,2,1i # WINS %if %%is_defined('container_ip_fichier') %if %%container_ip_fichier == "127.0.0.1" dhcp-option=option:netbios-ns,%%adresse_ip_eth0 dhcp-option=option:netbios-dd,%%adresse_ip_eth0 %else dhcp-option=option:netbios-ns,%%adresse_ip_fichier_link dhcp-option=option:netbios-dd,%%adresse_ip_fichier_link %end if dhcp-option=option:netbios-nodetype,8 %end if # NTP dhcp-option=option:ntp-server,%%adresse_ip_eth0 ## Range DHCP ## # dhcp-range=LABEL,IP_BASSE,IP_HAUTE,NETMASK,DUREE_BAIL %for %%subnet_dhcp in %%adresse_network_dhcp # plage %%subnet_dhcp.ip_basse_dhcp => %%subnet_dhcp.ip_haute_dhcp dhcp-range=a%%subnet_dhcp.adresse_ip_gw_dhcp,%%subnet_dhcp.ip_basse_dhcp,%%subnet_dhcp.ip_haute_dhcp,%%subnet_dhcp.adresse_netmask_dhcp,12h dhcp-option=net:a%%subnet_dhcp.adresse_ip_gw_dhcp,option:router,%%subnet_dhcp.adresse_ip_gw_dhcp %end for ## PXE/TFTP ## %if %%activer_tftp == 'oui' #dhcp-option=66,"%%adresse_ip_tftp" %if %%adresse_ip_tftp == %%adresse_ip_eth0 dhcp-boot=%%chemin_fichier_pxe %else dhcp-boot=%%chemin_fichier_pxe,pxeserver,%%adresse_ip_tftp %end if enable-tftp tftp-root=%%repertoire_tftp %end if