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 [2020/11/06 10:43] – [Options] admin
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. +  : Run an executable when a DHCP lease is created or destroyed. 
-The arguments sent to the script are "add" or "del", +  : 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. 
-then the MAC address, the IP address and finally the hostname +  ? cache-size=150 
-if there is one. +  : Set the cachesize here. 
-#dhcp-script=/bin/echo +  ? no-negcache 
- +  : If you want to disable negative caching, uncomment this. 
-Set the cachesize here. +  ? local-ttl= 
-#cache-size=150 +   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 to disable negative caching, uncomment this. +  : 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. 
-#no-negcache +  ? alias 
- +  : If you want to fix up DNS results from upstream servers, use the alias option. This only works for IPv4. 
-Normally responses which come from /etc/hosts and the DHCP lease +    ? alias=1.2.3.4,5.6.7.8 
-file have Time-To-Live set as zero, which conventionally means +    : This alias makes a result of 1.2.3.4 appear as 5.6.7.8 
-do not cache further. If you are happy to trade lower load on the +    ? alias=1.2.3.0,5.6.7.0,255.255.255.0 
-server for potentially stale date, you can set a time-to-live (in +    : and this maps 1.2.3.x to 5.6.7.x 
-seconds) here. +    ? alias=192.168.0.10-192.168.0.40,10.0.0.0,255.255.255.0 
-#local-ttl+    : and this maps 192.168.0.10->192.168.0.40 to 10.0.0.10->10.0.0.40 
- +  ? MX records 
-If you want dnsmasq to detect attempts by Verisign to send queries +  : Change these lines if you want dnsmasq to serve MX records. 
-to unregistered .com and .net hosts to its sitefinder service and +    ? mx-host=maildomain.com,servermachine.com,50 
-have dnsmasq instead return the correct NXDOMAIN response, uncomment +    : Return an MX record named "maildomain.com" with target servermachine.com and preference 50 
-this line. You can add similar lines to do the same for other +    ? mx-target=servermachine.com 
-registries which have implemented wildcard A records. +    : Set the default target for MX records created using the localmx option. 
-#bogus-nxdomain=64.94.110.11 +    ? localmx 
- +    : Return an MX record pointing to the mx-target for all local machines. 
-If you want to fix up DNS results from upstream servers, use the +    ? selfmx 
-alias option. This only works for IPv4. +    : Return an MX record pointing to itself for all local machines. 
-This alias makes a result of 1.2.3.4 appear as 5.6.7.8 +  ? srv-host 
-#alias=1.2.3.4,5.6.7.8 +  : 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. 
-and this maps 1.2.3.x to 5.6.7.x +  : See RFC 2782. 
-#alias=1.2.3.0,5.6.7.0,255.255.255.0 +  : You may add multiple srv-host lines. 
-and this maps 192.168.0.10->192.168.0.40 to 10.0.0.10->10.0.0.40 +  : The fields are <name>,<target>,<port>,<priority>,<weight> 
-#alias=192.168.0.10-192.168.0.40,10.0.0.0,255.255.255.0 +  : 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 
-Change these lines if you want dnsmasq to serve MX records. +    : 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 
-Return an MX record named "maildomain.com" with target +    : A SRV record sending LDAP for the example.com domain to ldapserver.example.com port 389 (using domain=) 
-servermachine.com and preference 50 +    ? srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1\\ srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,
-#mx-host=maildomain.com,servermachine.com,50 +    : Two SRV records for LDAP, each with different priorities 
- +    ? srv-host=_ldap._tcp.example.com 
-Set the default target for MX records created using the localmx option. +    : A SRV record indicating that there is no LDAP server for the domain example.com 
-#mx-target=servermachine.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.) 
-Return an MX record pointing to the mx-target for all local +  ? txt-record 
-machines. +  : Change the following lines to enable dnsmasq to serve TXT records. 
-#localmx +  : 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" 
-Return an MX record pointing to itself for all local machines. +    : Example SPF. 
-#selfmx +    ? txt-record=_http._tcp.example.com,name=value,paper=A4 
- +    : Example zeroconf 
-Change the following lines if you want dnsmasq to serve SRV +  ? cname=bertand,bert 
-records.  These are useful if you want to serve ldap requests for +  : 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 
-Active Directory and other windows-originated DNS requests. +  ? log-queries 
-See RFC 2782. +  : For debugging purposes, log each DNS query as it passes through dnsmasq. 
-You may add multiple srv-host lines. +  ? log-dhcp 
-The fields are <name>,<target>,<port>,<priority>,<weight> +  : Log lots of extra information about DHCP transactions. 
-If the domain part if missing from the name (so that is just has the +  ? conf-file=/etc/dnsmasq.more.conf 
-service and protocol sections) then the domain given by the domain= +  ? conf-dir=/etc/dnsmasq.d 
-config option is used. (Note that expand-hosts does not need to be +  : Include another lot of configuration options.
-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 LDAPeach with different priorities +
-#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1 +
-#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 # Include all the files in a directory except those ending in .bak