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

Added support for SRV records, plus documentation and tests #49

Merged
merged 2 commits into from
Jun 8, 2014
Merged

Added support for SRV records, plus documentation and tests #49

merged 2 commits into from
Jun 8, 2014

Conversation

afsheenb
Copy link

@afsheenb afsheenb commented Jan 8, 2014

I've added support for SRV records, as well as basic tests and documentation. The result looks good on my dev instance:

$ dig _sip._tcp.test.example.com -t SRV @localhost

; <<>> DiG 9.9.2-P1 <<>> _sip._tcp.test.example.com -t SRV @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50908
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;_sip._tcp.test.example.com. IN SRV

;; ANSWER SECTION:
_sip._tcp.test.example.com. 600 IN SRV 10 100 5060 sipserver.example.com.

Note: I've used the variable srv_weight to distinguish between the weight that's internal to the SRV record struct vs. the "weight" that other records use. Let me know if this should be changed.

@afsheenb afsheenb mentioned this pull request Jan 8, 2014
@@ -225,6 +225,8 @@ func setupZoneData(data map[string]interface{}, Zone *Zone) {
"ns": dns.TypeNS,
"txt": dns.TypeTXT,
"spf": dns.TypeSPF,
"sshfp": dns.TypeSSHFP,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sshfp support, too? That should be a different pull request :-)

@afsheenb
Copy link
Author

afsheenb commented Jan 8, 2014

Got it, I've removed that sshfp line now. [ I'm maybe working on that next, maybe. I guess that's no longer a surprise. :) ]

abh added a commit that referenced this pull request Jun 8, 2014
Added support for SRV records, plus documentation and tests
@abh abh merged commit b5f0b19 into abh:master Jun 8, 2014
@abh
Copy link
Owner

abh commented Jun 8, 2014

Very nice, thank you!

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