Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2010-11-16 23:50:24 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-22 07:53:57 +0300
commit611dffabb6b6b88f7a1f4ca259d19a42f0e8359c (patch)
tree4bd7123ff1f709e9287463848b819e2722666c38 /test
parent6aa92d5289996780834ebd5e9317718b3e55408c (diff)
Support CNAME lookups in DNS module.
Diffstat (limited to 'test')
-rw-r--r--test/disabled/test-dns.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/disabled/test-dns.js b/test/disabled/test-dns.js
index c5c2795781e..1599a17dbab 100644
--- a/test/disabled/test-dns.js
+++ b/test/disabled/test-dns.js
@@ -38,6 +38,16 @@ while (i--) {
}
}
+// CNAME should resolve
+dns.resolve('labs.nrcmedia.nl', 'CNAME', function(err, result) {
+ assert.deepEqual(result, ['nrcmedia.nl']);
+});
+
+// CNAME should not resolve
+dns.resolve('nrcmedia.nl', 'CNAME', function(err, result) {
+ assert.ok(err.errno, dns.NODATA);
+});
+
function checkDnsRecord(host, record) {
var myHost = host,
myRecord = record;