dnssearch

January 10, 2024

ID 179783

This command lets you define a list of search domains that are used to determine domain names for name resolution in the file /etc/resolv.conf. The previously configured list of search domains is deleted.

If you are also planning to configure a list of DNS servers (the dns command), execute the dnssearch command after the dns command because the dns command will cause the list of search domains in the file /etc/resolv.conf to be deleted.

Settings

[<Domain1>] [<Domain2>] [<Domain3>]

where:

<Domain> – name of the search domain (optional parameter). You can specify up to three domains.

If the command is executed without parameters (no domain is specified), all search entries in the file /etc/resolv.conf are deleted.

Example:

> ssh klconfig@10.16.98.17 dnssearch mylocaldomain.com kaspersky.com

> klconfig@10.16.98.17’s password:

KLCONFIG OK

Specific errors

None.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.