cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 2,186 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,126 Views

hostnamectl set-hostname DNS_Server

View solution in original post

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

hostnamectl DNS_Server

Chetan_Tiwary_
Community Manager
Community Manager
  • 2,127 Views

hostnamectl set-hostname DNS_Server

Trevor
Starfighter Starfighter
Starfighter
  • 2,123 Views

And it's really that simple!!!

Thanks Chetan!

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

Thanks for the attempt TM!!!

Trevor "Red Hat Evangelist" Chandler
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 2,100 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,086 Views

Kickin' it ole school !!!!

Trevor "Red Hat Evangelist" Chandler
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 1,976 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.