Handle case of querying for root "." #4

Otwarty
otworzone 2017-12-15 04:36:46 +00:00 przez coolaj86 · 1 comment
Właściciel
dig +trace coolaj86.com @ns1.coolaj86.com

It turns out that that queries ".", which is an empty string in the packet, which throws an error (but shouldn't).

This is really a dns-suite.js issue, but I'll file it hear for now since I'm better at tracking these issues.

However, I think what should be returned is not an empty array but rather an NXDOMAIN

```bash dig +trace coolaj86.com @ns1.coolaj86.com ``` It turns out that that queries ".", which is an empty string in the packet, which throws an error (but shouldn't). This is really a `dns-suite.js` issue, but I'll file it hear for now since I'm better at tracking these issues. However, I think what should be returned is not an empty array but rather an `NXDOMAIN`
Author
Właściciel

Partial fix in digd.js#v1.2.2, dig.js#v1.3.8, and dns-suite.js#v1.2.11 - no longer causes a crash (though I'm not sure if the exactly correct response is returned)

dig.js '' @ns1.coolaj86.com
Partial fix in `digd.js#v1.2.2`, `dig.js#v1.3.8`, and `dns-suite.js#v1.2.11` - no longer causes a crash (though I'm not sure if the exactly correct response is returned) ``` dig.js '' @ns1.coolaj86.com ```
Zaloguj się, aby dołączyć do tej rozmowy.
Brak etykiety
Brak kamienia milowego
Brak przypisanych
Uczestnicy 1
Powiadomienia
Termin realizacji
Data realizacji jest niewłaściwa lub spoza zakresu. Użyj formatu 'yyyy-mm-dd'.

Brak ustawionego terminu realizacji.

Zależności

No dependencies set.

Reference: coolaj86/digd.js#4
No description provided.