forked from docs/doc-exports
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>
2.9 KiB
2.9 KiB
How Does a Container Image–based 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
- Obtain a private domain name and zone ID.
This procedure uses a domain name with a record set as an example.
- 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.
Parent topic: General FAQs