Skip to content

Add SRV DNS record support to http connections #9186

Closed

Description

@driquelme

Description

SRV records are DNS records that resolve to a hostname and a port. Being able to specify http connections with SRV resolution support is useful in contexts where external services are defined as SRV records.

Use case / motivation

One particular example applies to service discovery with dynamic port mapping. In this context, service discovery maps one or more hosts to a SRV record. When resolving that SRV record a client gets one or more hosts and ports to reach the desired service.
In my particular use case I am using AWS Service Discovery for ECS with dynamic port mapping. I would like to reach my ECS service transparently from Airflow without going thru a load balancer.

I would like to be able to specify an http connection with a SRV record and let Airflow resolve the actual hostname and port using SRV lookup.

Related Issues

#4481

I'll be happy to provide the implementation for this

Activity

  1. boring-cyborg commented on Jun 8, 2020

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template!

  2. mik-laj commented on Jun 9, 2020

    @mik-laj
    Member

    It makes sense. Support for service discovery in Airflow may be helpful in some use cases. I'd love to see implementations of this change if you plan to work on it.

  3. eladkal commented on Jun 12, 2021

    @eladkal
    Contributor

    @driquelme are you working on this feature?

  4. ggold7046 commented on Aug 1, 2023

    @ggold7046

    Hi @driquelme , I'm interested in this issue. Could you please guide me how to get started ?

  5. self-assigned this
    on Feb 16, 2025
  6. rawwar commented on Feb 16, 2025

    @rawwar
    Contributor

    @ggold7046 , I picked this up.

    please do look into contribution guide , Connections. If you think, you can work on it and are still interested in picking this up, let me know. I'll reassign it to you.

    EDIT @AstroSucheta will pick this

  7. ggold7046 commented on Feb 16, 2025

    @ggold7046

    It's all yours @rawwar. Please carry on.

  8. removed their assignment
    on Mar 10, 2025
  9. AstroSucheta commented on Mar 10, 2025

    @AstroSucheta

    Working on this.

  10. AstroSucheta commented on Mar 17, 2025

    @AstroSucheta

    @driquelme since the SRV DNS record can have multiple values and will be picked based on priority and weight, I intend to iterate over the list of servers responded by DNS resolver (based on priority and weight) and pick the one which responds first.

  11. added a commit that references this issue on Apr 1, 2025
  12. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @AstroSucheta We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

  13. gtxu commented on Aug 2, 2026

    @gtxu
    Contributor

    @potiuk Hi, I would like to pick up this feature. Drafted a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions