Support dialing hostnames #4
Labels
No labels
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/multinet#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently only IPs are supported.
This case is tricky: Go does a little magic when a hostname resolves to multiple IPs. Let's see what we can support here.
Safe (albeit slower) scenario: resolve hostname to pick local addr, then pass the same hostname to
net.Dial
.Don't forget about the case when hostname resolves to both IPv4 and IPv6