doc-exports/docs/fg/umn/functiongraph_03_0872.html
Chen, Junjie dac566cf2f FG UMN 20230725 version
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-04-03 10:30:56 +00:00

20 lines
2.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<a name="functiongraph_03_0872"></a><a name="functiongraph_03_0872"></a>
<h1 class="topictitle1">How Does a Container Imagebased Function Resolve a Private DNS Domain Name?</h1>
<div id="body0000001432349065"><p id="functiongraph_03_0872__p1178918413574">FunctionGraph functions created with a container image cannot directly parse private Domain Name Service (DNS) domain names. However, you can call DNS APIs to achieve this purpose.</p>
<div class="section" id="functiongraph_03_0872__section157058495714"><h4 class="sectiontitle">Resolving a Private DNS Domain Name</h4><ol id="functiongraph_03_0872__ol1881444185819"><li id="functiongraph_03_0872__li381434116587">Obtain a private domain name and zone ID.<p id="functiongraph_03_0872__p1078915413574"><a name="functiongraph_03_0872__li381434116587"></a><a name="li381434116587"></a>This procedure uses a domain name with a record set as an example.</p>
<ol type="a" id="functiongraph_03_0872__ol1579018417579"><li id="functiongraph_03_0872__li187905410573">Log in to the DNS console.</li><li id="functiongraph_03_0872__li179908192214">Obtain a zone ID.<p id="functiongraph_03_0872__p18790144185716"><a name="functiongraph_03_0872__li179908192214"></a><a name="li179908192214"></a>Click <span><img id="functiongraph_03_0872__image479074175719" src="en-us_image_0000001382229680.gif"></span>, and select <strong id="functiongraph_03_0872__b9886161012119">Domain Name</strong> in the search box to obtain a zone ID.</p>
</li><li id="functiongraph_03_0872__li27901446579">Obtain the private domain name corresponding to a recording set.<p id="functiongraph_03_0872__p1079019410578"><a name="functiongraph_03_0872__li27901446579"></a><a name="li27901446579"></a>Click the domain name to go to the record set list, and select a record set.</p>
</li></ol>
</li></ol><ol start="2" id="functiongraph_03_0872__ol1886674214412"><li id="functiongraph_03_0872__li5866742446">Compile the resolution logic.<p id="functiongraph_03_0872__p179134115711"><a name="functiongraph_03_0872__li5866742446"></a><a name="li5866742446"></a>Debug the API used to query record sets in a zone.</p>
<ul id="functiongraph_03_0872__ul81891233102017"><li id="functiongraph_03_0872__li13189103311203">Set <strong id="functiongraph_03_0872__b43921919175510">zone_id</strong> to the zone ID obtained in the preceding step, and click <strong id="functiongraph_03_0872__b9487243155517">Debug</strong>. The IP address of the private domain name is displayed in the response body.</li><li id="functiongraph_03_0872__li12621282118">Switch to the <strong id="functiongraph_03_0872__b562444117596">Sample Code</strong> tab to obtain the complete code. For details about the dependencies, click <strong id="functiongraph_03_0872__b576417416010">View SDK Details</strong>.</li></ul>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_03_0110_00.html">General FAQs</a></div>
</div>
</div>