cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 821 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
  • 761 Views

hostnamectl set-hostname DNS_Server

View solution in original post

7 Replies
TM
Flight Engineer Flight Engineer
Flight Engineer
  • 802 Views

hostnamectl DNS_Server

Chetan_Tiwary_
Community Manager
Community Manager
  • 762 Views

hostnamectl set-hostname DNS_Server

Trevor
Starfighter Starfighter
Starfighter
  • 758 Views

And it's really that simple!!!

Thanks Chetan!

Trevor "Red Hat Evangelist" Chandler
Trevor
Starfighter Starfighter
Starfighter
  • 758 Views

Thanks for the attempt TM!!!

Trevor "Red Hat Evangelist" Chandler
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 735 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
  • 721 Views

Kickin' it ole school !!!!

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