Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #246, #249, #253 #254

Merged
merged 1 commit into from
Jan 26, 2016

Conversation

elnappo
Copy link
Member

@elnappo elnappo commented Jan 11, 2016

except DnsUpdateError and use a random IP in check_domain() to prevent SameIPError.

# delete on primary
delete(fqdn)
# add host connectivity-test.<domain> with a random IP. See add()
add(fqdn, socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff))))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be even 0, 0xffffffff as the ip does not really matter.

@@ -23,6 +23,8 @@ zone nsupdate.info {
deny nsupdate.info. name www.nsupdate.info;
deny nsupdate.info. name ipv4.nsupdate.info;
deny nsupdate.info. name ipv6.nsupdate.info;
// this host is for testing if this domain is configured correctly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// this host is for testing if the nameserver is configured correctly and reachable

… DnsUpdateError and use random IP in check_domain().

The delete() was removed because after an add() the nameserver need time to process the nsupdate query. This leads to an NXDOMAIN response on current ip check in delete() thus the delete() call fails.
ThomasWaldmann added a commit that referenced this pull request Jan 26, 2016
@ThomasWaldmann ThomasWaldmann merged commit d3451be into nsupdate-info:master Jan 26, 2016
@elnappo elnappo deleted the check_domain_fixes branch September 5, 2016 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants