≡ Menu

hostname

How do I find out my RHEL (Red Hat Enterprise Linux) 6 Linux kernel version number running on HP server?
[click to continue…]

Where are NIC (network interface configuration) files located in the Redhat / Fedora / Centos Linux?
[click to continue…]

OpenBSD Change Hostname

Q. How do I change my hostname under OpenBSD operating system?
[click to continue…]

I'm setting up WordPress based blog system under Debian or Ubuntu Linux. I am getting an error which read as follows:

Tutorial details
DifficultyEasy (rss)
Root privilegesYes
RequirementsNone
Estimated completion timeN/A

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

How do I fix this problem under Debian or Ubuntu Linux?
[click to continue…]

Q. I get following error message for my postfix email server:

Mail Delivery Failed With DNS Service Unavailable Error and Solution

How do I fix this problem?
[click to continue…]

Q. I have Debian Linux server in remote data center. I can ping server by its IP but not by hostname such as server.domain.com. How do I ping server by hostname?

A. This is client side DNS problem. All you have to do is setup correct DNS server:

=> Linux DNS Client Configuration

=> Solaris DNS Client Configuration

Q. I’m using Ubuntu Linux. How do I change my hostname or the machine name?

A.. You need to use hostname command, which is used to either set or display the current host or domain name of the system. This name is used by many of the networking programs to identify the machine.

Following instructions should work on both Debian and Ubuntu Linux systems.

Task: Display current hostname

Just type hostname command print the name of the system:
$ hostname
Output:

vivek-desktop.gite.in

Task: Change hostname

Set hostname to desktop.nixcraft.com:
# hostname desktop.nixcraft.com
# hostname

Output:

desktop.nixcraft.com

Task: Change hostname permanently

You need to edit a file called /etc/hostname:
# vi /etc/hostname
Set new hostname:

desktop.nixcraft.com

Save and close the file.

A note for Redhat / CentOS Linux users

If you are using CentOS or Fedora or Redhat (RHEL) Linux, see this FAQ.