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 3rd July 2011, 07:04 AM
uchacker11 Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
windows_7chrome
Cannot ping by hostname on Fedora 14

I have 4 installations of Fedora 14 running on a Win 2008 R2 server in Hyper-V.

When I try to ping my desktop or the host server via the hostname from within any of the Fedora installations, the ping fails. I can ping by IP without issue. Also if I try to ping the VMs from my desktop it fails. I have an XP VM setup that I can ping without issue via hostname and IP.

All of the VMs can access the Internet without issue. I have disabled all firewalls on all systems with no luck. My desktop can ping the Hyper-V server without issue so it would appear that the problem lies with the Fedora installations.

my resolv.conf

Code:
# Generated by NetworkManager
nameserver 222.174.49.216
nameserver 222.174.49.215
Does anyone have anything I can try to get the name resolution working?
Reply With Quote
  #2  
Old 3rd July 2011, 07:46 AM
SteveGYBE's Avatar
SteveGYBE Offline
Registered User
 
Join Date: Jun 2007
Location: Lytham St Annes, Lancashire, UK
Posts: 309
linuxfirefox
Re: Cannot ping by hostname on Fedora 14

MS Active Directory includes a Dynamic DNS server which keeps track of all the Host names and IP addresses of the workstations in the domain, and for any other names/URLs it then forwards to Internet DNS servers for name resolution.

Fedora of course does not have Active Directory (at least by default, although the Samba tools may include similar functionality on Linux).

However, by far the simplest method is to add the IP Address/Hostname pairs to the /etc/hosts file on each machine. As long as the IP Addresses are static or DHCP is configured always to allocate the same address to each adapter, then it is not too difficult to maintain.
Reply With Quote
  #3  
Old 3rd July 2011, 09:33 AM
feinbein Offline
Registered User
 
Join Date: Jul 2011
Posts: 2
linuxfirefox
Re: Cannot ping by hostname on Fedora 14

Your virtual machines need to resolve to the DNS server in your LAN to get local adresses. As it is now your Fedora boxes query external servers for local adresses. The easiest way would be to copy the resolver from your XP-vm and set it up via network-manager in your fedora-boxes.
For the other issue you need to tell the DNS server in your AD about the fedora hosts. DNS-role usually resides on the domain-controller in smaller AD-installations. Just add static entries in dns on the server holding the dns-role.

Off course, SteveGYBEs solution with host files on all machines should work as well.
Reply With Quote
  #4  
Old 3rd July 2011, 12:55 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfedorafirefox
Re: Cannot ping by hostname on Fedora 14

Quote:
Originally Posted by SteveGYBE View Post
MS Active Directory includes a Dynamic DNS server which keeps track of all the Host names and IP addresses of the workstations in the domain, and for any other names/URLs it then forwards to Internet DNS servers for name resolution.

Fedora of course does not have Active Directory (at least by default, although the Samba tools may include similar functionality on Linux).
WTF ? Linux has several standards based Active directory services, typically LDAP directory services, and the '389' which is readily available on Fedora s among the best supported.
Yes it can be used with MS Active-Directory.
http://docs.fedoraproject.org/en-US/...directory.html
You can USE Samba with LDAP services but it does not supply the service - a client.
http://wiki.samba.org/index.php/Samb...ctory_%26_LDAP

From what I read MS-Active_Directory relies on DNS with certain properties, rather than providing it, so active dircetory is a side-topic.


Quote:
However, by far the simplest method is to add the IP Address/Hostname pairs to the /etc/hosts file on each machine. As long as the IP Addresses are static or DHCP is configured always to allocate the same address to each adapter, then it is not too difficult to maintain.
He can use /etc/hosts. He could setup a *local* DNS service (the IP addresses are for an ISP, I think) on Linux I'd suggest dnsmasq - but on Win ...? He could use mDNS from zeroconf - no idea if Win supports that.

Looks like there are several free DNS servers for Win in case he's not running winserver.


http://en.wikipedia.org/wiki/Compari...erver_software
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #5  
Old 3rd July 2011, 06:11 PM
uchacker11 Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
windows_7chrome
Re: Cannot ping by hostname on Fedora 14

Thanks for the replies.

Both of the IPs listed in my resolv.conf file are in fact my local DNS servers. .216 is the Hyper-V box and .215 is an Ubuntu DNS server running Bind.

I believe that I have figured out the problem. Since these machines have been added to a domain I had to add the domain name to the search domain in Network Manager. And I added A records to my DNS servers for the individual servers since they have static IPs.
Reply With Quote
Reply

Tags
fedora, hostname, ping

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
Ping using hostname era_pk Servers & Networking 3 20th November 2008 09:10 PM
ping other computers by hostname hyperplus Servers & Networking 12 7th August 2008 03:24 PM
cannot ping by hostname projkt4 Servers & Networking 11 4th September 2005 08:48 PM
Fedora Core 3 Hostname Error (Windows cannot ping 'hostname') 3K Tech Servers & Networking 1 3rd January 2005 03:24 AM


Current GMT-time: 12:48 (Friday, 24-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