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

Support SRV records #12

Merged
merged 4 commits into from
Jul 3, 2014
Merged

Support SRV records #12

merged 4 commits into from
Jul 3, 2014

Conversation

orls
Copy link
Contributor

@orls orls commented Jul 3, 2014

As defined in RFC2782


Example:

Declaring that service 'myservice' is available on port 8080 of node1.myservice.orls.net:

curl http://127.0.0.1:4001/v2/keys/net/orls/_tcp/_myservice/.SRV/whatever1 -XPUT -d value="100\t100\t8080\tnode1.myservice.orls.net"

Would allow the following:

$ dig @localhost _myservice._tcp.orls.net. SRV +short
100 100 8080 node1.myservice.orls.net.

@tarnfeld
Copy link
Contributor

tarnfeld commented Jul 3, 2014

Would you be able to rebase the changes to get rid of the merge commit?

@tarnfeld
Copy link
Contributor

tarnfeld commented Jul 3, 2014

LGTM! Do you think we could also add a test for an malformed record?

Owen Smith added 3 commits July 3, 2014 14:37
According to the RFC(https://www.ietf.org/rfc/rfc2782.txt), empty targets are legitimate and have meaning:

"A Target of "." means that the service is decidedly not
available at this domain."
@orls
Copy link
Contributor Author

orls commented Jul 3, 2014

Rebased; will add an extra test or two in a bit

@tarnfeld
Copy link
Contributor

tarnfeld commented Jul 3, 2014

LGTM! Nice one.

tarnfeld added a commit that referenced this pull request Jul 3, 2014
@tarnfeld tarnfeld merged commit 4887424 into master Jul 3, 2014
@tarnfeld tarnfeld deleted the feature/srv-records branch July 3, 2014 18:53
@orls orls mentioned this pull request Jul 17, 2014
1 task
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.

2 participants