Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
logiciel:internet:dnsmasq:dnsmasq.conf [2020/11/06 10:31] – [Options] admin | logiciel:internet:dnsmasq:dnsmasq.conf [2020/11/06 10:46] – [Format] admin | ||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
====== Format ====== | ====== Format ====== | ||
- | Une option par ligne | + | Une option par ligne :<code txt >< |
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 345: | Ligne 345: | ||
? local-ttl= | ? local-ttl= | ||
| | ||
- | ? 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, |
- | | + | : This alias makes a result of 1.2.3.4 appear as 5.6.7.8 |
- | | + | ? alias=1.2.3.0, |
- | | + | : and this maps 1.2.3.x to 5.6.7.x |
- | | + | ? alias=192.168.0.10-192.168.0.40, |
- | | + | : and this maps 192.168.0.10-> |
- | | + | ? MX records |
- | | + | : Change these lines if you want dnsmasq to serve MX records. |
- | | + | ? mx-host=maildomain.com, |
- | | + | : Return an MX record named " |
- | | + | ? 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 < |
- | | + | : 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, | |
- | # A SRV record sending LDAP for the example.com domain to | + | : |
- | # ldapserver.example.com port 389 | + | ? domain=example.com\\ |
- | #srv-host=_ldap._tcp.example.com, | + | : |
- | + | ? | |
- | # A SRV record sending LDAP for the example.com domain to | + | : Two SRV records for LDAP, each with different priorities |
- | # ldapserver.example.com port 389 (using domain=) | + | ? |
- | # | + | : |
- | #srv-host=_ldap._tcp, | + | ? ptr-record=_http._tcp.dns-sd-services," |
- | + | : | |
- | # Two SRV records for LDAP, each with different priorities | + | ? txt-record |
- | #srv-host=_ldap._tcp.example.com, | + | : |
- | #srv-host=_ldap._tcp.example.com, | + | : |
- | + | ? | |
- | # A SRV record indicating that there is no LDAP server for the domain | + | : |
- | # example.com | + | ? |
- | #srv-host=_ldap._tcp.example.com | + | : Example zeroconf |
- | + | ? cname=bertand, | |
- | # The following line shows how to make dnsmasq serve an arbitrary PTR | + | : Provide an alias for a " |
- | # record. This is useful for DNS-SD. (Note that the | + | ? log-queries |
- | # domain-name expansion done for SRV records _does_not | + | : |
- | # occur for PTR records.) | + | ? |
- | #ptr-record=_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 | + | : Include another lot of configuration options. |
- | # domain-name expansion done for SRV records _does_not | + | ? conf-dir=/ |
- | # occur for TXT records.) | + | : Include all the files in a directory except those ending in .bak |
- | + | ? | |
- | #Example SPF. | + | : |
- | #txt-record=example.com," | + | ? dhcp-name-match=set: |
- | + | ? dhcp-ignore-names=tag: | |
- | #Example | + | : |
- | #txt-record=_http._tcp.example.com, | + | : |
- | + | ||
- | # Provide an alias for a " | + | |
- | # for targets which are names from DHCP or /etc/hosts. Give host | + | |
- | # " | + | |
- | # | + | |
- | + | ||
- | # 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=/ | + | |
- | #conf-dir=/ | + | |
- | + | ||
- | # Include all the files in a directory except those ending in .bak | + | |
- | #conf-dir=/ | + | |
- | + | ||
- | # Include all files in a directory which end in .conf | + | |
- | #conf-dir=/ | + | |
- | + | ||
- | # If a DHCP client claims that its name is " | + | |
- | # This fixes a security hole. see CERT Vulnerability VU#598349 | + | |
- | # | + | |
- | # | + | |
====== Voir aussi ====== | ====== Voir aussi ====== |