domain ip host
The command defines a static DNS entry.
The use of a negative form (no) of the command removes the entry.
Syntax
[no] domain ip host <NAME> <IP>
Parameters
<NAME> – host name, set by the string of up to 255 characters.
<IP> – host IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255].
Required privilege level
10
Command mode
CONFIG
Example:
esr(config)# domain ip host eltex.loc 172.16.0.3
CODE
domain lookup enable
The command enables DNS names resolution.
The use of a negative form (no) of the command disables DNS names resolution.
Syntax
[no] domain lookup enable [ vrf <VRF> ]
Parameters
<VRF> – VRF instance name, set by the string of up to 31 characters, within which DNS names resolution will be enabled.
Required privilege level
10
Command mode
CONFIG
Example:
esr(config)# domain lookup enable
CODE
domain name
The command allows to assign domain name for the router.
The use of a negative form (no) of the command removes domain name for the router.
Syntax
domain name <NAME>
no domain name
Parameters
<NAME> – router domain name, set by the string from 1 to 255 characters.
Required privilege level
10
Command mode
CONFIG
Example:
esr(config)# domain name eltex-co.ru
CODE
domain name-server
The command defines DNS server IP address used for DNS names resolution.
The use of a negative form (no) of the command removes DNS server address.
Syntax
[no] domain name-server <IP> [vrf <VRF>]
Parameters
<IP> – IP address of DNS server being used, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255];
<VRF> – VRF instance name, set by the string of up to 31 characters, within which the interaction with DNS server will occur.
Required privilege level
10
Command mode
CONFIG
Example:
esr(config)# domain name-server 172.16.0.1
CODE