Help Center> Cloud Eye> User Guide (Ankara Region)> Server Monitoring> Installing and Configuring the Agent on a Linux ECS> Modifying the DNS Server Address and Adding Security Group Rules (Linux)
Updated on 2024-04-17 GMT+08:00

Modifying the DNS Server Address and Adding Security Group Rules (Linux)

Scenarios

This topic describes how to add the DNS server address and security group rules to a Linux ECS or BMS to ensure successful downloading of the Agent installation package and successful monitoring data collection. This topic takes an ECS as an example.

You can modify the DNS server address of an ECS via command lines or the management console.

DNS and security group configuration are intended for the primary NIC.

Modifying the DNS Server Address (Command Lines)

The following describes how to add the DNS server address to the resolv.conf file using command lines.

To use the management console, see Modifying the DNS Server Address (Management Console).

  1. Log in to an ECS as user root.
  2. Run the vi /etc/resolv.conf command to open the file.
  3. Add the DNS server address, for example, nameserver X.X.X.X to the file. Enter :wq and press Enter to save the change.

    X.X.X.X indicates the DNS server address. You can obtain it from the administrator.

Modifying the DNS Server Address (Management Console)

The following describes how to modify the DNS server address of an ECS on the management console. This topic takes an ECS as an example.

  1. In the upper left corner, select a region and project.
  2. Click Service List in the upper left corner. Under Compute, select Elastic Cloud Server.

    On the ECS console, click the name of the target ECS to view its details.

  3. Click the VPC name on the right of VPC to go to the VPC console.
  4. In the VPC list, click vpc-328c.
  5. In the subnet list, click subnet-328d and click Modify.

    In the displayed Modify Subnet dialog box, change DNS Server Address 1 to the correct DNS server IP address.

    subnet-328d is the ECS subnet.

  6. Click OK.

    The new DNS server address takes effect after the ECS is restarted.

Modifying the ECS Security Group Rules (Management Console)

The following describes how to modify security group rules for an ECS on the management console.

  1. On the ECS details page, click the Security Groups tab.

    The security group list is displayed.

  2. Click the security group name.
  3. Click Modify Security Group Rule.

    The security group details page is displayed.

    Procedure for BMS:

    1. Click the security group ID on the upper left.
    2. Click Manage Rule in the Operation column of the security group.
  4. Click the Outbound Rules tab, and click Add Rule.
  5. Add rules based on Table 1.
    Table 1 Security group rules

    Protocol

    Port

    Type

    Destination

    Description

    TCP

    80

    IPv4

    100.125.0.0/16

    Used to download the Agent installation package from an OBS bucket to an ECS and obtain the ECS metadata and authentication information.

    TCP and UDP

    53

    IPv4

    100.125.0.0/16

    Used by DNS to resolve domain names, for example, resolve the OBS domain name when you are downloading the Agent installation package, and resolve the Cloud Eye endpoint when the Agent is sending monitoring data to Cloud Eye.

    TCP

    443

    IPv4

    100.125.0.0/16

    Used to collect monitoring data and send the data to Cloud Eye.