Closed sijanec closed 4 years ago
Yes, this seems wrong. The same happens when I test it.
I tested with IPv6 which gave a hint:
dig ovca.ml -t NS @::1
; <<>> DiG 9.11.20-RedHat-9.11.20-1.fc32 <<>> ovca.ml -t NS @::1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36116
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;ovca.ml. IN NS
;; ANSWER SECTION:
ovca.ml. 3600 IN NS ns.ovca.ml.
;; ADDITIONAL SECTION:
ns.ovca.ml. 3600 IN A 10.0.0.0
;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Thu Jul 23 21:10:41 CEST 2020
;; MSG SIZE rcvd: 58
2 = AF_INET
and 10 = AF_INET6
on Linux.
The code encoding the reply in src/dns.c was not updated after q->destination changed its type to struct sockaddr_storage. Submitting fix.
Thanks for the bug report!
Hello!
I launched iodined like this:
and then issued a dig command like this:
As far as I understand, instead of 2.0.0.0, the iodined dns server should respond with MYIPADDRESS. What's wrong and is this a bug?