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:

Syntax

domalias <command> [

<option_1> [<param>]

[<option_2> [<param>]]

…[<option_N> [<param>]]

]

Example

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

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

Commands

Command

Parameter

Description

Example

--create or -c

<alias name>

Creates a new domain alias.

Requires the use of the -domain option

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

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

or

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

--update or -u

<alias name>

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

To enable mail service on domain alias example.com:

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

or

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

--delete or -d

<alias name>

Deletes a domain alias.

To delete domain alias example.com:

# ./domalias --delete example.com

or

# ./domalias -d example.com

--delete-all or -da

<domain name>

Deletes all domain aliases for the specified domain.

To delete all domain aliases for domain example.net:

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

or

# ./domalias -da example.net

--info or -i

<alias name>

Displays information about a domain alias.

To view information about domain alias example.com:

# ./domalias --info example.com

or

# ./domalias --i example.com

--on

<alias name>

Enables a domain alias

To enable domain alias example.com:

# ./domalias --on example.com

--off

<alias name>

Disables a domain alias

To disable domain alias example.com:

# ./domalias --off example.com

--rename

<alias name>

Renames a domain alias.

Requires the use of the -new-name option

To change the name of domain alias example.com to example.org:

# ./domalias --rename example.com -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 the --rename command.

To change the name of domain alias example.com to example.org:

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

-mail

true|false

Enables or disables mail service on a domain alias

To enable mail service on domain alias example.com:

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

-web

true|false

Enables or disables web service on a domain alias.

To enable Web service on domain alias example.com:

# ./domalias -u example.com -web true

-domain

<FQDN>

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

Required with the --create command.

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

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

-status

enabled|disabled

Enables or disables domain alias.

To enable domain alias example.com:

# ./domalias -u example.com -status enabled

-tomcat

true|false

Enables or disables the Tomcat service on a domain alias.

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

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