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

2.9 KiB
Raw Permalink Blame History

How Does a Container Imagebased Function Resolve a Private DNS Domain Name?

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.

Resolving a Private DNS Domain Name

  1. Obtain a private domain name and zone ID.

    This procedure uses a domain name with a record set as an example.

    1. Log in to the DNS console.
    2. Obtain a zone ID.

      Click , and select Domain Name in the search box to obtain a zone ID.

    3. Obtain the private domain name corresponding to a recording set.

      Click the domain name to go to the record set list, and select a record set.

  1. Compile the resolution logic.

    Debug the API used to query record sets in a zone.

    • Set zone_id to the zone ID obtained in the preceding step, and click Debug. The IP address of the private domain name is displayed in the response body.
    • Switch to the Sample Code tab to obtain the complete code. For details about the dependencies, click View SDK Details.