Command reference / comm

CHGTCPDMN

Change TCP/IP Domain

Sets the local TCP/IP host and domain names and configures DNS server addresses, search rules, and resolver timing.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

HOSTNAME HOSTNAME

Enter the TCP/IP host name of this system. Note: This system's TCP/IP host name must also be defined in the local host table or the Domain Name Server (DNS) specified in the INTNETADR parameter.

Type
*CHAR
Required
No
Default
*SAME
Length
255
Case
Uppercase

Suggested / special values: *SAME, *NONE

*SAME
The TCP/IP host name does not change if it was previously set.
*NONE
No host name is defined for this system.
character-value
Enter a TCP/IP host name for this system. The host name is a text string that has 1 to 63 characters.

DMNNAME DMNNAME

Enter the name of the TCP/IP domain this host is a member of.

Type
*CHAR
Required
No
Default
*SAME
Length
255
Case
Uppercase

Suggested / special values: *SAME, *NONE

*SAME
The TCP/IP domain name does not change if it was previously set.
*NONE
No TCP/IP domain name is defined for this system.
character-value
Enter the TCP/IP domain name for this system. The domain name consists of one or more labels separated by periods. Each label can contain up to 63 characters. The first character of each label must be an alphabetical character or a digit.

DMNSCHLIST DMNSCHLIST

Enter the TCP/IP domains to search when fully-qualified domain names (FQDN) are not given. The first name in the search list is the default domain name on all searches.

Type
*CHAR
Required
No
Default
*SAME
Length
1024
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
The domain search list does not change if it was previously set; otherwise *DFT is used.
*DFT
The default behavior is to search the local domain tree. The local domain tree is the system TCP/IP domain name (DMNNAME) and each parent domain with two or more parts to the domain.
character-value
Enter the list of domain names to be searched. Each domain name must follow the criteria specified for the DMNNAME parameter. Up to six domain names may be specified, separated by spaces and enclosed in apostrophes.

HOSTSCHPTY HOSTSCHPTY

Choose whether to search a Domain Name Server (DNS) first to resolve a TCP/IP host name conflict, or to search the local TCP/IP host table first.

Type
*CHAR
Required
No
Default
*SAME
Length
7
Case
Uppercase

Allowed values: *LOCAL, *REMOTE, *SAME

*SAME
The value does not change if it was previously set. If the value was not previously set, *REMOTE will be used.
*REMOTE
Enter *REMOTE if you want this system to search a remote or local DNS to resolve TCP/IP host names before searching the local TCP/IP host table. The DNS to use is specified by the internet address (INTNETADR) parameter.
*LOCAL
Enter *LOCAL if you want this system to first search the TCP/IP host table, located on this system, to resolve TCP/IP host names.

INTNETADR Domain name servers

Select up to three Domain Name Servers (DNS) to be used by this system. Specify a DNS by entering its internet address. You may add none, one, two, or three DNS internet addresses.

Type
*ELEM
Required
No
Case
Uppercase
*SAME (internet address)
Keep the current setting.
*NONE (internet address)
Leave domain name server address unspecified.
character-value (internet address)
Enter the internet address of a domain name server.
Elements in order

Type
*CHAR
Required
No
Default
*SAME
Length
45
Case
Uppercase

Suggested / special values: *SAME, *NONE

Type
*CHAR
Required
No
Default
*SAME
Length
45
Case
Uppercase

Suggested / special values: *SAME, *NONE

Type
*CHAR
Required
No
Default
*SAME
Length
45
Case
Uppercase

Suggested / special values: *SAME, *NONE

Examples

CHGTCPDMN HOSTNAME(rs021) DMNNAME(endicott.ibm.com)

Changes the host name and domain name.

CHGTCPDMN DMNSCHLIST('endicott.ibm.com
                        rochester.ibm.com
                        ibm.com')

Changes the domain search list to be three domain names: endicott.ibm.com, rochester.ibm.com, and ibm.com.

CHGTCPDMN INTNETADR('9.131.42.251'  '5678::1234' *NONE)

Specifies two domain name server addresses: 9.131.42.251 and 5678::1234.

CHGTCPDMN INLDMNSVR(*ROTATE)

Changes the initial domain name server selection so it rotates between the configured name servers in a round robin fashion.

CHGTCPDMN DMNSVRRTY(3 10)

Changes the domain name server retry values. It sets the number of retries to three and the interval between each retry to ten seconds.

CHGTCPDMN DNSSEC(*YES)

Changes DNS queries sent by the system so the DNSSEC OK bit (DO) will be set to indicate that this system is able to accept DNSSEC resource records.

IBM command documentation

Generated from os/cl/catalog/CHGTCPDMN.json and os/cl/help/CHGTCPDMN.json.