You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add SRV DNS record support to http connections #9186
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.
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.
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.
@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.
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.
Activity
boring-cyborg commentedon Jun 8, 2020
Thanks for opening your first issue here! Be sure to follow the issue template!
mik-laj commentedon Jun 9, 2020
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.
eladkal commentedon Jun 12, 2021
@driquelme are you working on this feature?
ggold7046 commentedon Aug 1, 2023
Hi @driquelme , I'm interested in this issue. Could you please guide me how to get started ?
rawwar commentedon Feb 16, 2025
@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
ggold7046 commentedon Feb 16, 2025
It's all yours @rawwar. Please carry on.
AstroSucheta commentedon Mar 10, 2025
Working on this.
AstroSucheta commentedon Mar 17, 2025
@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.
apacheGH-9186
potiuk commentedon Mar 2, 2026
@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.
gtxu commentedon Aug 2, 2026
@potiuk Hi, I would like to pick up this feature. Drafted a PR.