-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Autogenerated monitor name can fail NS1 validations if domains are too long #84
Comments
Interesting. Will poke around. First thought is if < 64 chars, it'd hash the value and then truncate things enough to stick the hash on the end, but with so little content it might not reliable hash. Second thought would be to truncate and use some sort of index that won't change, but I don't recall off-hand if such a thing exists where it'd be needed or if it would be consistent. Failing that I'll look into a way to specify a prefix or something to that effect so that you could take |
Looks like you're running into a name limit on the notify list, you might try using a shared notify list, ns1:
class: octodns_ns1.Ns1Provider
api_key: env/NS1_API_KEY
shared_notifylist: true That'll pick a shared/single notifylist here octodns-ns1/octodns_ns1/__init__.py Lines 1136 to 1140 in 7e215dc
Which is https://github.com/octodns/octodns-ns1/blob/main/octodns_ns1/__init__.py#L328 We didn't use that at GitHub, tbh not sure why, maybe just created before that was a thing. My personal/testing setup for octoDNS does have it enabled. Unless you otherwise go in and add actual notification settings to the notify lists they're not going to be doing anything anyway, just a required bit of NS1's setup. Anyway, you may run into further name length limits elsewhere, but that should get you past the initial one at least and as far as I can remember there's no downside to using them shared one. You can also run a sync with |
Hello there,
We are using octodns-ns1 version 0.0.7 and we are facing some issues. We are using a dynamic record to setup GeoDNS as explained here however, our domain names are pretty long and when the monitors are being created we get an error back from NS1.
It would be great if either the monitor name can be supplied by us in the config or trimmed to 64 characters before making the API call to NS1.
Our dynamic record file looks like this:
And the error we get is:
The text was updated successfully, but these errors were encountered: