forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
27 lines
3.0 KiB
HTML
27 lines
3.0 KiB
HTML
<a name="apig-faq-0004"></a><a name="apig-faq-0004"></a>
|
|
|
|
<h1 class="topictitle1">Why Am I Seeing the Message "Backend domain name resolution failed" When a Backend Service Is Called?</h1>
|
|
<div id="body0000001225184369"><p id="apig-faq-0004__p411511295714">An error message indicating a domain name resolution failure is displayed when the backend service is called, although private domain name resolution is completed for the VPC where the API gateway is located.</p>
|
|
<p id="apig-faq-0004__p164285214513"><strong id="apig-faq-0004__b476115319381">Possible Cause</strong></p>
|
|
<p id="apig-faq-0004__p391881055218">The VPC of the API gateway is isolated from that of the backend service. Private domain names can be resolved only for the VPC of the backend service.</p>
|
|
<p id="apig-faq-0004__p35243110537"><strong id="apig-faq-0004__b9857194465819">Solution</strong></p>
|
|
<ul id="apig-faq-0004__ul58491432191411"><li id="apig-faq-0004__li384913218149">Method 1: When creating an API, set <strong id="apig-faq-0004__b97595138594">Backend Address</strong> to a public network domain name.</li><li id="apig-faq-0004__li168506322147">Method 2: When creating an API, do not use a VPC channel. Instead, set <strong id="apig-faq-0004__b165391241628">Backend Address</strong> to the backend service IP address, and add a constant parameter to specify the <strong id="apig-faq-0004__b2041118653">Host</strong> field in the header.<p id="apig-faq-0004__p1894491945317"><span><img id="apig-faq-0004__image144148318134" src="en-us_image_0000001180286140.png" title="Click to enlarge" class="imgResize"></span></p>
|
|
</li><li id="apig-faq-0004__li13406142102511">Method 3: When creating an API, specify a VPC channel.<ol id="apig-faq-0004__ol113101914125319"><li id="apig-faq-0004__li531019144534">Create a VPC channel.<p id="apig-faq-0004__p20602165314108"><a name="apig-faq-0004__li531019144534"></a><a name="li531019144534"></a><span><img id="apig-faq-0004__image736411271747" src="en-us_image_0000001225404945.png" title="Click to enlarge" class="imgResize"></span></p>
|
|
</li><li id="apig-faq-0004__li211182020515">Add the backend service address.<p id="apig-faq-0004__p3633727151015"><a name="apig-faq-0004__li211182020515"></a><a name="li211182020515"></a><span><img id="apig-faq-0004__image1813718506617" src="en-us_image_0000001179806978.png" title="Click to enlarge" class="imgResize"></span></p>
|
|
</li><li id="apig-faq-0004__li6361213717">When creating an API, select the VPC channel and configure a custom header.<p id="apig-faq-0004__p1837222514102"><a name="apig-faq-0004__li6361213717"></a><a name="li6361213717"></a><span><img id="apig-faq-0004__image389816811109" src="en-us_image_0000001224966973.png" title="Click to enlarge" class="imgResize"></span></p>
|
|
</li></ol>
|
|
</li></ul>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="apig-en-faq-180919017.html">API Calling</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |