Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

How does Deep Security Agent get hostname in Linux environment?

    • Updated:
    • 21 Nov 2019
    • Product/Version:
    • Deep Security 10.0
    • Deep Security 11.0
    • Deep Security 12.0
    • Platform:
    • N/A
Summary

This article explains how the Deep Security Agent (DSA) get a hostname in a Linux environment.

Details
Public

In Linux, DSA will get the hostname from system configuration or the local IP addresses and names mapping file, /etc/hosts.

There are three (3) varieties of hostnames which you can check from the hostnamectl command.

CategoryDescriptionConfigured Command
StaticProvided by the kernelhostnamectl set-hostname --static [hostname] or hostnamectl set-hostname [hostname]
TransientReceived from the network configurationhostnamectl set-hostname --transient [hostname]
PrettyProvided by the userhostnamectl set-hostname --pretty [hostname]

There are many ways to change the hostname in Linux, but we only listed one. The format of /etc/hosts is similar below, where users can configure multiple aliases.

[IP address] [name] [alias] [alias] ...

By default, the agent will get the hostname from the Linux kernel parameter and the system will return the "Static hostname" to the agent. However, there are some exceptions such as the following:

  • If the "Static hostname" is localhost and "Transient hostname" is not localhost, the system will return the "Transient hostname" to DSA.
  • If both "Static hostname" and "Transient hostname" are localhost, the system will return the [name] from /etc/hosts to DSA.
  • If all of "Static hostname", "Transient hostname", and "Name of /etc/hosts" are localhost, the system will return the localhost to DSA even if the user configured alias in /etc/hosts. 

Except when the hostname is configured as localhost or localhost.localdomain, the system will always return the hostname to DSA by the order of "Static hostname", "Transient hostname", and "Name of /etc/hosts".

Premium
Internal
Rating:
Category:
Configure
Solution Id:
000155799
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.