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

hostnamectl set-hostname DNS_Server

View solution in original post

7 Replies
TM
Flight Engineer Flight Engineer
Flight Engineer
  • 805 Views

hostnamectl DNS_Server

Chetan_Tiwary_
Community Manager
Community Manager
  • 765 Views

hostnamectl set-hostname DNS_Server

Trevor
Starfighter Starfighter
Starfighter
  • 761 Views

And it's really that simple!!!

Thanks Chetan!

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

Thanks for the attempt TM!!!

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

Kickin' it ole school !!!!

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