Correct handling of NULL SRV records in Cloudflare Provider (possibly elsewhere)
See original GitHub issueTry into to sync the following entry from the YamlProvider to the Cloudflare provider
_pop3._tcp:
octodns:
cloudflare:
proxied: false
type: SRV
value:
port: 0
priority: 0
target: .
weight: 0
Relevant part of trace here:
2020-12-05T23:01:56 [3074897664] DEBUG CloudflareProvider[cloudflare] _request: method=POST, path=/zones/f6c330b6c72b895026886d48e30ee7ec/dns_records
2020-12-05T23:01:56 [3074897664] DEBUG urllib3.connectionpool https://api.cloudflare.com:443 "POST /client/v4/zones/f6c330b6c72b895026886d48e30ee7ec/dns_records HTTP/1.1" 400 None
2020-12-05T23:01:56 [3074897664] DEBUG CloudflareProvider[cloudflare] _request: status=400
2020-12-05T23:01:56 [3074897664] DEBUG CloudflareProvider[cloudflare] _request: data={'data': {'service': '_pop3', 'proto': '_tcp', 'name': 'ucc.gu.uwa.edu.au.', 'priority': 0, 'weight': 0, 'port': 0, 'target': ''}, 'name': '_pop3._tcp.ucc.gu.uwa.edu.au', 'type': 'SRV', 'ttl': 3600}
Traceback (most recent call last):
File "/home/wheel/mtearle/hack/mooneye/octodns/env/bin/octodns-sync", line 11, in <module>
load_entry_point('octodns==0.9.11', 'console_scripts', 'octodns-sync')()
File "/home/wheel/mtearle/hack/mooneye/octodns/env/lib/python3.9/site-packages/octodns-0.9.11-py3.9.egg/octodns/cmds/sync.py", line 38, in main
File "/home/wheel/mtearle/hack/mooneye/octodns/env/lib/python3.9/site-packages/octodns-0.9.11-py3.9.egg/octodns/manager.py", line 418, in sync
File "/home/wheel/mtearle/hack/mooneye/octodns/env/lib/python3.9/site-packages/octodns-0.9.11-py3.9.egg/octodns/provider/base.py", line 95, in apply
File "/home/wheel/mtearle/hack/mooneye/octodns/env/lib/python3.9/site-packages/octodns-0.9.11-py3.9.egg/octodns/provider/cloudflare.py", line 675, in _apply
File "/home/wheel/mtearle/hack/mooneye/octodns/env/lib/python3.9/site-packages/octodns-0.9.11-py3.9.egg/octodns/provider/cloudflare.py", line 527, in _apply_Create
File "/home/wheel/mtearle/hack/mooneye/octodns/env/lib/python3.9/site-packages/octodns-0.9.11-py3.9.egg/octodns/provider/cloudflare.py", line 118, in _try_request
File "/home/wheel/mtearle/hack/mooneye/octodns/env/lib/python3.9/site-packages/octodns-0.9.11-py3.9.egg/octodns/provider/cloudflare.py", line 137, in _request
octodns.provider.cloudflare.CloudflareError: DNS Validation Error
"octodns-sync --config=$OCTODIR/config/ucc-to-cloudflare.yaml $EXTRA_ARGS --doit" command failed with exit code 1.
On previous runs, it had failed with the error: Invalid SRV target. Target must be a hostname
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (19 by maintainers)
Top Results From Across the Web
Cloudflare - SRV DNS records · Issue #5732 - GitHub
I'm trying to add SRV record but there is an error with cloudflare ... to create SRV records via cloudflare provider with Terraform...
Read more >Error (maybe 'by design'?) in creating SRV records
Hi, I'm trying to create an SRV record for _openpgpkey._tcp.example.com (domain name changed) which will point to my target port of 443 on...
Read more >Cloudflare API v4 Documentation
These applications may include plugins and extensions to popular content management systems, apps that are offered in the Cloudflare Apps marketplace, ...
Read more >What is SNI? How TLS server name indication works
SNI, or Server Name Indication, is an extension for the TLS protocol to indicate a hostname in the TLS handshake. Learn more about...
Read more >DNS A record | Cloudflare
DNS A records contain the IP address of a domain, specifically the IPv4 address. Learn more about A records, how they work, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi guys, sorry for not responding sooner. EasyDNS does support this and the API correctly handles a record such as:
_pop3._tcp: type: SRV value: port: 0 priority: 0 target: . weight: 0
Thanks Adam ( @yzguy )
Yes, I was doing round trip tests. Thanks for testing this for me.