question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Domain DNS can't create SRV record with protocols xmpp, tls, smtp

See original GitHub issue
_domain_name = 'example.com'
client = LinodeClient(some_token)
_domains = _client.domains(Domain.domain == _domain_name)
_domain =  client.domains(Domain.domain == _domain_name).first() if _domains else None

if _domain:

    _service_data = {
        "name": "_sip._tls",
        "port": 443,
        "priority": 100,
        "protocol": "tls",
        "service": "sip",
        "tag": null,
        "target": "sipdir.online.lync.com",
        "ttl_sec": 3600,
        "weight": 1
    }

    try:
        _result = _domain.record_create('SRV', **_service_data)
    except Exeption as ex:
        print(ex)

Outputs: "400: Please select a valid protocol ('udp', 'tcp');"

The cloud manager SRV record editor has the following protocols in the the Protocol dropdown list:

tcp, udp, xmpp, tls, smtp

cloud linode-edit-service-record

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pjcunninghamcommented, Jan 29, 2020

Yes, this is now working.

Cheers, Paul.

0reactions
Dorthucommented, Jan 27, 2020

This should be fixed upstream now. Please let me know if this is now working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Will SRV records ever become useful? - Server Fault
I think you'll only see it used for new protocols. The MX records that SMTP uses are equivalent to SRV records with a...
Read more >
What is a DNS SRV record? - Cloudflare
A DNS SRV record specifies a port within a server for certain services. Learn how SRV records are configured, and why some services...
Read more >
SRV Records - XMPP WIKI
A Service record (SRV record) is a specification of data in the Domain Name System (DNS) defining the location (i.e. the hostname and...
Read more >
DNS configuration in Jabber/XMPP - Prosody IM
SRV records. SRV records essentially allow transparent DNS-level redirects of XMPP services to another domain or port. A simple example is when you...
Read more >
RFC 6186 - Use of SRV Records for Locating Email ...
Use of SRV Records for Locating Email Submission/Access Services (RFC ... [RFC5321] specifies how to use DNS MX RRs to locate SMTP services...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found