We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Posted on behalf of André Moura.
I use net-dns to resolve the entry SRV, like this:
require "net/dns/resolver" require "net/dns/rr/srv" domain = "_service._tcp.domain.com" res = Net::DNS::Resolver.start(domain, "SRV")
outuput this script:
;; Answer received from 127.0.0.1:53 (141 bytes) ;; ;; HEADER SECTION ;; id = 56866 ;; qr = 1 opCode: QUERY aa = 0 tc = 0 rd = 1 ;; ra = 1 ad = 0 cd = 0 rcode = NoError ;; qdCount = 1 anCount = 1 nsCount = 3 arCount = 0 ;; QUESTION SECTION (1 record): ;; _service._tcp.domain.com. IN SRV ;; ANSWER SECTION (1 record): _service._tcp.domain.com. 2360 IN SRV ;; AUTHORITY SECTION (3 records): domain.com. 56924 IN NS ns2.domain.com. domain.com. 56924 IN NS ns3.domain.com. domain.com. 56924 IN NS ns1.domain.com.
But answer section not display the correct values as the dig:
command: dig srv _service._tcp.domain.com outuput: ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> srv _service._tcp.domain.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22017 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0 ;; QUESTION SECTION: ;_service._tcp.domain.com. IN SRV ;; ANSWER SECTION: _service._tcp.domain.com. 2564 IN SRV 0 0 80 canonicalname.domain.com ;; AUTHORITY SECTION: domain.com. 57128 IN NS ns3.domain.com. domain.com. 57128 IN NS ns1.domain.com. domain.com. 57128 IN NS ns2.domain.com. ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Mar 9 15:47:17 2010 ;; MSG SIZE rcvd: 141
The text was updated successfully, but these errors were encountered:
corrected: http://github.com/andrem/net-dns
Sorry, something went wrong.
No branches or pull requests
Posted on behalf of André Moura.
I use net-dns to resolve the entry SRV, like this:
outuput this script:
But answer section not display the correct values as the dig:
The text was updated successfully, but these errors were encountered: