Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
Use the Change TCP/IP Domain Information (CHGTCPDMN) command to specify this system's TCP/IP host and domain name and to configure the Domain Name Server (DNS) information for this system.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
HOSTNAME | Host name | Character value, *SAME, *NONE | Optional |
DMNNAME | Domain name | Character value, *SAME, *NONE | Optional |
DMNSCHLIST | Domain search list | Character value, *SAME, *DFT | Optional |
HOSTSCHPTY | Host name search priority | *REMOTE, *LOCAL, *SAME | Optional |
INTNETADR | Domain name server | Element list | Optional |
Element 1: Internet address | Character value, *SAME, *NONE | ||
Element 2: | Character value, *SAME, *NONE | ||
Element 3: | Character value, *SAME, *NONE | ||
PORT | Port | 1-65535, *SAME | Optional |
PROTOCOL | Protocol | *UDP, *TCP, *SAME | Optional |
INLDMNSVR | Initial domain name server | *FIRST, *ROTATE, *SAME | Optional |
DMNSVRRTY | Domain name server retry | Element list | Optional |
Element 1: Number of retries | 1-99, *SAME | ||
Element 2: Time interval | 1-99, *SAME |
Top |
Specify 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. If no Domain Name Server (DNS) is specified, the local TCP/IP host table is used.
Example of how to use the HOSTNAME parameter to specify a TCP/IP host name where "asac1" is the name of the local system:
CHGTCPDMN HOSTNAME ('asac1')
Top |
Specify the name of the TCP/IP domain this i5/OS host is a member of.
Example of how to use the DMNNAME parameter to specify this system's TCP/IP domain name:
CHGTCPDMN DMNNAME ('dom1.abc.com')
Top |
Specify 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.
Example of how to use the DMNSCHLIST parameter to specify this system's domain search list:
CHGTCPDMN DMNSCHLIST('dom1.abc.com dom2.abc.com abc.com')
Top |
Specifies 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.
Top |
Use this parameter to specify up to three Domain Name Servers (DNS) to be used by this system. Specify a Domain Name Server (DNS) by entering its Internet address. You may add none, one, two, or three Domain Name Server (DNS) Internet addresses.
If the first Domain Name Server (DNS) in the list does not respond, the second DNS server in the list will be contacted. If the second DNS server does not respond, the third DNS server will contacted.
The Domain Name Server (DNS) Internet address must be in decimal form, with a maximum of 15 characters.
This is an example of how to use the INTNETADR parameter to specify a primary and secondary Domain Name Server for use by this system:
CHGTCPDMN INTNETADR('9.131.42.251' '9.131.39.251')
Top |
Use this parameter to specify the remote TCP/IP port number used to contact the Domain Name Server (DNS) or Servers listed in the INTNETADR parameter. 53 is the well-known port used for this purpose.
Note: Use of a TCP/IP port number other than the well-known port 53 for use by the Domain Name Server (DNS) can result in TCP/IP communication problems. You may inadvertently use a port number which is reserved for use by another TCP/IP application.
Top |
Specify the TCP/IP protocol used to communicate with the Domain Name Server (DNS) specified in the INTNETADR parameter. User Datagram Protocol (UDP) is typically used for this purpose. Use *TCP only if your Domain Name Server (DNS) is specifically configured to use the Transmission Control Protocol (TCP).
Top |
Specify the initial domain name server selection method. This option determines whether the first configured Domain Name Server (DNS) should always be queried first, or if the first name server to be queried should be rotated in a round robin fashion if more than one is configured. This rotation provides a simple form of load balancing on the configured name servers.
Top |
The Domain Name Server Retry (DMNSVRRTY) parameter consists of two elements: number-retries, and time-interval.
The first element; number-retries, specifies the number of additional attempts made to establish communication with each Domain Name Server (DNS) specified in the INTNETADR parameter, in the event that the first attempt fails.
Element 1: Number of retries
Element 2: Time interval Specifies the length of time in seconds this system will wait before initiating a retry attempt.
Here is an example of how to use the Domain Name Server Retry (DMNSVRRTY) parameter to set the number of retries to three, and the interval between each retry to ten seconds:
CHGTCPDMN DMNSVRRTY(3 10)
Top |
Example 1: Change Host and Domain Names
CHGTCPDMN HOSTNAME(rs021) DMNNAME(endicott.ibm.com)
This command changes the host name and domain name.
Example 2: Change Domain Search List
CHGTCPDMN DMNSCHLIST('endicott.ibm.com rochester.ibm.com ibm.com')
This command changes the domain search list to be three domain names: endicott.ibm.com, rochester.ibm.com, and ibm.com.
Example 3: Change Domain Name Server Rotation
CHGTCPDMN INLDMNSVR(*ROTATE)
This command changes the initial domain name server selection so it rotates between the configured name servers in a round robin fashion.
Top |
*ESCAPE Messages
Top |