Open nickrisaro opened 4 months ago
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 some-really-really-very-long-and verbose-thing-<...>
and tell it to be srrvlvt-<...>
or similar.
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
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 --debug
to get more verbose debug logging. That can be super helpful for me to figure out what's happening since I don't have your exact data/setup.
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: