From 43d2eb55ed8a00a97e806f42ee2f3fdb6a109839 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Fri, 27 Feb 2009 04:37:44 -0500 Subject: [PATCH 1/1] fix a comment svn path=/trunk/packages/invirt-dns/; revision=2207 --- invirt-dns | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invirt-dns b/invirt-dns index 9bc051f..32b18c2 100755 --- a/invirt-dns +++ b/invirt-dns @@ -63,15 +63,15 @@ class DatabaseAuthority(common.ResolverBase): if name in self.domains: domain = name else: - # Look for the longest-matching domain. (This works because domain - # will remain bound after breaking out of the loop.) + # Look for the longest-matching domain. best_domain = '' for domain in self.domains: if name.endswith('.'+domain) and len(domain) > len(best_domain): best_domain = domain if best_domain == '': if name.endswith('.in-addr.arpa'): - best_domain = name # Act authoritative for the IP address for reverse resolution requests + # Act authoritative for the IP address for reverse resolution requests + best_domain = name else: return defer.fail(failure.Failure(dns.DomainError(name))) domain = best_domain -- 1.7.9.5