Documentation du Dr FRAPPE

Ce wiki regroupe les résultats de mes expériences en informatique accumulés au cours de mes recherches sur le net.

Dans la mesure du possible, j'ai cité mes sources ; il en manque certainement… :-)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
logiciel:internet:dnsmasq:dnsmasq.conf [2020/11/06 10:22] – [Options] adminlogiciel:internet:dnsmasq:dnsmasq.conf [2021/02/27 11:41] admin
Ligne 3: Ligne 3:
 ====== Dnsmasq.conf : options ====== ====== Dnsmasq.conf : options ======
  
-====== Format ======+===== Format =====
  
-Une option par ligne+Une option par ligne :<code txt ><option>=<valeur></code>
  
 les options valides sont les mêmes que celles sur la ligne de commande. les options valides sont les mêmes que celles sur la ligne de commande.
Ligne 11: Ligne 11:
 Pour plus de détails, voir<cli prompt='$ '>...@...:~$ /usr/sbin/dnsmasq --help</cli>ou <cli prompt='$ '>...@...:~$ man 8 dnsmasq</cli> Pour plus de détails, voir<cli prompt='$ '>...@...:~$ /usr/sbin/dnsmasq --help</cli>ou <cli prompt='$ '>...@...:~$ man 8 dnsmasq</cli>
  
-====== Options ======+===== Options =====
  
   ? port   ? port
Ligne 336: Ligne 336:
   : Set the DHCP server to enable DHCPv4 Rapid Commit Option per RFC 4039.   : Set the DHCP server to enable DHCPv4 Rapid Commit Option per RFC 4039.
   : In this mode it will respond to a DHCPDISCOVER message including a Rapid Commit option with a DHCPACK including a Rapid Commit option and fully committed address and configuration information. This must only be enabled if either the server is the only server for the subnet, or multiple servers are present and they each commit a binding for all clients.   : In this mode it will respond to a DHCPDISCOVER message including a Rapid Commit option with a DHCPACK including a Rapid Commit option and fully committed address and configuration information. This must only be enabled if either the server is the only server for the subnet, or multiple servers are present and they each commit a binding for all clients.
 +  ? dhcp-script=/bin/echo
 +  : Run an executable when a DHCP lease is created or destroyed.
 +  : The arguments sent to the script are "add" or "del", then the MAC address, the IP address and finally the hostname if there is one.
 +  ? cache-size=150
 +  : Set the cachesize here.
 +  ? no-negcache
 +  : If you want to disable negative caching, uncomment this.
 +  ? local-ttl=
 +   Normally responses which come from /etc/hosts and the DHCP lease file have Time-To-Live set as zero, which conventionally means do not cache further. If you are happy to trade lower load on the server for potentially stale date, you can set a time-to-live (in seconds) here.
 +  ? bogus-nxdomain=64.94.110.11
 +  : If you want dnsmasq to detect attempts by Verisign to send queries to unregistered .com and .net hosts to its sitefinder service and have dnsmasq instead return the correct NXDOMAIN response, uncomment this line. You can add similar lines to do the same for other registries which have implemented wildcard A records.
 +  ? alias
 +  : If you want to fix up DNS results from upstream servers, use the alias option. This only works for IPv4.
 +    ? alias=1.2.3.4,5.6.7.8
 +    : This alias makes a result of 1.2.3.4 appear as 5.6.7.8
 +    ? alias=1.2.3.0,5.6.7.0,255.255.255.0
 +    : and this maps 1.2.3.x to 5.6.7.x
 +    ? alias=192.168.0.10-192.168.0.40,10.0.0.0,255.255.255.0
 +    : and this maps 192.168.0.10->192.168.0.40 to 10.0.0.10->10.0.0.40
 +  ? MX records
 +  : Change these lines if you want dnsmasq to serve MX records.
 +    ? mx-host=maildomain.com,servermachine.com,50
 +    : Return an MX record named "maildomain.com" with target servermachine.com and preference 50
 +    ? mx-target=servermachine.com
 +    : Set the default target for MX records created using the localmx option.
 +    ? localmx
 +    : Return an MX record pointing to the mx-target for all local machines.
 +    ? selfmx
 +    : Return an MX record pointing to itself for all local machines.
 +  ? srv-host
 +  : Change the following lines if you want dnsmasq to serve SRV records. These are useful if you want to serve ldap requests for Active Directory and other windows-originated DNS requests.
 +  : See RFC 2782.
 +  : You may add multiple srv-host lines.
 +  : The fields are <name>,<target>,<port>,<priority>,<weight>
 +  : If the domain part if missing from the name (so that is just has the service and protocol sections) then the domain given by the domain= config option is used. (Note that expand-hosts does not need to be set for this to work.)
 +    ? srv-host=_ldap._tcp.example.com,ldapserver.example.com,389
 +    : A SRV record sending LDAP for the example.com domain to ldapserver.example.com port 389
 +    ? domain=example.com\\ srv-host=_ldap._tcp,ldapserver.example.com,389
 +    : A SRV record sending LDAP for the example.com domain to ldapserver.example.com port 389 (using domain=)
 +    ? srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1\\ srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2
 +    : Two SRV records for LDAP, each with different priorities
 +    ? srv-host=_ldap._tcp.example.com
 +    : A SRV record indicating that there is no LDAP server for the domain example.com
 +  ? ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services"
 +  : The following line shows how to make dnsmasq serve an arbitrary PTR record. This is useful for DNS-SD. (Note that the domain-name expansion done for SRV records _does_not occur for PTR records.)
 +  ? txt-record
 +  : Change the following lines to enable dnsmasq to serve TXT records.
 +  : These are used for things like SPF and zeroconf. (Note that the domain-name expansion done for SRV records _does_not occur for TXT records.)
 +    ? txt-record=example.com,"v=spf1 a -all"
 +    : Example SPF.
 +    ? txt-record=_http._tcp.example.com,name=value,paper=A4
 +    : Example zeroconf
 +  ? cname=bertand,bert
 +  : Provide an alias for a "local" DNS name. Note that this _only_ works for targets which are names from DHCP or /etc/hosts. Give host "bert" another name, bertrand
 +  ? log-queries
 +  : For debugging purposes, log each DNS query as it passes through dnsmasq.
 +  ? log-dhcp
 +  : Log lots of extra information about DHCP transactions.
 +  ? conf-file=/etc/dnsmasq.more.conf
 +  ? conf-dir=/etc/dnsmasq.d
 +  : Include another lot of configuration options.
 +  ? conf-dir=/etc/dnsmasq.d,.bak
 +  : Include all the files in a directory except those ending in .bak
 +  ? conf-dir=/etc/dnsmasq.d/,*.conf
 +  : Include all files in a directory which end in .conf
 +  ? dhcp-name-match=set:wpad-ignore,wpad
 +  ? dhcp-ignore-names=tag:wpad-ignore
 +  : If a DHCP client claims that its name is "wpad", ignore that.
 +  : This fixes a security hole. see CERT Vulnerability VU#598349
  
-# Run an executable when a DHCP lease is created or destroyed. +===== Voir aussi =====
-# The arguments sent to the script are "add" or "del", +
-# then the MAC address, the IP address and finally the hostname +
-# if there is one. +
-#dhcp-script=/bin/echo +
- +
-# Set the cachesize here. +
-#cache-size=150 +
- +
-# If you want to disable negative caching, uncomment this. +
-#no-negcache +
- +
-# Normally responses which come from /etc/hosts and the DHCP lease +
-# file have Time-To-Live set as zero, which conventionally means +
-# do not cache further. If you are happy to trade lower load on the +
-# server for potentially stale date, you can set a time-to-live (in +
-# seconds) here. +
-#local-ttl= +
- +
-# If you want dnsmasq to detect attempts by Verisign to send queries +
-# to unregistered .com and .net hosts to its sitefinder service and +
-# have dnsmasq instead return the correct NXDOMAIN response, uncomment +
-# this line. You can add similar lines to do the same for other +
-# registries which have implemented wildcard A records. +
-#bogus-nxdomain=64.94.110.11 +
- +
-# If you want to fix up DNS results from upstream servers, use the +
-# alias option. This only works for IPv4. +
-# This alias makes a result of 1.2.3.4 appear as 5.6.7.8 +
-#alias=1.2.3.4,5.6.7.8 +
-# and this maps 1.2.3.x to 5.6.7.x +
-#alias=1.2.3.0,5.6.7.0,255.255.255.0 +
-# and this maps 192.168.0.10->192.168.0.40 to 10.0.0.10->10.0.0.40 +
-#alias=192.168.0.10-192.168.0.40,10.0.0.0,255.255.255.0 +
- +
-# Change these lines if you want dnsmasq to serve MX records. +
- +
-# Return an MX record named "maildomain.com" with target +
-# servermachine.com and preference 50 +
-#mx-host=maildomain.com,servermachine.com,50 +
- +
-# Set the default target for MX records created using the localmx option. +
-#mx-target=servermachine.com +
- +
-# Return an MX record pointing to the mx-target for all local +
-# machines. +
-#localmx +
- +
-# Return an MX record pointing to itself for all local machines. +
-#selfmx +
- +
-# Change the following lines if you want dnsmasq to serve SRV +
-# records.  These are useful if you want to serve ldap requests for +
-# Active Directory and other windows-originated DNS requests. +
-# See RFC 2782. +
-# You may add multiple srv-host lines. +
-# The fields are <name>,<target>,<port>,<priority>,<weight> +
-# If the domain part if missing from the name (so that is just has the +
-# service and protocol sections) then the domain given by the domain= +
-# config option is used. (Note that expand-hosts does not need to be +
-# set for this to work.) +
- +
-# A SRV record sending LDAP for the example.com domain to +
-# ldapserver.example.com port 389 +
-#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389 +
- +
-# A SRV record sending LDAP for the example.com domain to +
-# ldapserver.example.com port 389 (using domain=) +
-#domain=example.com +
-#srv-host=_ldap._tcp,ldapserver.example.com,389 +
- +
-# Two SRV records for LDAP, each with different priorities +
-#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,+
-#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,+
- +
-# A SRV record indicating that there is no LDAP server for the domain +
-# example.com +
-#srv-host=_ldap._tcp.example.com +
- +
-# The following line shows how to make dnsmasq serve an arbitrary PTR +
-# record. This is useful for DNS-SD. (Note that the +
-# domain-name expansion done for SRV records _does_not +
-# occur for PTR records.) +
-#ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services" +
- +
-# Change the following lines to enable dnsmasq to serve TXT records. +
-# These are used for things like SPF and zeroconf. (Note that the +
-# domain-name expansion done for SRV records _does_not +
-# occur for TXT records.) +
- +
-#Example SPF. +
-#txt-record=example.com,"v=spf1 a -all" +
- +
-#Example zeroconf +
-#txt-record=_http._tcp.example.com,name=value,paper=A4 +
- +
-# Provide an alias for a "local" DNS name. Note that this _only_ works +
-# for targets which are names from DHCP or /etc/hosts. Give host +
-# "bert" another name, bertrand +
-#cname=bertand,bert +
- +
-# For debugging purposes, log each DNS query as it passes through +
-# dnsmasq. +
-#log-queries +
- +
-# Log lots of extra information about DHCP transactions. +
-#log-dhcp +
- +
-# Include another lot of configuration options. +
-#conf-file=/etc/dnsmasq.more.conf +
-#conf-dir=/etc/dnsmasq.d +
- +
-# Include all the files in a directory except those ending in .bak +
-#conf-dir=/etc/dnsmasq.d,.bak +
- +
-# Include all files in a directory which end in .conf +
-#conf-dir=/etc/dnsmasq.d/,*.conf +
- +
-# If a DHCP client claims that its name is "wpad", ignore that. +
-# This fixes a security hole. see CERT Vulnerability VU#598349 +
-#dhcp-name-match=set:wpad-ignore,wpad +
-#dhcp-ignore-names=tag:wpad-ignore +
- +
-====== Voir aussi ======+
  
   * **(fr)** [[http://Article]]   * **(fr)** [[http://Article]]