mirror of
https://github.com/abh/geodns.git
synced 2026-04-27 03:45:53 +03:00
[PR #49] [MERGED] Added support for SRV records, plus documentation and tests #110
Labels
No labels
bug
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/geodns#110
Loading…
Add table
Add a link
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?
📋 Pull Request Information
Original PR: https://github.com/abh/geodns/pull/49
Author: @afsheenb
Created: 1/8/2014
Status: ✅ Merged
Merged: 6/8/2014
Merged by: @abh
Base:
master← Head:add_srv_records📝 Commits (2)
cf13c1fAdded support for SRV records, plus documentation and tests8a95293removed sshfp type def, this is not the PR we're looking for📊 Changes
4 files changed (+48 additions, -0 deletions)
View changed files
📝
README.md(+12 -0)📝
dns/test.example.com.json(+1 -0)📝
serve_test.go(+7 -0)📝
zones.go(+28 -0)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.