dynhost set n hostname ifname ipadr
Supports configuration of up to 8 user-defined local DNS lookups.
n = 1 to 8 | index number
|
hostname | Specifies hostname to resolve locally
|
ifname=cell,wifi | Specifies the interface name that the lookup applies to
|
ipadr = xxx.xxx.xxx.xxx | Specifies IP address that the hostname will resolve to
|
Note:
- to remove all local DNS lookups, enter cmd dynhost set clear.
- to remove one local DNS entry, use cmd dynhost set <index> clear, eg. cmd dynhost set 2 clear
Examples:
- Resolve test.com to 192.168.100.10 when default route is using the wifi interface. Resolve test.com to 8.8.8.8 when default route is using the cell interface :
cmd dynhost set 1 test.com wifi 192.168.100.10
cmd dynhost set 2 test.com cell 8.8.8.8
See also: DNS
Firmware revision 4543