Module: RegApi2::Zone
Overview
REG.API zone category
Instance Method Summary (collapse)
-
- (Hash(domains)) add_aaaa(opts = {})
Use this function to tie subdomains to IPv6 addresses.
-
- (Hash(domains)) add_alias(opts = {})
Use this function to tie subdomains to IP addresses.
-
- (Hash(domains)) add_cname(opts = {})
Use this function to tie a subdomain to another’s domain name.
-
- (Hash(domains)) add_mx(opts = {})
Use this function to define the IP address or domain name of the mail server, which will received email destined to your domain.
-
- (Hash(domains)) add_ns(opts = {})
You can use this function to hand over a subdomain to other DNS servers.
-
- (Hash(domains)) add_spf(opts = {})
Creates a SPF (sender policy framework) resource record up to 512 octets in length.
-
- (Hash(domains)) add_srv(opts = {})
Add service record.
-
- (Hash(domains)) add_txt(opts = {})
Add an arbitrary note about the subdomain.
-
- (Hash(domains)) clear(opts = {})
Delete all resource records.
-
- (Hash(domains)) clear_forwarding(opts = {})
Use this function to delete resource records required for web forwarding.
-
- (Hash(domains)) clear_parking(opts = {})
Use this function to delete resource records required for domain parking.
-
- (Hash(domains)) get_resource_records(opts = {})
Use this fuction to get zone resource records for each domains.
-
- (Hash(domains)) nop(opts = {})
This function serves for testing purposes.
-
- (Hash(domains)) remove_record(opts = {})
Use this function to delete resource records.
-
- (Hash(domains)) tune_forwarding(opts = {})
Use this function to add resource records required for web forwarding.
-
- (Hash(domains)) tune_parking(opts = {})
Use this function to add resource records required for domain parking.
-
- (Hash(domains)) update_records(opts = {})
You can use this function to add and/or delete several resource records by means of a single request.
-
- (Hash(domains)) update_soa(opts = {})
You can use this function to change a zone cache TTL.
Methods included from Builder
Instance Method Details
- (Hash(domains)) add_aaaa(opts = {})
Support of service lists: yes
Accessibility: clients
Use this function to tie subdomains to IPv6 addresses.
47 |
# File 'lib/reg_api2/zone.rb', line 47 define :add_aaaa, required: { ipaddr: { ipaddr: true }, subdomain: {} } |
- (Hash(domains)) add_alias(opts = {})
Support of service lists: yes
Accessibility: clients
Use this function to tie subdomains to IP addresses.
33 |
# File 'lib/reg_api2/zone.rb', line 33 define :add_alias, required: { ipaddr: { ipaddr: true }, subdomain: {} } |
- (Hash(domains)) add_cname(opts = {})
Support of service lists: yes
Accessibility: clients
Use this function to tie a subdomain to another’s domain name.
59 |
# File 'lib/reg_api2/zone.rb', line 59 define :add_cname, required: { canonical_name: {}, subdomain: {} } |
- (Hash(domains)) add_mx(opts = {})
Support of service lists: yes
Accessibility: clients
Use this function to define the IP address or domain name of the mail server, which will received email destined to your domain.
72 |
# File 'lib/reg_api2/zone.rb', line 72 define :add_mx, required: { mail_server: { ipaddr: :optional } }, optional: %w[ subdomain ] |
- (Hash(domains)) add_ns(opts = {})
Support of service lists: yes
Accessibility: clients
You can use this function to hand over a subdomain to other DNS servers.
85 |
# File 'lib/reg_api2/zone.rb', line 85 define :add_ns, required: { dns_server: {}, subdomain: {}, record_number: { re: /\d\d?/ } } |
- (Hash(domains)) add_spf(opts = {})
Support of service lists: yes
Accessibility: clients
Creates a SPF (sender policy framework) resource record up to 512 octets in length.
124 |
# File 'lib/reg_api2/zone.rb', line 124 define :add_spf, required: { subdomain: {}, text: { re: /\Av=spf1/ } } |
- (Hash(domains)) add_srv(opts = {})
Support of service lists: yes
Accessibility: clients
Add service record.
112 |
# File 'lib/reg_api2/zone.rb', line 112 define :add_srv, required: { service: {}, priority: { re: /\A\d+\z/ }, target: {}, port: { re: /\A\d+\z/ } }, optional: { weight: { re: /\A\d+\z/ } } |
- (Hash(domains)) add_txt(opts = {})
Support of service lists: yes
Accessibility: clients
Add an arbitrary note about the subdomain.
97 |
# File 'lib/reg_api2/zone.rb', line 97 define :add_txt, required: { text: {}, subdomain: {} } |
- (Hash(domains)) clear(opts = {})
Support of service lists: yes
Accessibility: clients
Delete all resource records.
244 |
# File 'lib/reg_api2/zone.rb', line 244 define :clear |
- (Hash(domains)) clear_forwarding(opts = {})
Support of service lists: yes
Accessibility: clients
Use this function to delete resource records required for web forwarding.
198 |
# File 'lib/reg_api2/zone.rb', line 198 define :clear_forwarding |
- (Hash(domains)) clear_parking(opts = {})
Support of service lists: yes
Accessibility: clients
Use this function to delete resource records required for domain parking.
220 |
# File 'lib/reg_api2/zone.rb', line 220 define :clear_parking |
- (Hash(domains)) get_resource_records(opts = {})
Support of service lists: yes
Accessibility: clients
Use this fuction to get zone resource records for each domains.
135 |
# File 'lib/reg_api2/zone.rb', line 135 define :get_resource_records |
- (Hash(domains)) nop(opts = {})
Support of service lists: yes
Accessibility: clients
This function serves for testing purposes. You can check if you can manage DNS zones of domains. DNS zone management is possible only with domains associated with REG.RU DNS servers.
19 |
# File 'lib/reg_api2/zone.rb', line 19 define :nop |
- (Hash(domains)) remove_record(opts = {})
Support of service lists: yes
Accessibility: clients
Use this function to delete resource records.
234 |
# File 'lib/reg_api2/zone.rb', line 234 define :remove_record, required: %w[ subdomain record_type ] |
- (Hash(domains)) tune_forwarding(opts = {})
Support of service lists: yes
Accessibility: clients
Use this function to add resource records required for web forwarding.
187 |
# File 'lib/reg_api2/zone.rb', line 187 define :tune_forwarding |
- (Hash(domains)) tune_parking(opts = {})
Support of service lists: yes
Accessibility: clients
Use this function to add resource records required for domain parking.
209 |
# File 'lib/reg_api2/zone.rb', line 209 define :tune_parking |
- (Hash(domains)) update_records(opts = {})
Support of service lists: yes
Accessibility: partners
You can use this function to add and/or delete several resource records by means of a single request. The order of elements in the transferred array is important. Records can interrelate with each other, and if an error is found in one of the records from the action_list fields, the rest of the records will be ignored.
164 |
# File 'lib/reg_api2/zone.rb', line 164 define :update_records |
- (Hash(domains)) update_soa(opts = {})
Support of service lists: yes
Accessibility: clients
You can use this function to change a zone cache TTL.
176 |
# File 'lib/reg_api2/zone.rb', line 176 define :update_soa, required: %w[ ttl minimum_ttl ] |