File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,6 @@ var options = {
76
76
],
77
77
// Request timeout time in milliseconds.
78
78
timeout: 1000 ,
79
- // NOTE: optionally enforce DNSSEC security validation.
80
- // dnssec_return_only_secure: true,
81
79
// Always return DNSSEC status.
82
80
return_dnssec_status: true
83
81
};
@@ -102,9 +100,15 @@ var callback = function(err, result) {
102
100
context .destroy ();
103
101
};
104
102
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
+
105
109
// Simple domain name-to-ip address lookup.
106
110
// 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);
108
112
```
109
113
110
114
You can’t perform that action at this time.
0 commit comments