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
Hi,
I am trying to handle SRV type queries, such as
dig @127.0.0.1 -p 53 instance._service_type -t srv
I noticed that packet.js includes an [SRV description], but does not recognize Packet.TYPE.SRV. Thus, I added
SRV : 0x21,
to the Packet.TYPE definition, and now the server correctly decodes the query. However, something is wrong in the answer:
Samsung:Downloads micheleamoretti$ dig @127.0.0.1 -p 53 6gkzwgjz._iot._udp -t srv ;; Warning: Message parser reports malformed message packet.
; <<>> DiG 9.10.6 <<>> @127.0.0.1 -p 53 6gkzwgjz._iot._udp -t srv ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20964 ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: Message has 6 extra bytes at end
;; QUESTION SECTION: ;6gkzwgjz._iot._udp. IN SRV
;; Query time: 9 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Jun 25 14:55:53 CEST 2020 ;; MSG SIZE rcvd: 72
What is the cause of that WARNING?
My server code creates the response in this way:
response.header.qr = 1; response.header.ra = 1; response.additionals = []; if (domains[query]) { response.answers.push({ name: query, type: Packet.TYPE.SRV, class: Packet.CLASS.IN, ttl: 100, target: domains[query], port: 8080 }); }
The text was updated successfully, but these errors were encountered:
5a8b857
add SRV RR Type, and close #16
60bd2dd
e14c8b2
No branches or pull requests
Hi,
I am trying to handle SRV type queries, such as
dig @127.0.0.1 -p 53 instance._service_type -t srv
I noticed that packet.js includes an [SRV description], but does not recognize Packet.TYPE.SRV. Thus, I added
SRV : 0x21,
to the Packet.TYPE definition, and now the server correctly decodes the query. However, something is wrong in the answer:
Samsung:Downloads micheleamoretti$ dig @127.0.0.1 -p 53 6gkzwgjz._iot._udp -t srv
;; Warning: Message parser reports malformed message packet.
; <<>> DiG 9.10.6 <<>> @127.0.0.1 -p 53 6gkzwgjz._iot._udp -t srv
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20964
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: Message has 6 extra bytes at end
;; QUESTION SECTION:
;6gkzwgjz._iot._udp. IN SRV
;; Query time: 9 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun 25 14:55:53 CEST 2020
;; MSG SIZE rcvd: 72
What is the cause of that WARNING?
My server code creates the response in this way:
response.header.qr = 1;
response.header.ra = 1;
response.additionals = [];
if (domains[query])
{
response.answers.push({
name: query,
type: Packet.TYPE.SRV,
class: Packet.CLASS.IN,
ttl: 100,
target: domains[query],
port: 8080
});
}
The text was updated successfully, but these errors were encountered: