Skip to content

Commit caf72d0

Browse files
committed
Fix dnssec_return_only_secure mention in readme; it's an extension
1 parent 8584b87 commit caf72d0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ var options = {
7676
],
7777
// Request timeout time in milliseconds.
7878
timeout: 1000,
79-
// NOTE: optionally enforce DNSSEC security validation.
80-
//dnssec_return_only_secure: true,
8179
// Always return DNSSEC status.
8280
return_dnssec_status: true
8381
};
@@ -102,9 +100,15 @@ var callback = function(err, result) {
102100
context.destroy();
103101
};
104102

103+
// NOTE: the extensions parameter is optional.
104+
var extensions = {
105+
// NOTE: enforce DNSSEC security validation and return only secure replies.
106+
//dnssec_return_only_secure: true,
107+
};
108+
105109
// Simple domain name-to-ip address lookup.
106110
// Always returns both IPv4 and IPv6 results, if available.
107-
var transactionId = context.address("wikipedia.org", callback);
111+
var transactionId = context.address("wikipedia.org", extensions, callback);
108112
```
109113

110114

0 commit comments

Comments
 (0)