public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <20161015213521.184B41078E81@git01.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2628 bytes --]

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 <michael.tremer(a)ipfire.org>
Date:   Sat Oct 15 22:32:21 2016 +0100

    unbound: Omit reverse PTRs if address equals GREEN
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

commit 8b1eb795ac5a6fe1d0d2fda5c70a4b251b1188f9
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Sat Oct 15 22:32:05 2016 +0100

    unbound-dhcp-bridge: Make leases unique by IP address
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

-----------------------------------------------------------------------

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/unbound-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 == lease.hwaddr:
+					if l.ipaddr == lease.ipaddr:
 						leases[i] = max(lease, l)
 						break
 
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() {
 
 		unbound-control -q local_data "${fqdn} ${LOCAL_TTL} IN A ${address}"
 
+		# Skip reverse resolution if the address equals the GREEN address
+		[ "${address}" = "${GREEN_ADDRESS}" ] && continue
+
 		# Add RDNS
 		address=$(ip_address_revptr ${address})
 		unbound-control -q local_data "${address} ${LOCAL_TTL} IN PTR ${fqdn}"


hooks/post-receive
--
IPFire 2.x development tree

                 reply	other threads:[~2016-10-15 21:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161015213521.184B41078E81@git01.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox