network dns add searchdomain

Add a search domain to the network configuration for the appliance. Search domains allow you to avoid typing the complete address of frequently used Internet domains by automatically appending the search domain to an internet address you specify in LunaSH. For example, if you add the search domain mycompany.com, entering the command network ping hsm1 would search for the domain hsm1.mycompany.com. If the domain resolves, it would ping the device with that host name.

The search domain is added to the appliance DNS table.

When you add a DNS search domain, you add it to a specific network device on the appliance (eth0, eth1, eth2, eth3, bond0, bond1). When you add a search domain to a device, it is added to the DNS table for the appliance and becomes available to all devices on the appliance, provided the device you added it to is connected to the network. For example, if you add a search domain to eth0, all devices will use the search domain if eth0 is connected to the network. If eth0 is disconnected from the network, the search domain is not used by any devices to which you did not add the search domain. To ensure that any search domain you add is available in the event of a network or port failure, it is recommended that you add it to all devices you will use to connect the appliance to the network.

NOTE   These settings apply to static network configurations only. If you are using DHCP, the DNS search domains configured on the DHCP server are used.

To display the current DNS settings for the appliance, including the search domains, use the command network show

NOTE   Running this command changes the interface state and causes the ctc service to restart (see Crypto Traffic Controller for QoS).

You must restart the ntls service (lunash:> service restart ntls) for DNS changes to take effect.

User Privileges

Users with the following privileges can perform this command:

>Admin

>Operator

Syntax

network dns add searchdomain <domain> -device<net_device>

Argument(s) Shortcut Description
<domain>  

Add the specified search domain to the DNS table.

-device <net_device> -d

Add the search domain to the specified network device.

Valid values: eth0, eth1, eth2, eth3, bond0, bond1

Example

lunash:>network dns add searchdomain thales.com -device eth0


Command Result: 0 (Success)