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

OVH issue with GET SRV records #832

Closed
hawaii6 opened this issue Jan 4, 2022 · 5 comments · Fixed by octodns/octodns-ovh#1
Closed

OVH issue with GET SRV records #832

hawaii6 opened this issue Jan 4, 2022 · 5 comments · Fixed by octodns/octodns-ovh#1

Comments

@hawaii6
Copy link

hawaii6 commented Jan 4, 2022

I noticed, that when octodns pulling zone from OVH it adds second dot to every srv records. Next to that I have problem with pushing configuration to another provider.

Example: some config from zone file

_autodiscover._tcp:
  ttl: 0
  type: SRV
  value:
    port: 443
    priority: 0
    target: mailconfig.ovh.net.
    weight: 0

output from octodns-sync:

********************************************************************************
* hidden.pl.
********************************************************************************
* config (YamlProvider)
*   Create Zone<hidden.pl.>
*   Create <ARecord A 0, hidden.pl., ['5.6.7.8']> (ovh)
*   Create <MxRecord MX 0, hidden.pl., [''1 mx4.mail.ovh.net.'', ''10 mx3.mail.ovh.net.'']> (ovh)
*   Create <TxtRecord TXT 0, hidden.pl., ['1|www.hidden.pl']> (ovh)
*   Create <SrvRecord SRV 0, _autodiscover._tcp.hidden.pl., [''0 0 443 mailconfig.ovh.net..'']> (ovh)
*   Create <SrvRecord SRV 0, _imaps._tcp.hidden.pl., [''0 0 993 ssl0.ovh.net..'']> (ovh)
*   Create <SrvRecord SRV 0, _submission._tcp.hidden.pl., [''0 0 465 ssl0.ovh.net..'']> (ovh)
*   Create <CnameRecord CNAME 0, autoconfig.hidden.pl., mailconfig.ovh.net.> (ovh)
*   Create <CnameRecord CNAME 0, autodiscover.hidden.pl., mailconfig.ovh.net.> (ovh)
*   Create <CnameRecord CNAME 0, ftp.hidden.pl., hidden.pl.> (ovh)
*   Create <ARecord A 0, test.hidden.pl., ['1.2.3.4']> (ovh)
*   Create <ARecord A 0, www.hidden.pl., ['5.6.7.8']> (ovh)
*   Create <TxtRecord TXT 0, www.hidden.pl., ['3|welcome']> (ovh)
*   Summary: Creates=12, Updates=0, Deletes=0, Existing Records=0
********************************************************************************

OVH API returns value alright:

method GET from value `/domain/zone/hidden.pl/record/5214708123` 
{
  "ttl": 0,
  "subDomain": "_submission._tcp",
  "zone": "hidden.pl",
  "fieldType": "SRV",
  "target": "0 0 465 ssl0.ovh.net.",
  "id": 5214708123
}
@ross
Copy link
Contributor

ross commented Jan 5, 2022

Looks like there's a . being added in

'target': f'{target}.',
, but I don't see that happening for other record types that normally end in . so my guess is that's the culprit. I don't have access to OVH so I can't make the change and test it.

@hawaii6
Copy link
Author

hawaii6 commented Jan 5, 2022

bingo...without dot at line 199 works fine. Tests it on my few domains. Thanks for fast reply

@ross
Copy link
Contributor

ross commented Jan 5, 2022

bingo...without dot at line 199 works fine. Tests it on my few domains. Thanks for fast reply

Cool. You want to PR the change?

@istr
Copy link

istr commented Jan 13, 2022

I am willing to provide a PR for this (trivial) change against octodns-ovh, once the split is done.
See #852.
Maybe I can cater for the 3.10 issue there, too.

@pierregeekme
Copy link

Hello,

thank you for PR. In CI, step CI Build is failed.
Only version 0.0.1 is available and it contains '{target}.'
Do you have the possibility to restart the CI?

Thank you in advance.

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 a pull request may close this issue.

4 participants