LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-15-2006, 05:43 AM   #1
Chocolate
LQ Newbie
 
Registered: Nov 2006
Posts: 23

Rep: Reputation: 15
Red face host name..?


hi all

Q1-i want to know from where i can change the hostname of my machine in fedora ?

Q2-how can i know my full domain names?

thank you
choco...

Last edited by Chocolate; 11-15-2006 at 06:13 AM.
 
Old 11-15-2006, 09:17 AM   #2
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
host names

first you need to have given your machine a host name and to do so just use X to go to sytem settings and click on networks. There you will find an option to enter your network details.
 
Old 11-15-2006, 09:34 AM   #3
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
Edit these files


/etc/hosts

and

/etc/sysconfig/network
 
Old 11-15-2006, 09:45 AM   #4
rbraupp
LQ Newbie
 
Registered: Aug 2006
Distribution: Mandriva
Posts: 1

Rep: Reputation: 0
And then come the "hard way"....

This information comes from the "info" utility (info hostname) while logged into a terminal as super user:

The commands are:
hostname - show or set the system's host name
domainname - show or set the system's NIS/YP domain name

SYNOPSIS
hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [-i] [--ip-address] [--long] [-s] [--short] [-y] [--yp] [--nis] [-n] [--node]

hostname [-v] [-F filename] [--file filename] [hostname]

domainname [-v] [-F filename] [--file filename] [name]


When called without any arguments, these program displays the current names. Only the super user can set the values.

The host name is usually set once at system startup in /etc/rc.d/rc.inet1 or /etc/init.d/boot (normally by reading the contents of a file which contains the host name, e.g. /etc/hostname).

THE FQDN
You can't change the FQDN (Fully Qualified Domain Name as returned by hostname --fqdn). The FQDN of the system is the name that the resolver returns for the host name.

Technically: The FQDN is the name gethostbyname returns for the host name returned by gethostname. The DNS domain name is the part after the first dot.

Therefore it depends on the configuration (usually in /etc/host.conf) how you can change it. Usually (if the hosts file is parsed before DNS or NIS) you can change it in /etc/hosts.
 
  


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
host-to-host USB cable: how to make it work under debian?? stefan_578 Linux - Hardware 18 12-20-2006 02:09 PM
connecting a host to internet thru another host (both running suse9.3) rcbell Linux - Networking 1 12-17-2005 05:35 PM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 08:48 AM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM
How to configure Host-to-Host IPSec (Free SWAN) gpagedar Linux - Security 2 10-18-2003 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:08 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
Open Source Consulting | Domain Registration