diff options
author | Daniel Turing <mail@danielturing.com> | 2016-02-08 10:57:24 +0100 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2016-02-08 17:30:38 +0100 |
commit | dbdbdd4998e163deecefbb1d34cda84f749844a4 (patch) | |
tree | 3a5156f8797323f342e82f627a579a7362e852ab /test/parallel/test-c-ares.js | |
parent | c4ab861a494eea9c18698fbf955025ca265b0b92 (diff) | |
download | android-node-v8-dbdbdd4998e163deecefbb1d34cda84f749844a4.tar.gz android-node-v8-dbdbdd4998e163deecefbb1d34cda84f749844a4.tar.bz2 android-node-v8-dbdbdd4998e163deecefbb1d34cda84f749844a4.zip |
dns: add resolvePtr to query plain DNS PTR records
Resolving plain PTR records is used beyond reverse DNS, most
prominently with DNS-SD (RFC6763). This adds dns.resolvePtr(),
and uses it (instead of dns.reverse()) in dns.resolve().
PR-URL: https://github.com/nodejs/node/pull/4921
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Brian White <mscdex@mscdex.net>
Diffstat (limited to 'test/parallel/test-c-ares.js')
-rw-r--r-- | test/parallel/test-c-ares.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-c-ares.js b/test/parallel/test-c-ares.js index b7802881f8..8c2178ead6 100644 --- a/test/parallel/test-c-ares.js +++ b/test/parallel/test-c-ares.js @@ -31,7 +31,7 @@ assert.throws(function() { // C:\Windows\System32\drivers\etc\hosts // so we disable this test on Windows. if (!common.isWindows) { - dns.resolve('127.0.0.1', 'PTR', function(error, domains) { + dns.reverse('127.0.0.1', function(error, domains) { if (error) throw error; assert.ok(Array.isArray(domains)); }); |