Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve hostnames in the SRV tuple #5

Merged
merged 2 commits into from
Jan 31, 2018
Merged

Conversation

optiz0r
Copy link
Contributor

@optiz0r optiz0r commented May 4, 2017

When the SRV records refer to TLS-protected services, always knowing
the name of the service (as present in the SRV RR) is important so as to
properly verify the connection.
This commit modifies the tuple structure to add a hostname field (in
addition to the host field) which contains the original hostname from
the RR.

Where the name to IP mapping fails (perhaps because the name isn't
resolvable), the SRV tuple will contain the same value in both the host
and hostname fields).

The hostname field is added to the end of the tuple to minimise backward
compatibility issues.

Fixes #4

When the SRV records refer to TLS-protected services, always knowing
the name of the service (as present in the SRV RR) is important so as to
properly verify the connection.
This commit modifies the tuple structure to add a hostname field (in
addition to the host field) which contains the original hostname from
the RR.

Where the name to IP mapping fails (perhaps because the name isn't
resolvable), the SRV tuple will contain the same value in both the host
and hostname fields).

The hostname field is added to the end of the tuple to minimise backward
compatibility issues.
@grepsr
Copy link

grepsr commented May 5, 2017

+1, please merge and push this

@optiz0r
Copy link
Contributor Author

optiz0r commented May 5, 2017

Foolishly I didn't check the tests. I will take a look at getting them to pass tonight.

@gmr gmr merged commit 164fffd into gmr:master Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants