Handle case of querying for root "." #4

开启中
coolaj862017-12-15 04:36:46 +00:00创建 · 1 评论
管理员
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`
作者
管理员

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 ```
登录 并参与到对话中。
未选择标签
未选择里程碑
未指派成员
1 名参与者
通知
到期时间
到期日期无效或超出范围。请使用 'yyyy-mm-dd' 格式。

未设置到期时间。

依赖工单

没有设置依赖项。

参考:coolaj86/digd.js#4
没有提供说明。