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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot