mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-05 04:54:41 +02:00
f7ab86197a
dnsmasq allows adding of arbitrary SRV/PTR/TXT/CNAME records. However, those options sometimes can not be passed as command-line arguments due to excess length. This patch tries to solve this problem: 1. Provide /etc/dnsmasq.conf file with comments about adding SRV/PTR/TXT/CNAME records. 2. Add this file to conffiles list so it is preserver during backup/restore or system upgrade. If someone needs a lot of custom records, default configuration file can be edited. Since manual pages and documentation is not installed, provided comments should be enough to figure out option syntax. Signed-off-by: Alexey I. Froloff <raorn@altlinux.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17663 3c298f89-4303-0410-b956-a3cf2f4a3e73
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
# Change the following lines if you want dnsmasq to serve SRV
|
|
# records.
|
|
# You may add multiple srv-host lines.
|
|
# The fields are <name>,<target>,<port>,<priority>,<weight>
|
|
|
|
# A SRV record sending LDAP for the example.com domain to
|
|
# ldapserver.example.com port 289
|
|
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389
|
|
|
|
# Two SRV records for LDAP, each with different priorities
|
|
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
|
|
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2
|
|
|
|
# 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.
|
|
# The fields are <name>,<target>
|
|
#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.
|
|
# The fields are <name>,<text>,<text>...
|
|
|
|
#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
|
|
# The fields are <cname>,<target>
|
|
#cname=bertand,bert
|