You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: SPEC/MISCELLANEOUS.md
+7-2
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,14 @@ A great source of [examples](https://github.com/ipfs/interface-ipfs-core/blob/ma
59
59
60
60
> Resolve DNS links
61
61
62
-
##### `ipfs.dns(domain, [callback])`
62
+
##### `ipfs.dns(domain, [options], [callback])`
63
63
64
-
`callback` must follow `function (err, path) {}` signature, where `err` is an error if the operation was not successful. `path` is the IPFS path for that domain.
64
+
Where:
65
+
66
+
-`options` is an optional object argument that might include the following properties:
67
+
-`recursive` (boolean, default true): resolve until result is not a domain name
68
+
69
+
-`callback` must follow `function (err, path) {}` signature, where `err` is an error if the operation was not successful. `path` is the IPFS path for that domain.
65
70
66
71
If no `callback` is passed, a promise is returned.
0 commit comments