LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2014, 05:14 AM   #1
dicky238hk
LQ Newbie
 
Registered: Aug 2014
Posts: 18

Rep: Reputation: Disabled
Red face Device Name setting in Settings -> System -> Overview of CentOS 7


Hi,

Confusing the Device Name found from Settings-->System-->Overview from CentOS 7, let's say 'abcdefg'

when I type the command of 'hostname' under root login it shows
abcdefg

but check /etc/sysconfig/network the information is
NETWORKING=YES
HOSTNAME=tuvwxyz

It is different....

Additionly I would like to know the difference between hostname and domain name in CentOS 7.

Thanks.
 
Old 09-18-2014, 08:53 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,913
Blog Entries: 14

Rep: Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142
If you update hostname in /etc/sysconfig/network you have to reboot the server for the new value to take effect.
 
Old 09-19-2014, 01:15 AM   #3
dicky238hk
LQ Newbie
 
Registered: Aug 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
Hi,

I did know whenever change hostname I need to restart it. The result was coming after reboot. It is confused why hostname returned from /etc/sysconfig/network is different from terminal with 'hostname' typed.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gpointing-device-settings settings will not stay after reboot texasone Linux - Hardware 5 09-06-2013 06:00 PM
Setting system wide settings with Xorg and GDM3 hamtavs Linux - Hardware 3 02-05-2013 12:38 AM
[SOLVED] Where to find "KDE System Settings" in GNOME 2 menu in CentOS 6.3 / Stella OS? PasBern Linux - Desktop 3 12-25-2012 01:48 PM
LXer: Overview of CentOS 6 LXer Syndicated Linux News 0 07-17-2011 10:30 PM
LXer: DistroWatch Weekly: Overview of KNOPPIX and Slackware, CentOS 5, OLPC LXer Syndicated Linux News 0 04-16-2007 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration