LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-24-2010, 10:44 PM   #1
swatchie
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
Fedora 14 Not able to ping the hostname from any system.


I did a new install of Fedora 14. This is my first time using Linux seriously and I am trying to figure it all out.

I am able to ping my hostname of sinbad only from the linux system itself. On all my windows boxes, I am not able to ping it. I can only ping the IP address.

Here is /etc/hosts:
Quote:
192.168.160.103 sinbad # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost sinbad.localdomain localhost4
::1 sinbad localhost6.localdomain6 localhost6
I disabled the firewall, disabled SELinux, and still not able to ping it.

here is the info from ifcfg-eth0 :

Quote:
DEVICE=eth0
BOOTPROTO=dhcp
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
#IPV6INIT=no
NAME="System eth0"
#UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
USERCTL=no
HWADDR=00:E0:4C:96:F6:44
PEERDNS=yes
PEERROUTES=yes
DHCP_HOSTNAME=pirates
IPV6INIT=no
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
and the resolv.conf
Quote:
# Generated by NetworkManager
domain austin.rr.com
search austin.rr.com
nameserver 209.18.47.61
nameserver 209.18.47.62

I have been messing with this all day and it is starting to make me mad. I looked over all 7 pages here and was not able to find a resolution, so I am hoping that someone will be able to have an answer to this.

Last edited by swatchie; 11-24-2010 at 10:45 PM.
 
Old 11-24-2010, 10:49 PM   #2
JoshyJ
Member
 
Registered: Nov 2003
Location: Sydney , Australia
Distribution: Fedora
Posts: 49

Rep: Reputation: 1
Removed due to reading problem wrong.

Last edited by JoshyJ; 11-24-2010 at 11:06 PM. Reason: Removed due to reading problem wrong.
 
Old 11-24-2010, 11:02 PM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
You are going about this from the wrong direction. The problem isn't on the Linux box, it is on the Windows systems. Your system isn't in DNS, and therefore they don't know the IP address associated with the Linux hostname (computers don't care about hostnames, they only know how to talk addresses and need some way to convert the name you tell them to the address they can understand). You need to add the hostname and IP address to c:\Windows\system32\drivers\etc\hosts on your Windows systems or set up a local DNS server and have that serve the hostname/ip resolution (I'd op for the former since it requires much less technical knowledge).

HTH

Forrest

Last edited by forrestt; 11-24-2010 at 11:04 PM.
 
Old 11-24-2010, 11:15 PM   #4
swatchie
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by forrestt View Post
You are going about this from the wrong direction. The problem isn't on the Linux box, it is on the Windows systems. Your system isn't in DNS, and therefore they don't know the IP address associated with the Linux hostname (computers don't care about hostnames, they only know how to talk addresses and need some way to convert the name you tell them to the address they can understand). You need to add the hostname and IP address to c:\Windows\system32\drivers\etc\hosts on your Windows systems or set up a local DNS server and have that serve the hostname/ip resolution (I'd op for the former since it requires much less technical knowledge).

HTH

Forrest
This was exactly it. I was just trying to reply to that effect. I am guessing that I need to add all my windows systems to the linux /etc/hosts file as well.

Might have to look at setting up a DNS server then. This is all a learning experience for me anyway so this will be good.

Thanks !
 
Old 11-25-2010, 02:39 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
You may not need dns.

Do all of your windows boxes have the hosts file entries for all of your systems? Each name should be set to each boxes ip in all systems. Every box should be in the list.
 
Old 11-28-2010, 10:34 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I don't know what you are using a router/gateway/firewall; but if you were using IPCop or SmoothWall Express, the hosts file on the firewall box would be served to the LAN as a "master" hosts file. You'd also get a good firewall .

This behavior is a feature of dnsmasq, which you could install on your Linux box. I found both .deb & .rpm packages.
 
  


Reply



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
FC13 install can ping by hostname, ssh by hostname fails jeffk42 Linux - Networking 4 11-14-2011 11:27 AM
can ping ip but not hostname mrbabis Linux - Networking 17 06-07-2006 12:26 PM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
Can ping by IP but not by hostname gillesdutertre Linux - Networking 8 09-01-2003 07:59 AM
can ping by IP but not by hostname al contado Linux - Networking 6 03-16-2003 03:06 AM

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

All times are GMT -5. The time now is 05:05 PM.

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