Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Make reverse dns lookups honor tombstones. #1358

Merged
merged 2 commits into from
Aug 27, 2015

Conversation

tomwilkie
Copy link
Contributor

Fixes #1357

@tomwilkie tomwilkie self-assigned this Aug 25, 2015
@@ -121,7 +121,7 @@ func (n *Nameserver) ReverseLookup(ip address.Address) (string, error) {
defer n.RUnlock()

match, err := n.entries.first(func(e *Entry) bool {
return e.Addr == ip
return e.Tombstone > 0 && e.Addr == ip

This comment was marked as abuse.

@rade
Copy link
Member

rade commented Aug 25, 2015

Smoke test?

@tomwilkie
Copy link
Contributor Author

Still assigned to me; was just writing the test...

@tomwilkie tomwilkie removed their assignment Aug 25, 2015
@tomwilkie
Copy link
Contributor Author

@rade @inercia @bboreham could you take a look at this please?

@tomwilkie
Copy link
Contributor Author

I've confirmed without the fix the test fails.


for name in bar bar black sheep have you any wool; do
start_container $HOST1 $IP/24 --name=$name
assert "exec_on $HOST1 c1 dig +short -x $IP" $name.weave.local.

This comment was marked as abuse.

@tomwilkie
Copy link
Contributor Author

Failures are unrelated, see #1360

@inercia inercia self-assigned this Aug 25, 2015
@inercia
Copy link
Contributor

inercia commented Aug 25, 2015

LGTM

@inercia inercia assigned tomwilkie and unassigned inercia Aug 25, 2015
@tomwilkie tomwilkie removed their assignment Aug 26, 2015
tomwilkie added a commit that referenced this pull request Aug 27, 2015
Make reverse dns lookups honor tombstones.
@tomwilkie tomwilkie merged commit 42b64f8 into master Aug 27, 2015
@tomwilkie tomwilkie deleted the 1357-dns-reverse-tombstone branch August 27, 2015 13:25
@rade rade modified the milestone: 1.1.0 Aug 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants