Skip to content

Commit e96d9f1

Browse files
docs(IDnsApi): improve
1 parent 81034e0 commit e96d9f1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/CoreApi/IDnsApi.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ public interface IDnsApi
3434
/// the resolved IPFS path as a <see cref="string"/>, such as
3535
/// <c>/ipfs/QmYNQJoKGNHTpPxCBPh9KkDpaExgd2duMa3aF6ytMpHdao</c>.
3636
/// </returns>
37+
/// <remarks>
38+
/// A DNS TXT record with a "dnslink=..." entry is expected to exist. The
39+
/// value of the "dnslink" is an IPFS path to another IPFS object.
40+
/// <para>
41+
/// A DNS query is generated for both <paramref name="name"/> and
42+
/// _dnslink.<paramref name="name"/>.
43+
/// </para>
44+
/// </remarks>
45+
/// <example>
46+
/// <c>ResolveAsync("ipfs.io", recursive: false)</c> produces "/ipns/website.ipfs.io". Whereas,
47+
/// <c>ResolveAsync("ipfs.io", recursive: true)</c> produces "/ipfs/QmXZz6vQTMiu6UyGxVgpLB6xJdHvvUbhdWagJQNnxXAjpn".
48+
/// </example>
3749
Task<string> ResolveAsync(
3850
string name,
3951
bool recursive = false,

0 commit comments

Comments
 (0)