vercel / dns-cached-resolve

Caching DNS resolver
Apache License 2.0
42 stars 9 forks source link

Handle CNAME records pointing nowhere #22

Closed OlliV closed 5 years ago

OlliV commented 5 years ago

If a DNS name resolves to a CNAME that points to a non-existing name then resolve() will return an empty array instead of throwing an error. We should handle this by throwing a proper error.