Skip to content

Commit

Permalink
Merge branch 'bmk/kernel/20230921/doc_use_of_resolver/OTP-18769' into…
Browse files Browse the repository at this point in the history
… maint
  • Loading branch information
bmk committed Oct 6, 2023
2 parents 9f7efe7 + 050ecfe commit 3a914d2
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions lib/kernel/doc/src/inet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,23 @@ fe80::204:acff:fe17:bf38
</fsummary>
<desc>
<p>Returns a <c>hostent</c> record for the host with the specified
hostname.</p>
<p>If resolver option <c>inet6</c> is <c>true</c>,
an IPv6 address is looked up.</p>
hostname.</p>

<p>This function uses the resolver,
which is often the native (OS) resolver. </p>

<p>If resolver option <c>inet6</c> is <c>true</c>, an IPv6 address
is looked up.</p>

<p>See
<seeguide marker="erts:inet_cfg">ERTS User's Guide:
Inet Configuration</seeguide> for information about the
resolver configuration.</p>

<p>A quirk of many resolver(s) is that an integer string is
interpreted as an IP address.
For instance, the integer string "3232235521" and the string
"192.168.0.1" is equal to the IP address <c>{192,168,0,1}</c>. </p>
</desc>
</func>

Expand All @@ -482,7 +496,20 @@ fe80::204:acff:fe17:bf38
</fsummary>
<desc>
<p>Returns a <c>hostent</c> record for the host with the specified
name, restricted to the specified address family.</p>
name, restricted to the specified address family.</p>

<p>This function uses the resolver,
which is often the native (OS) resolver. </p>

<p>See
<seeguide marker="erts:inet_cfg">ERTS User's Guide:
Inet Configuration</seeguide> for information about the
resolver configuration.</p>

<p>A quirk of many resolver(s) is that an integer string is
interpreted as an IP address.
For instance, the integer string "3232235521" and the string
"192.168.0.1" is equal to the IP address <c>{192,168,0,1}</c>. </p>
</desc>
</func>

Expand Down

0 comments on commit 3a914d2

Please sign in to comment.