Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page
Help Center/ Cloud Eye/ FAQs/ Server Monitoring/ Agent Installation/ How Do I Configure DNS and Security Groups?

How Do I Configure DNS and Security Groups?

Updated on 2024-01-11 GMT+08:00

This topic describes how to add DNS server addresses and security groups to a Linux ECS to ensure successful Agent downloading and monitoring data collection. Here, ECSs are used as an example. The operations for other types of hosts are similar.

You can modify DNS configurations of an ECS in either of the following ways: command lines and management console. You can choose one as needed.

NOTE:

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

DNS

  • Modifying a DNS Server Address (Command Lines)

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

    To use the management console, see Modifying a 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 resolv.conf.
    3. Add nameserver 100.125.1.250 and nameserver 100.125.21.250 to the file. Enter :wq, and press Enter to save the settings and exit.
      Figure 1 Adding a DNS server address (Linux)
      NOTE:

      The nameserver value varies depending on the region. For details, see What Are Huawei Cloud Private DNS Server Addresses?

  • Modifying a DNS Server Address (Management Console)

    The following describes how to modify a DNS server address of an ECS on the management console. Here, ECSs are used as an example. The operations for BMSs are similar.

    1. Log in to the management console.
    2. In the upper left corner, select a region and project.
    3. Under Service List, choose Computing > Elastic Cloud Server.

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

    4. In the ECS Information area of the Summary tab, click the VPC name as is shown in Figure 2.
      The Virtual Private Cloud page is displayed.
      Figure 2 VPC in ECS basic information
    5. Click the name of a target VPC.
    6. In the Networking Components area, click the number next to Subnets.

      The Subnets page is displayed.

    7. In the subnet list, click the name of a target subnet.
    8. In the Gateway and DNS Information area, click after the DNS Server Address.
      NOTE:

      Set the DNS server address to the value of nameserver in 3.

      Figure 3 Modifying a DNS server address
    9. Click OK.
      NOTE:

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

Security Groups

  • Modifying the ECS Security Group Rules (Management Console)

The following describes how to modify security group rules for an ECS on the management console. ECSs are used as an example. The operations for BMSs are similar.

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

    The security group list is displayed.

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

    The security group details page is displayed.

    NOTE:

    Procedure for BMS:

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

    Protocol

    Port

    Type

    Destination IP Address

    Description

    TCP

    80

    IPv4

    100.125.0.0/16

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

    TCP and UDP

    53

    IPv4

    100.125.0.0/16

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

    TCP

    443

    IPv4

    100.125.0.0/16

    Used to collect monitoring data to Cloud Eye.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback