Add and manage DNS authorization rules

Updated at:
Copy as MD

After you create a 5G Cloud Connector instance, you can use 5G Cloud Connector to add or manage DNS authorization rules for IoT devices. You can also redirect DNS endpoints.

Background information

5G Cloud Connector provides a service for IoT devices to connect to the cloud over a private Access Point Name (APN) network. IoT SIM cards that use the private APN network require authorization rules. These cards can access only the addresses specified in the rules. 5G Cloud Connector authorization rules support IP addresses and domain names. If you configure an authorization rule that uses a domain name, you must also configure a DNS address for the domain name service. 5G Cloud Connector also supports DNS endpoint redirection. If the DNS address for domain name resolution changes and the endpoint on a device is not updated promptly, you can use 5G Cloud Connector to redirect the DNS endpoint to the correct destination address.

Tasks

Prerequisites

You have created a 5G Cloud Connector instance. For more information, see Create a 5G Cloud Connector instance.

Add a DNS authorization rule

Each source DNS IP address can be used in only one DNS authorization rule.

  1. Log on to the 5G Cloud Connector console.

  2. In the top menu bar, select the region where the 5G Cloud Connector instance is deployed.

  3. On the Instance List page, find the target cloud connector instance and click Configure Authorization Rule in the Actions column.

  4. On the Authorization Rules > DNS Rules tab, click Add Rule.

  5. In the Add DNS Rule dialog box, configure the following parameters and click OK.

Configuration

Description

Rule Name

Enter a name for the DNS authorization rule.

The name must be 2 to 128 characters in length. It must start with a letter or a Chinese character and can contain digits, periods (.), underscores (_), and hyphens (-).

Source DNS

Enter the IP address of the source DNS. Examples include, but are not limited to, the following IP addresses:

  • 100.100.2.136

  • 100.100.2.137

  • 100.100.2.138

  • 114.114.114.114

  • 8.8.8.8

  • 223.5.5.5

  • 223.6.6.6

  • 119.29.29.29

If the IllegalParam.SourceNotDNSIP error code is returned when you enter the source DNS IP address, submit a ticket. In the ticket, include the DNS IP address that you want to add.

Destination DNS

Enter the IP address of the destination DNS. This is used to redirect requests from an old DNS address to a new one when the DNS address for a domain name changes.

Note: After you configure a destination DNS, you cannot configure it as a source DNS.

Modify a DNS authorization rule

If your DNS authorization policy changes, you can modify the DNS authorization rule. You can modify the rule name, source DNS IP address, or destination DNS IP address.

Note If a destination DNS IP address was not configured when the rule was created, you cannot modify the destination DNS IP address.

  1. Log on to the 5G Cloud Connector console.

  2. In the top menu bar, select the region where the 5G Cloud Connector instance is deployed.

  3. On the Instance List page, find the target 5G Cloud Connector instance and click Configure Authorization Rule in the Actions column.

  4. On the Authorization Rules > DNS Rules tab, find the target DNS rule and click Edit in the Actions column.

  5. In the Edit DNS Rule dialog box, modify the rule as needed and click OK.

Delete a DNS authorization rule

  1. Log on to the 5G Cloud Connector console.

  2. In the top menu bar, select the region where the 5G Cloud Connector instance is deployed.

  3. On the Instance List page, find the target 5G Cloud Connector instance and click Configure Authorization Rule in the Actions column.

  4. On the Authorization Rules > DNS Rules tab, find the target DNS rule and click Delete in the Actions column.

  5. In the dialog box that appears, click OK.

References