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/05 20:41] – [Options] admin | logiciel:internet:dnsmasq:dnsmasq.conf [2020/11/06 10:45] – [Options] admin | ||
---|---|---|---|
Ligne 290: | Ligne 290: | ||
? pxe-prompt=" | ? pxe-prompt=" | ||
: or with timeout before first available action is taken: | : or with timeout before first available action is taken: | ||
- | + | ? pxe-service | |
- | # Available boot services. for PXE. | + | : |
- | #pxe-service=x86PC, | + | ? pxe-service=x86PC, |
- | + | : Available boot services. for PXE. | |
- | # Loads < | + | ? |
- | #pxe-service=x86PC, | + | : |
- | + | ? | |
- | # Loads < | + | : |
- | # Beware this fails on old PXE ROMS. | + | : |
- | #pxe-service=x86PC, | + | ? |
- | + | : | |
- | # Use bootserver on network, found my multicast or broadcast. | + | ? |
- | #pxe-service=x86PC, | + | : |
- | + | ? multicast-FTP | |
- | # Use bootserver at a known IP address. | + | : |
- | #pxe-service=x86PC, | + | ? enable-tftp |
- | + | : | |
- | # If you have multicast-FTP available, | + | ? |
- | # information for that can be passed in a similar way using options 1 | + | : |
- | # to 5. See page 19 of | + | ? |
- | # http:// | + | : |
- | + | ? | |
- | + | : | |
- | # Enable dnsmasq' | + | ? |
- | #enable-tftp | + | : |
- | + | ? dhcp-boot | |
- | # Set the root directory for files available via FTP. | + | : |
- | #tftp-root=/ | + | ? dhcp-boot=tag: |
- | + | : | |
- | # Do not abort if the tftp-root is unavailable | + | ? |
- | #tftp-no-fail | + | : |
- | + | : | |
- | # Make the TFTP server more secure: with this set, only files owned by | + | ? |
- | # the user dnsmasq is running as will be send over the net. | + | : |
- | #tftp-secure | + | ? |
- | + | : | |
- | # This option stops dnsmasq from negotiating a larger blocksize for TFTP | + | ? dhcp-lease-max=150 |
- | # transfers. It will slow things down, but may rescue some broken TFTP | + | : |
- | # clients. | + | ? |
- | #tftp-no-blocksize | + | : |
- | + | : | |
- | # Set the boot file name only when the " | + | ? |
- | #dhcp-boot=tag:red,pxelinux.red-net | + | : |
- | + | ? | |
- | # An example of dhcp-boot with an external TFTP server: the name and IP | + | : |
- | # address of the server are given after the filename. | + | : |
- | # Can fail with old PXE ROMS. Overridden by --pxe-service. | + | ? |
- | #dhcp-boot=/ | + | : |
- | + | : | |
- | # If there are multiple external tftp servers having a same name | + | ? cache-size=150 |
- | # (using /etc/hosts) then that name can be specified as the | + | : |
- | # tftp_servername (the third option to dhcp-boot) and in that | + | ? no-negcache |
- | # case dnsmasq resolves this name and returns the resultant IP | + | : |
- | # addresses in round robin fashion. This facility can be used to | + | ? local-ttl= |
- | # load balance the tftp load among a set of servers. | + | |
- | #dhcp-boot=/ | + | ? bogus-nxdomain=64.94.110.11 |
- | + | : | |
- | # Set the limit on DHCP leases, the default is 150 | + | ? alias |
- | #dhcp-lease-max=150 | + | : |
- | + | ? alias=1.2.3.4, | |
- | # The DHCP server needs somewhere on disk to keep its lease database. | + | : This alias makes a result of 1.2.3.4 appear as 5.6.7.8 |
- | # This defaults to a sane location, but if you want to change it, use | + | ? |
- | # the line below. | + | : |
- | #dhcp-leasefile=/ | + | ? |
- | + | : | |
- | # Set the DHCP server to authoritative mode. In this mode it will barge in | + | ? MX records |
- | # and take over the lease for any client which broadcasts on the network, | + | : |
- | # whether it has a record of the lease or not. This avoids long timeouts | + | ? mx-host=maildomain.com, |
- | # when a machine wakes up on a new network. DO NOT enable this if there' | + | : |
- | # the slightest chance that you might end up accidentally configuring a DHCP | + | ? |
- | # server for your campus/ | + | : |
- | # the same option, and this URL provides more information: | + | ? localmx |
- | # http:// | + | : |
- | #dhcp-authoritative | + | ? selfmx |
- | + | : | |
- | # Set the DHCP server to enable DHCPv4 Rapid Commit Option per RFC 4039. | + | ? srv-host |
- | # 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-rapid-commit | + | ? srv-host=_ldap._tcp.example.com, |
- | + | : | |
- | # Run an executable when a DHCP lease is created or destroyed. | + | ? domain=example.com\\ |
- | # The arguments sent to the script are " | + | : |
- | # then the MAC address, the IP address and finally the hostname | + | ? |
- | # if there is one. | + | : Two SRV records for LDAP, each with different priorities |
- | #dhcp-script=/bin/echo | + | ? srv-host=_ldap._tcp.example.com |
- | + | : | |
- | # Set the cachesize here. | + | ? ptr-record=_http._tcp.dns-sd-services," |
- | #cache-size=150 | + | : |
- | + | ? txt-record | |
- | # 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 | + | : Example zeroconf |
- | # server for potentially stale date, you can set a time-to-live (in | + | ? cname=bertand, |
- | # seconds) here. | + | : Provide an alias for a " |
- | #local-ttl= | + | ? log-queries |
- | + | : | |
- | # 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. | + | : Include another lot of configuration options. |
- | # | + | ? conf-dir=/ |
- | + | : Include all the files in a directory except those ending in .bak | |
- | # 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 | + | ? dhcp-name-match=set: |
- | #alias=1.2.3.4,5.6.7.8 | + | ? dhcp-ignore-names=tag: |
- | # and this maps 1.2.3.x to 5.6.7.x | + | : |
- | #alias=1.2.3.0,5.6.7.0, | + | : |
- | # and this maps 192.168.0.10-> | + | |
- | # | + | |
- | + | ||
- | # Change these lines if you want dnsmasq to serve MX records. | + | |
- | + | ||
- | # Return an MX record named " | + | |
- | # servermachine.com and preference 50 | + | |
- | #mx-host=maildomain.com, | + | |
- | + | ||
- | # Set the default target for MX records created using the localmx option. | + | |
- | # | + | |
- | + | ||
- | # 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. | + | |
- | # 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.) | + | |
- | + | ||
- | # A SRV record sending LDAP for the example.com domain to | + | |
- | # ldapserver.example.com port 389 | + | |
- | #srv-host=_ldap._tcp.example.com, | + | |
- | + | ||
- | # A SRV record sending LDAP for the example.com domain to | + | |
- | # ldapserver.example.com port 389 (using domain=) | + | |
- | # | + | |
- | #srv-host=_ldap._tcp, | + | |
- | + | ||
- | # Two SRV records for LDAP, each with different priorities | + | |
- | #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 | + | |
- | + | ||
- | # 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," | + | |
- | + | ||
- | # 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," | + | |
- | + | ||
- | #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 ====== |