cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 2,248 Views

Configure Linux System Hostname

Jump to solution

On a systemd based Linux system, what command will set the
hostname of the system to "DNS_Server"?

Trevor "Red Hat Evangelist" Chandler
Labels (3)
1 Solution

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 2,188 Views

hostnamectl set-hostname DNS_Server

View solution in original post

7 Replies
TM
Flight Engineer Flight Engineer
Flight Engineer
  • 2,229 Views

hostnamectl DNS_Server

Chetan_Tiwary_
Community Manager
Community Manager
  • 2,189 Views

hostnamectl set-hostname DNS_Server

Trevor
Starfighter Starfighter
Starfighter
  • 2,185 Views

And it's really that simple!!!

Thanks Chetan!

Trevor "Red Hat Evangelist" Chandler
Trevor
Starfighter Starfighter
Starfighter
  • 2,185 Views

Thanks for the attempt TM!!!

Trevor "Red Hat Evangelist" Chandler
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 2,162 Views

Also:

# echo "DNS_Server" > /etc/hostname

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Trevor
Starfighter Starfighter
Starfighter
  • 2,148 Views

Kickin' it ole school !!!!

Trevor "Red Hat Evangelist" Chandler
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 2,038 Views

Which is apropros as I am, well, old....

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Join the discussion
You must log in to join this conversation.