cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Commander Commander
Commander
  • 5,199 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
  • 5,139 Views

hostnamectl set-hostname DNS_Server

View solution in original post

7 Replies
TM
Starfighter Starfighter
Starfighter
  • 5,180 Views

hostnamectl DNS_Server

Chetan_Tiwary_
Community Manager
Community Manager
  • 5,140 Views

hostnamectl set-hostname DNS_Server

Trevor
Commander Commander
Commander
  • 5,136 Views

And it's really that simple!!!

Thanks Chetan!

Trevor "Red Hat Evangelist" Chandler
Trevor
Commander Commander
Commander
  • 5,136 Views

Thanks for the attempt TM!!!

Trevor "Red Hat Evangelist" Chandler
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 5,113 Views

Also:

# echo "DNS_Server" > /etc/hostname

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Trevor
Commander Commander
Commander
  • 5,099 Views

Kickin' it ole school !!!!

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