Public DNS

DNS

  • API Reference
    • API function release records
    • API Service Domain Name
    • Appendix
    • Common Headers and Error Responses
    • General Description
    • Interface Overview
    • Overview
    • Private DNS Related Interfaces
      • Add resolution record
      • Associate VPC
      • Create a PrivateZone
      • Delete PrivateZone
      • Delete resolution record
      • Disassociate VPC
      • Modify resolution record
      • Query details of a PrivateZone
      • Query PrivateZone list
      • Query resolution record list
      • Set Resolution Record Status
    • Public DNS Related Interfaces
      • Domain Name Related Interfaces
      • Line Group Related Interfaces
      • Resolution Records Related Interfaces
  • FAQs
    • General FAQs
  • Function Release Records
  • Operation guide
    • Identity and access management
    • Local DNS service
      • Add Private Zone
      • Add resolution record
      • Associate VPC
      • Delete Private Zone
      • Resolver
    • Public DNS service
      • Add domain name
      • Add resolution
      • Enable Resolution Service
      • Line Grouping Function
      • Manage Resolution
      • Resolution Line Selection
      • Upgrade Domain Name to Enterprise Edition Operation Guide
    • Resolution Logging Management
  • Product Description
    • Application scenarios
    • Product advantages
    • Product functions
    • Product overview
    • Usage restrictions
  • Product pricing
  • Quick Start
    • Activate Service
    • Use Resolution Service
  • SDK
    • Golang-SDK
      • Exception handling
      • Initialization
      • Install the SDK Package
      • Overview
      • Private DNS
      • Version history
    • Java-SDK
      • Install the SDK Package
      • Overview
      • Private DNS
      • Public DNS
      • Version history
    • Python-SDK
      • Initialization
      • Install the SDK Package
      • Overview
      • Private DNS
      • Public DNS
      • Version history
  • Service Level Agreement (SLA)
    • Internal DNS Service Level Agreement SLA
    • Public DNS Service Level Agreement SLA
  • Typical Practices
    • Implement URL Forwarding via Nginx
    • Local IDC Interconnection with Cloud DNS Service via Resolver
    • Quickly Set Up Private Domain Name Resolution Service Using Terraform
All documents
menu
No results found, please re-enter

DNS

  • API Reference
    • API function release records
    • API Service Domain Name
    • Appendix
    • Common Headers and Error Responses
    • General Description
    • Interface Overview
    • Overview
    • Private DNS Related Interfaces
      • Add resolution record
      • Associate VPC
      • Create a PrivateZone
      • Delete PrivateZone
      • Delete resolution record
      • Disassociate VPC
      • Modify resolution record
      • Query details of a PrivateZone
      • Query PrivateZone list
      • Query resolution record list
      • Set Resolution Record Status
    • Public DNS Related Interfaces
      • Domain Name Related Interfaces
      • Line Group Related Interfaces
      • Resolution Records Related Interfaces
  • FAQs
    • General FAQs
  • Function Release Records
  • Operation guide
    • Identity and access management
    • Local DNS service
      • Add Private Zone
      • Add resolution record
      • Associate VPC
      • Delete Private Zone
      • Resolver
    • Public DNS service
      • Add domain name
      • Add resolution
      • Enable Resolution Service
      • Line Grouping Function
      • Manage Resolution
      • Resolution Line Selection
      • Upgrade Domain Name to Enterprise Edition Operation Guide
    • Resolution Logging Management
  • Product Description
    • Application scenarios
    • Product advantages
    • Product functions
    • Product overview
    • Usage restrictions
  • Product pricing
  • Quick Start
    • Activate Service
    • Use Resolution Service
  • SDK
    • Golang-SDK
      • Exception handling
      • Initialization
      • Install the SDK Package
      • Overview
      • Private DNS
      • Version history
    • Java-SDK
      • Install the SDK Package
      • Overview
      • Private DNS
      • Public DNS
      • Version history
    • Python-SDK
      • Initialization
      • Install the SDK Package
      • Overview
      • Private DNS
      • Public DNS
      • Version history
  • Service Level Agreement (SLA)
    • Internal DNS Service Level Agreement SLA
    • Public DNS Service Level Agreement SLA
  • Typical Practices
    • Implement URL Forwarding via Nginx
    • Local IDC Interconnection with Cloud DNS Service via Resolver
    • Quickly Set Up Private Domain Name Resolution Service Using Terraform
  • Document center
  • arrow
  • DNS
  • arrow
  • SDK
  • arrow
  • Python-SDK
  • arrow
  • Public DNS
Table of contents on this page
  • Add domain name
  • Query domain name list
  • Delete domain name
  • Purchase a paid domain name
  • Upgrade a free domain name to a discount domain name
  • Renew domain name
  • Add resolution
  • Query resolution record list
  • Modify resolution record
  • Enable resolution record
  • Disable the resolution record
  • Delete resolution record
  • Add line group
  • Update line group
  • Query line group list
  • Delete line group

Public DNS

Updated at:2025-11-11

Add domain name

Usage examples are as follows:

Plain Text
1    create_zone_request = {
2        'name': 'ccqTest1101.com'
3    }
4    dns_client.create_zone(create_zone_request=create_zone_request)

Query domain name list

Usage examples are as follows:

Plain Text
1    dns_client.list_zone(name='javasdk.com')

Delete domain name

Usage examples are as follows:

Plain Text
1    dns_client.delete_zone(zone_name='ccqTest1101.com')

Purchase a paid domain name

Usage examples are as follows:

Plain Text
1    create_paid_zone_request = {
2        'names': ['ccqTest1101.com'],
3        'productVersion': 'discount',
4        'billing': {
5            'paymentTiming': 'Prepaid',
6            'reservation': {
7                'reservationLength': 1
8            }
9        }
10    }
11    dns_client.create_paid_zone(create_paid_zone_request=create_paid_zone_request)

Upgrade a free domain name to a discount domain name

Usage examples are as follows:

Plain Text
1    upgrade_zone_request = {
2        'names': ['ccqbcd.com'],
3        'billing': {
4            'paymentTiming': 'Prepaid',
5            'reservation': {
6                'reservationLength': 1
7            }
8        }
9    }
10    dns_client.upgrade_zone(upgrade_zone_request=upgrade_zone_request)

Renew domain name

Usage examples are as follows:

Plain Text
1    renew_zone_request = {
2        'billing': {
3            'reservation': {
4                'reservationLength': 1
5            }
6        }
7    }
8    dns_client.renew_zone(name='ccqbcd.com', renew_zone_request=renew_zone_request)

Add resolution

Usage examples are as follows:

Plain Text
1    create_record_request = {
2        'rr': 'ccc',
3        'type': 'A',
4        'value': '1.1.1.1'
5    }
6    dns_client.create_record(zone_name='ccqbcd.com', create_record_request=create_record_request)

Query resolution record list

Usage examples are as follows:

Plain Text
1    dns_client.list_record(zone_name='ccqbcd.com')

Modify resolution record

Usage examples are as follows:

Plain Text
1    update_record_request = {
2        'rr': 'ccc',
3        'type': 'A',
4        'value': '1.1.1.1'
5    }
6    dns_client.update_record(zone_name='ccqbcd.com', update_record_request=update_record_request, record_id='52082')

Enable resolution record

Usage examples are as follows:

Plain Text
1    dns_client.update_record_enable(zone_name='ccqbcd.com', record_id='52082')

Disable the resolution record

Usage examples are as follows:

Plain Text
1    dns_client.update_record_enable(zone_name='ccqbcd.com', record_id='52082')

Delete resolution record

Usage examples are as follows:

Plain Text
1    dns_client.delete_record(zone_name='ccqbcd.com', record_id='52082')

Add line group

Usage examples are as follows:

Plain Text
1    add_line_group_request = {
2        'name': 'ccqLineGroup',
3        'lines': ["zhejiang.ct", "shanxi.ct"]
4    }
5    dns_client.add_line_group(add_line_group_request=add_line_group_request)

Update line group

Usage examples are as follows:

Plain Text
1    update_line_group_request = {
2        'name': 'ccqLineGroup',
3        'lines': ["zhejiang.ct", "shanxi.ct"]
4    }
5    dns_client.update_line_group(line_id='6174', update_line_group_request=update_line_group_request)

Query line group list

Usage examples are as follows:

Plain Text
1    dns_client.list_line_group()

Delete line group

Usage examples are as follows:

Plain Text
1    dns_client.delete_line_group(line_id='6174')

Previous
Private DNS
Next
Version history