Domain Aliases: domalias Utility

The domalias utility is used to manage domain aliases through CLI. By using this utility, you can perform the following tasks:

Usage

domalias <command> [
<option_1> [<param>]
[<option_2> [<param>]]
… [<option_N> [<param>]]
]

Example

The following command creates domain alias example.net for the domain example.com, enables the domain alias, and enables mail service on the domain alias.

# ./domalias --create example.net -domain example.com -status enabled -mail true

Commands

Command

Parameter

Description

Example

--create or -c

<alias_name>

Creates a new domain alias.

Requires -domain option.

To create a new domain alias example.net for the domain example.com:

# ./domalias --create example.net -domain example.com

or

# ./domalias -c example.net -domain example.com

--update or -u

<alias_name>

Updates configuration of an existing domain alias with the data specified in the options.

To enable mail service on the domain alias example.net:

# ./domalias --update example.net -mail true

or

# ./domalias -u example.net -mail true

--delete or -d

<alias_name>

Deletes a domain alias.

To delete the domain alias example.net:

# ./domalias --delete example.net

or

# ./domalias -d example.net

--delete-all or -da

<domain_name>

Deletes all domain aliases for the specified domain.

To delete all domain aliases for the domain example.com:

# ./domalias --delete-all example.com

or

# ./domalias -da example.com

--info or -i

<alias_name>

Displays information about a domain alias.

To view information about the domain alias example.net:

# ./domalias --info example.net

or

# ./domalias -i example.net

--on

<alias_name>

Enables a domain alias.

To enable domain alias example.net:

# ./domalias --on example.net

--off

<alias_name>

Disables a domain alias.

To disable domain alias example.net:

# ./domalias --off example.net

--rename or -r

<alias_name>

Renames a domain alias.

Requires -new-name option.

To rename the domain alias from example.net to example.org:

# ./domalias --rename example.net -new-name example.org

or

# ./domalias -r example.net -new-name example.org

--help or h

<alias_name>

Displays help on the use of the utility.

To view help on the use of this utility:

# ./domalias --help

or

# ./domalias -h

Options

Option

Parameter

Description

Example

-new-name

<FQDN>

Sets a new name for an existing domain alias.

Required with --rename.

To rename the domain alias from example.net to example.org:

# ./domalias -r example.net -new-name example.org

-mail

true|false

Enables/Disables mail service on a domain alias.

Is true by default.

To disable mail service on the domain alias example.net:

# ./domalias -u example.net -mail false

-web

true|false

Enables/Disables web service on a domain alias.

Is true by default.

To disable web service on the domain alias example.net:

# ./domalias -u example.net -web false

-domain

<FQDN>

Specifies the name of the domain for which domain alias is to be created.

Required with --create.

To create a new domain alias example.net for the domain example.com

# ./domalias -c example.net -domain example.com

-status

enabled|disabled

Enables/Disables domain alias.

Is enabled by default.

To disable domain alias example.net:

# ./domalias -u example.net -status disabled

-tomcat

true|false

Enables/Disables the Tomcat service on a domain alias.

Is false by default.

To enable the Tomcat service on the domain alias example.net:

# ./domalias -u example.net -tomcat true

-dns

true|false

Enables/Disables DNS zone on a domain alias.

To enable the DNS zone on the domain alias example.net:

# ./domalias -u example.net -dns true