Set hostname

Set host name on Centos:

/etc/sysconfig/network

 

HOSTNAME="mycomputer"


/etc/hosts wrote:

127.0.0.1 mycomputer.mydomain.local mycomputer

 

check it with

hostname 
hostname --fqdn
hostname -a

 

Was this answer helpful?

 Print this Article

Also Read

Iptables

Iptables is a Linux based packet filtering firewall. It is a service (daemon)...

Backing up VPS from the inside

This guide will show you how to backup your vsp/container "from the inside vps". First of...

Backup script sample

#!/bin/bash echo "packing files in progress..." tar -cf /home/backup/root_lib-$(date...

Asteriks +TLS+RSTP Encrypt on centos

IN PROGRESS! this guide was gathered from official asteriks wikies...

Configure OpenVPN client on Windows

How to configure OpenVPN client on Windows: First download and install the client. Then...