Skip to content

Commit be74f1f

Browse files
committed
Added documentation for DNS
1 parent c22d65b commit be74f1f

22 files changed

+136
-28
lines changed

bin/v_add_dns_domain

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/bin/bash
2-
# info: adding dns domain
2+
# info: add dns domain
3+
# arguments: user domain ip [template] [exp] [soa] [ttl]
4+
#
5+
# The function adds DNS zone with records defined in the template. If the exp
6+
# argument isn't stated, the expiration date value will be set to next year.
7+
# The soa argument is responsible for the relevant record. By default the first
8+
# user's NS server is used. TTL is set as common for the zone and for all of
9+
# its records with a default value of 14400 seconds.
10+
311

412
#----------------------------------------------------------#
513
# Variable&Function #

bin/v_add_dns_domain_record

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/bash
2-
# info: adding dns domain record
2+
# info: add dns domain record
3+
# arguments: user domain record type value [id]
4+
#
5+
# The call is used for adding new DNS record. Complex records of TXT, MX and
6+
# SRV types can be used by a filling in the 'value' argument. The function also
7+
# gets an id parameter for definition of certain record identifier or for the
8+
# regulation of records.
9+
310

411
#----------------------------------------------------------#
512
# Variable&Function #

bin/v_change_dns_domain_exp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# info: changing dns domain exp date
2+
# info: change dns domain expiriation date
3+
# arguments: user domain exp
4+
#
5+
# The function of changing the term of expiration domain's registration. The
6+
# serial number will be refreshed automatically during update.
7+
38

49
#----------------------------------------------------------#
510
# Variable&Function #

bin/v_change_dns_domain_ip

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: changing dns domain ip
2+
# info: change dns domain ip address
3+
# arguments: user domain ip
4+
#
5+
# The function for changing the main ip of DNS zone.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

bin/v_change_dns_domain_record

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: changing dns domain record
2+
# info: change dns domain record
3+
# arguments: user domain id record type value
4+
#
5+
# The function for changing DNS record.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

bin/v_change_dns_domain_soa

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# info: changing dns domain soa
2+
# info: change dns domain soa record
3+
# arguments: user domain soa
4+
#
5+
# The function for changing SOA record. This type of records can not be
6+
# modified by v_change_dns_domain_record call.
7+
38

49
#----------------------------------------------------------#
510
# Variable&Function #

bin/v_change_dns_domain_tpl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
2-
# info: changing dns domain template
2+
# info: change dns domain template
3+
# arguments: user domain
4+
#
5+
# The function for changing the template of records. By updating old records
6+
# will be removed and new records will be generated in accordance with
7+
# parameters of new template.
8+
39

410
#----------------------------------------------------------#
511
# Variable&Function #

bin/v_change_dns_domain_ttl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: changing dns domain ttl
2+
# info: change dns domain ttl
3+
# arguments: user domain ttl
4+
#
5+
# The function for chaning the time to live TTL parameter for all records.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

bin/v_delete_dns_domain

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# info: deliting dns domain
2+
# info: delite dns domain
3+
# arguments: user domain
4+
#
5+
# The function for deleting DNS domain. By deleting it all records will also be
6+
# deleted.
7+
38

49
#----------------------------------------------------------#
510
# Variable&Function #

bin/v_delete_dns_domain_record

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: deleting dns record
2+
# info: delete dns record
3+
# arguments: user domain id
4+
#
5+
# The function for deleting a certain record of DNS zone.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

0 commit comments

Comments
 (0)