Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th April 2010, 05:01 PM
kp7qc Offline
Registered User
 
Join Date: Apr 2010
Posts: 19
windows_xp_2003ie
hostname on FC is different over the network

Hi, I'm a total newbie here so please be patient with me.

I've just installed FC12 on my nettop and I've notice that when I go to "system -> network" the hostname is "Fedora001". When I ping its IP I get "new-host.home". What did I do or didn't do? How do I correct this? Do I need to change it in the "hostname" file?Also, can I leave "domain" field blank?

Thank you so much everyone!!!
Reply With Quote
  #2  
Old 8th April 2010, 06:14 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: hostname on FC is different over the network

Hello,

Here is a website that should help you

http://jblevins.org/computing/linux/hostname
Reply With Quote
  #3  
Old 8th April 2010, 07:11 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Re: hostname on FC is different over the network

Also--

You can ignore the X server issues unless you have enabled TCP connections to
the server. To do that calls for a manual intervention on the X configuration as the
X server will use a domain socket for all local connections.

If you must get remote X connections to work then I strongly recommend using
ssh to forward X connections (it is MUCH more secure than direct TCP connections
and in some cases is even faster)
Reply With Quote
  #4  
Old 10th April 2010, 11:26 PM
kp7qc Offline
Registered User
 
Join Date: Apr 2010
Posts: 19
windows_7firefox
Re: hostname on FC is different over the network

Thanks guys...this is very helpful!!!

Last edited by kp7qc; 11th April 2010 at 02:12 PM.
Reply With Quote
  #5  
Old 11th April 2010, 02:16 PM
kp7qc Offline
Registered User
 
Join Date: Apr 2010
Posts: 19
linuxfedorafirefox
Re: hostname on FC is different over the network

ok, so I've read that link and check my hostname according to it but I'm still seeing "new-host.home" over the network as the hostname. My F12 is connected wirelessly could that be the reason why? what else can I change to see "fedora001" as my hostname over the network? Thanks again!
Reply With Quote
  #6  
Old 11th April 2010, 04:00 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: hostname on FC is different over the network

look in /etc/hosts , /etc/sysconfig/network-scripts/ethX , /etc/HOSTNAME , /etc/resolv.conf , /etc/sysconfig/network
Reply With Quote
  #7  
Old 11th April 2010, 05:06 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Re: hostname on FC is different over the network

You will also have to check the name server configuration files /etc/named.conf.

In my case, I have a caching only server so no local names are supported. but
you may have a local zone defined which may have the name.

well, part of the name. When the system uses DNS for a lookup it appends
the domain specified in the /etc/resolv.conf to the hostname to find an IP number.

Because my /etc/resolv.conf file is configured via DHCP, my ISP specifies that
it contain:
Code:
domain myhome.westell.com
search myhome.westell.com
nameserver 192.168.1.1
nameserver 192.168.0.8
My addition is the 192.168.0.8 for my local server to access the local cache.

This means that any hostname being referenced will be <hostname>.myhome.westell.com.

It is possible to add another search entry to try a different domain (say for local
hosts).
Reply With Quote
  #8  
Old 12th April 2010, 05:57 AM
kp7qc Offline
Registered User
 
Join Date: Apr 2010
Posts: 19
windows_7firefox
Re: hostname on FC is different over the network

Hey guys, I've looked at all the files that you have mention and I can't find hostname "new-host" anywhere. I really appreciate your patient and time. Any additional info would really help! THANK YOU

/etc/hosts
# hostname fedora001 added to /etc/hosts by anaconda
127.0.0.1 localhost.localdomain localhost fedora001
::1 localhost6.localdomain6 localhost6 fedora001

/etc/sysconfig/network-scripts/ethX: (there's no such file that starts with 'ethX')
ifcfg-eth0 ifdown-isdn ifup-eth ifup-ppp
ifcfg-lo ifdown-post ifup-ippp ifup-routes
ifcfg-wlan0 ifdown-ppp ifup-ipsec ifup-sit
ifdown ifdown-routes ifup-ipv6 ifup-tunnel
ifdown-bnep ifdown-sit ifup-ipx ifup-wireless
ifdown-eth ifdown-tunnel ifup-isdn init.ipv6-global
ifdown-ippp ifup ifup-plip net.hotplug
ifdown-ipsec ifup-aliases ifup-plusb network-functions
ifdown-ipv6 ifup-bnep ifup-post network-functions-ipv6

/etc/HOSTNAME:
no such file

/etc/resolv.conf:
# Generated by NetworkManager
domain home
search home
nameserver 192.168.1.1
nameserver x.x.x.x

/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=fedora001
Reply With Quote
  #9  
Old 12th April 2010, 02:46 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: hostname on FC is different over the network

Under /etc/hosts
change this
127.0.0.1 localhost.localdomain localhost fedora001
TO
127.0.0.1 fedora001 localhost.localdomain localhost

/etc/resolv.conf
nameserver x.x.x.x
TO
nameserver 8.8.8.8



NOTE: 8.8.8.8 is google DNS servers
Reply With Quote
  #10  
Old 12th April 2010, 03:46 PM
kp7qc Offline
Registered User
 
Join Date: Apr 2010
Posts: 19
windows_7firefox
Re: hostname on FC is different over the network

I've made the change and rebooted F12 but it still shows the same. This thing is driving crazy...this never happened when I had windows XP installed. :-p I can't see what else could it be. Thanks again Scott32746!

C:\Users\user1>ping -a 192.168.1.3

Pinging new-host.home [192.168.1.3] with 32 bytes of data:
Reply from 192.168.1.3: bytes=32 time=10ms TTL=64
Reply from 192.168.1.3: bytes=32 time=5ms TTL=64
Reply from 192.168.1.3: bytes=32 time=4ms TTL=64
Reply With Quote
  #11  
Old 12th April 2010, 03:57 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: hostname on FC is different over the network

Do you think you have the ip being used by a different computer ?
In /etc/hosts what is 192.168.1.3 assigned to ?
Sorry in etc/sysconfig/network-scripts I made an error
look in /etc/sysconfig/network-scripts/ifcfg-eth0 and ifcfg-wlan0
Reply With Quote
  #12  
Old 12th April 2010, 04:34 PM
kp7qc Offline
Registered User
 
Join Date: Apr 2010
Posts: 19
windows_7firefox
Re: hostname on FC is different over the network

I've check all my other PC and there are no duplicate IP. Should I assign a static IP for "fedora001"? but then there's no point of having my router giving out IP via DHCP.

/etc/hosts:
# hostname fedora001 added to /etc/hosts by anaconda
# 127.0.0.1 localhost.localdomain localhost fedora001
127.0.0.1 fedora001 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6 fedora001

/etc/sysconfig/network-scripts/ifcfg-eth0:
# Intel Corporation 82540EM Gigabit Ethernet Controller
DEVICE=eth0
HWADDR=00:08:74:01:AE:F0

/etc/sysconfig/network-scripts/ifcfg-wlan0:
# Manufacturer_Realtek RTL8187B_WLAN_Adapter
DEVICE=wlan0
HWADDR=00:131:0D:BF:AB
Reply With Quote
  #13  
Old 12th April 2010, 04:42 PM
zek Offline
Registered User
 
Join Date: Feb 2007
Posts: 9
linuxfedorafirefox
Re: hostname on FC is different over the network

Hi, don't despair

I had a similar problem on my system. In my case the cause was not Fedora but that the DNS name server did not support IPv6.

Disabling IPv6 allowed Fedora to set the hostname on the network. XP doesn't have that problem on my system because well I don't know maybe it's too old.

To disable IPv6, edit your
/etc/sysconfig/network-scripts/ifcfg-eth0
or
/etc/sysconfig/network-scripts/ifcfg-wlan0

And add the following
Code:
IPV6INIT=no
IPV6_AUTOCONF=no
Then reboot. (Well technically it's enough to restart the network service, but anyhow.)
Reply With Quote
  #14  
Old 12th April 2010, 04:51 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Re: hostname on FC is different over the network

Since this is the name seen by other systems it MUST be in DNS somewhere.

What is the DNS server for your windows system?
Reply With Quote
  #15  
Old 12th April 2010, 05:21 PM
kp7qc Offline
Registered User
 
Join Date: Apr 2010
Posts: 19
windows_7firefox
Re: hostname on FC is different over the network

Hi Zek, I've done what you've suggested and rebooted but no change. I'm running F12 at home so I do not have a DNS server.
Reply With Quote
Reply

Tags
hostname, network

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F11 Network Manager/hostname problems Willyham Using Fedora 1 28th July 2009 06:54 PM
FC6 - PING and <hostname> issues - wireless network ziadnaamani Servers & Networking 0 21st May 2008 03:17 PM
The Hostname doesn't appear? hermouche Servers & Networking 7 25th September 2007 07:17 AM
hosts puzzle ->host hostname -> host hostname not found alphonsebrown Servers & Networking 2 30th March 2005 09:26 AM
Fedora Core 3 Hostname Error (Windows cannot ping 'hostname') 3K Tech Servers & Networking 1 3rd January 2005 03:24 AM


Current GMT-time: 15:35 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat