Resolve unqualified domains in the weave.local domain.
This commit is contained in:
1 parent
8b061fd555
commit
361ed1b4a6
3 files changed
+28
-17
No files matched your search
@@ -18,12 +18,12 @@ start_container_with_dns $HOST1 $C2/24 --name=c2 -h seetwo.$DOMAIN
|
||||
start_container_with_dns $HOST1 $C3/24 --name=c3 --dns-search=$DOMAIN
|
||||
container=$(start_container_with_dns $HOST1 $C4/24)
|
||||
|
||||
check() {
|
||||
assert "exec_on $HOST1 $1 getent hosts seeone | tr -s ' '" "$C1 $NAME"
|
||||
}
|
||||
assert_dns_a_record $HOST1 c2 seeone $C1 $NAME
|
||||
assert_dns_a_record $HOST1 c3 seeone $C1 $NAME
|
||||
assert_dns_a_record $HOST1 "$container" seeone $C1 $NAME
|
||||
|
||||
check c2
|
||||
check c3
|
||||
check "$container"
|
||||
# check that unqualified names are automatically qualified for broken resolvers
|
||||
weave_on $HOST1 dns-add $C1 c1 -h mysql.weave.local
|
||||
assert_dns_a_record $HOST1 c1 mysql $C1
|
||||
|
||||
end_suite
|
||||
Reference in new issue
Block a user