From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 868d2a1fff7d6c217bd860567a956f27d0851e78 Date: Sat, 15 Oct 2016 22:35:20 +0100 Message-ID: <20161015213521.184B41078E81@git01.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5270398354193280287==" List-Id: --===============5270398354193280287== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via 868d2a1fff7d6c217bd860567a956f27d0851e78 (commit) via 8b1eb795ac5a6fe1d0d2fda5c70a4b251b1188f9 (commit) from 3ec5ba501ebe5a9579cbf4c78a6f4ee157f839ed (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 868d2a1fff7d6c217bd860567a956f27d0851e78 Author: Michael Tremer Date: Sat Oct 15 22:32:21 2016 +0100 unbound: Omit reverse PTRs if address equals GREEN =20 Signed-off-by: Michael Tremer commit 8b1eb795ac5a6fe1d0d2fda5c70a4b251b1188f9 Author: Michael Tremer Date: Sat Oct 15 22:32:05 2016 +0100 unbound-dhcp-bridge: Make leases unique by IP address =20 Signed-off-by: Michael Tremer ----------------------------------------------------------------------- Summary of changes: config/unbound/unbound-dhcp-leases-bridge | 2 +- src/initscripts/init.d/unbound | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) Difference in files: diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbou= nd-dhcp-leases-bridge index 4804dba..54cd813 100644 --- a/config/unbound/unbound-dhcp-leases-bridge +++ b/config/unbound/unbound-dhcp-leases-bridge @@ -222,7 +222,7 @@ class DHCPLeases(object): # exists in the list of known leases. If so replace # if with the most recent lease for i, l in enumerate(leases): - if l.hwaddr =3D=3D lease.hwaddr: + if l.ipaddr =3D=3D lease.ipaddr: leases[i] =3D max(lease, l) break =20 diff --git a/src/initscripts/init.d/unbound b/src/initscripts/init.d/unbound index 4c6b452..4e42477 100644 --- a/src/initscripts/init.d/unbound +++ b/src/initscripts/init.d/unbound @@ -138,6 +138,9 @@ update_hosts() { =20 unbound-control -q local_data "${fqdn} ${LOCAL_TTL} IN A ${address}" =20 + # Skip reverse resolution if the address equals the GREEN address + [ "${address}" =3D "${GREEN_ADDRESS}" ] && continue + # Add RDNS address=3D$(ip_address_revptr ${address}) unbound-control -q local_data "${address} ${LOCAL_TTL} IN PTR ${fqdn}" hooks/post-receive -- IPFire 2.x development tree --===============5270398354193280287==--