mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-12 07:53:07 +00:00
dnsmasq: - when processing domain entries, append searchdomain to host entries if they are not fully qualified - create only one reverse record for address entries with multiple names
SVN-Revision: 21109
This commit is contained in:
parent
819114e3f2
commit
6f5203228f
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=dnsmasq
|
PKG_NAME:=dnsmasq
|
||||||
PKG_VERSION:=2.52
|
PKG_VERSION:=2.52
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
|
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
|
||||||
|
@ -296,9 +296,17 @@ dhcp_domain_add() {
|
|||||||
local raddr="${4:+$4.$3.$2.$1.in-addr.arpa}"
|
local raddr="${4:+$4.$3.$2.$1.in-addr.arpa}"
|
||||||
|
|
||||||
for name in $names; do
|
for name in $names; do
|
||||||
append args "-A /$name/$ip"
|
local fqdn="$name"
|
||||||
[ -n "$raddr" ] && \
|
|
||||||
append args "--ptr-record=$raddr,$name"
|
[ "${fqdn%.*}" == "$fqdn" ] && \
|
||||||
|
fqdn="$fqdn${DOMAIN:+.$DOMAIN}"
|
||||||
|
|
||||||
|
append args "-A /$fqdn/$ip"
|
||||||
|
|
||||||
|
[ -n "$raddr" ] && {
|
||||||
|
append args "--ptr-record=$raddr,$fqdn"
|
||||||
|
raddr=""
|
||||||
|
}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user