[OpenWrt-Devel] patch for ticket 13249
Jeff R. Allen
jra at nella.org
Thu Feb 4 22:35:57 EST 2016
As requested in https://dev.openwrt.org/ticket/13249#comment:5:
dnsmasq: Make it possible to set txt-records
Signed-off-by: Jeff R. Allen <jra at nella.org>
---
package/network/services/dnsmasq/files/dnsmasq.init | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init
b/package/network/services/dnsmasq/files/dnsmasq.init
index db342e7..1d10f5e 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -78,6 +78,14 @@ append_parm() {
xappend "$switch=$_loctmp"
}
+append_ptrrecord() {
+ xappend "--ptr-record=$1"
+}
+
+append_txtrecord() {
+ xappend "--txt-record=$1"
+}
+
append_server() {
xappend "--server=$1"
}
@@ -156,6 +164,8 @@ dnsmasq() {
config_list_foreach "$cfg" "notinterface" append_notinterface
config_list_foreach "$cfg" "addnhosts" append_addnhosts
config_list_foreach "$cfg" "bogusnxdomain" append_bogusnxdomain
+ config_list_foreach "$cfg" "txtrecord" append_txtrecord
+ config_list_foreach "$cfg" "ptrrecord" append_ptrrecord
append_parm "$cfg" "leasefile" "--dhcp-leasefile"
append_parm "$cfg" "resolvfile" "--resolv-file"
append_parm "$cfg" "serversfile" "--servers-file"
--
2.1.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list