Domain and Domain Registration

Navigation: skip navigation

PHP5 client library III. - methods and functions of Zoner module

Description of functions and classes ZMS module Zoner.

Contents

  1. Common functions
  2. Domain manipulation

1. Common functions

  • login

    System authorization

    Input parameters:

    • id_user - user name
    • password - password
    • remote_addr - clients IP address, for example: $_SERVER['REMOTE_ADDR'];

2. Domain manipulation

  • domainInfo

    Getting information about domain under ZONER software, a.s. management

    Input parameters:

    • domain_name - domain name

    Input parameters:

    • domain_name - domain name
    • managed - 0/1 - domain is (1) or is not (0) at customers account
    • ex_date - Expiration date (only if 'managed==1', else null)
  • domainList

    Getting list of domain names under ZONER software, a.s. management

    Input parameters:

    none

    Output parameters:

    • list - Table with list of domains:
      • a - domain_name - domain name
      • b - exp_date - expiration date
  • getDnsZone

    Reading of DNS zone of domains under ZONER software management

    Input parameters:

    mandatory parameters:

    • domain_name - domain name

    Input parameters:

    • dns_a_records - list of A records, table has following columns
      • a - name - name of A records
      • b - ip_address - IP address
      • c - ttl - TTL in seconds (0=3600 default)
    • dns_cname_records - contains list of CNAME records, table has following columns
      • a - name - name of CNAME records
      • b - host_name - host name
      • c - ttl - TTL in seconds (0=3600 default)
    • dns_mx_records - contains list of MX records, table has following columns
      • a - name - name of MX record
      • b - priority - priority
      • c - mailserver_name - name of mailserver
      • d - ttl - TTL in seconds (0=3600 default)
    • dns_txt_records - contains list of TXT records, table has following columns
      • a - name - name of TXT record
      • b - txt - arbitrary text
      • c - ttl - TTL in seconds (0=3600 default)
    • dns_srv_records - contains list of SRV records, table has following columns
      • a - name - name of service and protocols (for exampled: _sip._tcp)
      • b - priority - priority
      • c - weight - weight for records with the same priority
      • d - port - port number
      • e - host - host name
      • f - ttl - TTL in seconds (0=3600 default)

    Return values:

    • 9:1:7:50001 - DNS zone succesfuly loaded
    • 9:0:0:30007 - Service not found
    • 9:0:0:30016 - Service has no DNS records
  • setDnsZone

    Zone update of domain in database. Table fills according to needed space. It is also possible to add or remove record from table. Record update is done by deleting old record and adding a new one. Everything is done in transaction, all changes are done or none.

    Input parametry:

    • domain_name - domain name
    • generate - generate new zone from database to DNS server

    Input tables:

    • dns_a_records_add - contains list of A records for adding, table has following columns
      • a - name - name of A record
      • b - ip_address - IP address
      • c - ttl - TTL in seconds (0=3600 default)
    • dns_a_records_rem - contains list of A records for deleting, table has following collumns
      • a - name - name of A record
      • b - ip_address - IP address
      • c - ttl - does nothing
    • dns_cname_records_add - contains list of CNAME records for adding, table has following columns
      • a - name - name of CNAME
      • b - host_name - host name
      • c - ttl - TTL in seconds (0=3600 default)
    • dns_cname_records_rem - contains list of CNAME records for deleting, table has following columns/li>
      • a - name - name of CNAME
      • b - host_name - host name
      • c - ttl - does nothing
    • dns_mx_records_add - contains list of MX records for adding, table has following columns
      • a - name - name of MX record
      • b - priority - priority
      • c - mailserver_name - mailserver name
      • d - ttl - TTL in seconds (0=3600 default)
    • dns_mx_records_rem - contains list of MX records for deleting, table has following columns
      • a - name - name of MX record
      • b - priority - priority
      • c - mailserver_name - mailserver name
      • d - ttl - does nothing
    • dns_txt_records_add - contains list of TXT records for adding, table has following columns
      • a - name - name of TXT record
      • b - txt - arbitrary text
      • c - ttl - TTL in second (0=3600 default)
    • dns_txt_records_rem - contains list of TXT records for adding, table has following columns
      • a - name - name of TXT record
      • b - txt - arbitrary text
      • c - ttl - does nothing
    • dns_srv_records_add - contains list of SRV records for adding, table has following columns
      • a - name - name of service and protocol (for example: _sip._tcp)
      • b - priority - priority
      • c - weight - weight for records with the same priority
      • d - port - port number
      • e - host - host name
      • f - ttl - TTL in seconds (0=3600 default)
    • dns_srv_records_rem - contains list of SRV records for removing, table has following columns
      • a - name - name of service and protocol (for example: _sip._tcp)
      • b - priority - priority
      • c - weight - weight for records with the same priority
      • d - port - port number
      • e - host - host name
      • f - ttl - does nothing

    Return values:

    • 9:1:7:50002 - DNS zone of domain was sucesfully updated
    • 9:0:0:30007 - Service not founf
    • 9:0:0:30016 - Service has no DNS records
    • 9:0:0:30017 - Adding of A records failed
    • 9:0:0:30018 - Deleting of A records failed
    • 9:0:0:30019 - DNS A records are not defined
    • 9:0:0:30020 - DNS A records are not valid
    • 9:0:0:30021 - DNS A records are not available
    • 9:0:0:30022 - DNS A records already exists
    • 9:0:0:30023 - Adding of CNAME records failed
    • 9:0:0:30024 - Deleting of CNAME records failed
    • 9:0:0:30025 - DNS CNAME records are not defined
    • 9:0:0:30026 - DNS CNAME records are not valid
    • 9:0:0:30027 - DNS CNAME records are not available
    • 9:0:0:30028 - DNS CNAME records already exists
    • 9:0:0:30029 - Duplicate DNS record was found
    • 9:0:0:30030 - Adding of MX records failed
    • 9:0:0:30031 - Deleting of MX records failed
    • 9:0:0:30032 - DNS MX records are not defined
    • 9:0:0:30033 - DNS MX records are not valid
    • 9:0:0:30034 - DNS MX records are not available
    • 9:0:0:30035 - DNS MX records already exists
    • 9:0:0:30036 - Adding of TXT records failed
    • 9:0:0:30037 - Deleting of TXT records failed
    • 9:0:0:30038 - DNS TXT records are not defined
    • 9:0:0:30039 - DNS TXT records are not valid
    • 9:0:0:30040 - DNS TXT records are not available
    • 9:0:0:30041 - DNS TXT records already exists
    • 9:0:0:30042 - Adding of SRV records failed
    • 9:0:0:30043 - Deleting of SRV records failed
    • 9:0:0:30044 - DNS SRV records are not defined
    • 9:0:0:30045 - DNS SRV records are not valid
    • 9:0:0:30046 - DNS SRV records are not available
    • 9:0:0:30047 - DNS SRV records already exists

back


Website

CMS, photo gallery,
e-mail,
with every domain.

Free with domain

API Partner

Our partners use automatic system for registration and administration domains.

API
FREE Security each domain of GB