This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1358 from weaveworks/1357-dns-reverse-tombstone
Make reverse dns lookups honor tombstones.
- Loading branch information
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#! /bin/bash | ||
|
||
. ./config.sh | ||
|
||
IP=10.2.0.67 | ||
|
||
start_suite "Reverse DNS test" | ||
|
||
weave_on $HOST1 launch | ||
start_container_with_dns $HOST1 --name=c1 | ||
|
||
# We try names in alphabetical order; this is because the | ||
# nameserver keeps entries sorted by hostname then address, | ||
# so by starting with acontainer then trying bcontainer, | ||
# we're guaranteed to have to ignore a tombstone to get the | ||
# right result. | ||
for name in acontainer bcontainer ccontainer; do | ||
start_container $HOST1 $IP/24 --name=$name | ||
assert_dns_record $HOST1 c1 $name.weave.local $IP | ||
rm_containers $HOST1 $name | ||
done | ||
|
||
end_suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters