Browse Source

Merge pull request #14601 from pprindeville/isc-dhcp-add-multihoming-domain

isc-dhcp: add multihoming domain
lilik-openwrt-22.03
Philip Prindeville 4 years ago
committed by GitHub
parent
commit
40c83eed58
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions
  1. +1
    -1
      net/isc-dhcp/Makefile
  2. +7
    -4
      net/isc-dhcp/files/dhcpd.init

+ 1
- 1
net/isc-dhcp/Makefile View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=isc-dhcp
UPSTREAM_NAME:=dhcp
PKG_VERSION:=4.4.1
PKG_RELEASE:=13
PKG_RELEASE:=14
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE


+ 7
- 4
net/isc-dhcp/files/dhcpd.init View File

@ -179,17 +179,20 @@ static_cnames() {
static_domain_add() {
local cfg="$1"
local name ip revip
local name ip ips revip
config_get name "$cfg" "name"
[ -n "$name" ] || return 0
config_get ip "$cfg" "ip"
[ -n "$ip" ] || return 0
revip="$(rev_str "$ip" ".")"
ips="$ip"
for ip in $ips; do
revip="$(rev_str "$ip" ".")"
update "$name.$domain." IN A "$ip"
update "$revip.in-addr.arpa." IN PTR "$name.$domain."
update "$name.$domain." IN A "$ip"
update "$revip.in-addr.arpa." IN PTR "$name.$domain."
done
}
static_domains() {


Loading…
Cancel
Save