tencent cloud


Getting Private IP Addresses and Setting DNS

Last updated: 2022-07-08 16:44:41


    This document describes how to obtain the private IP address of the instance and configure the private DNS.


    Obtaining the private IP address of an instance

    1. Log in to the CVM console.
    2. On the instance management page, proceed according to the actually used view mode:
      • List view: select the target instance, move the cursor to the primary IP column, and click to copy the private IP as shown below:
    • Tab view: on the instance page, click after the private network address in "IP Address" to copy the private IP as shown below:

    Configuring private network DNS

    When a network resolution error occurs, you can manually configure the private network DNS based on your CVM operating system.

    1. Log into the Linux CVM.
    2. Execute the following command to open the /etc/grub.conf file.
      vi /etc/resolv.conf
    3. Press i to switch to the edit mode, and modify the DNS IP according to the corresponding region in the Private Network DNS list.
      For example, change the private network DNS IP to an private network DNS server in the Beijing region.
      options timeout:1 rotate
    4. Press Esc, enter :wq, save the file and return.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support