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 27th July 2010, 04:15 AM
crokett Offline
Registered User
 
Join Date: Jul 2010
Posts: 43
linuxfedorafirefox
Resolving Host Names To IP Address

At work we run DHCP. hostnames have the format: computername.city.mycompany.com

I have a laptop runing Fedora 13 and a desktop I use for backups, etc. My laptop is named copernicus. Desktop is named galileo. If ping either hostname from itself I get back the localhost IP address. If I ping the fully resolved hostname it tells me unknown host. The desktop is exporting an NFS share I use for backing up work data. I need the laptop to be able to resolve host names to mount the share since we use DHCP. The desktop is dual boot and if it is booted into windows my laptop can resolve the hostname properly. What do I need to do in Fedora to get it to register a hostname with the DNS and/or DHCP server? Should the domain and the search path below both say the same thing?

Here is resolv.conf on the laptop (I am at home). The desktop looks the same, except for a different nameserver. Both computers can resolve other hostnames, just not each other.

nameserver 192.168.1.1
# Generated by NetworkManager
domain <mycompany>.com
search raleigh.<mycompany>.com
Reply With Quote
  #2  
Old 27th July 2010, 06:05 AM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,016
linuxmozilla
Re: Resolving Host Names To IP Address

The other is the intenernet and the dns is on the isp's server.
You need a local dns or at the least the hot and ip in the /etc/host file

The local dns called named (name dee) is package bind and can be set up to handle things while online and fall back to local lan when off line using the conf files of bind, resolver, and so on.

Maybe you could find a specific setup with google searches.
Or the bind documentation.

SJ
__________________
Do the Math
Reply With Quote
  #3  
Old 27th July 2010, 08:38 AM
nimnull22 Offline
Registered User
 
Join Date: Feb 2010
Posts: 187
linuxopera
Re: Resolving Host Names To IP Address

What DHCP client do you use?
If it is dhclient it can send hostname (which one HAVE to specify in configuration file) to DHCP server (I hope it is router or GW as well), read "man dhclient"
Reply With Quote
  #4  
Old 27th July 2010, 09:57 AM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,016
linuxmozilla
Re: Resolving Host Names To IP Address

He means to find the other computer by hostname and get the ip resolved on his lan.
A lan needs a local set of hostname ip to reference.
dhclient ip could change and screw up any transfer programs by RSA signature, but that is another issue.

SJ
__________________
Do the Math
Reply With Quote
  #5  
Old 27th July 2010, 01:54 PM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
linuxfedorafirefox
Re: Resolving Host Names To IP Address

The OP question is very confusing.
Are you having problems resolving hostnames on the work Lan where there is a DNS server or at home ?
Perhaps you are connected to the work LAN from home ? How ? VPN ?

WIndows uses an SMB name resolution technique while Linux and the IETF standard call for DNS protocol.

You can mount nfs using just IP addresses.
You can create a simple name<=>IP mapping using the /etc/hosts file.
You can setup a DNS server ,but it needs to be up all the time and it needs to be integrated with your dhcp service - so unless your router supports it, (see dd-wrt and open-wrt firmware for many routers) then it's a little project

The Apple mDNS is supported on Linux, and doesn't requoire a central server, but all the config changes from F12 to F13 - so I can't provide a method.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #6  
Old 27th July 2010, 02:55 PM
crokett Offline
Registered User
 
Join Date: Jul 2010
Posts: 43
linuxfedorafirefox
Re: Resolving Host Names To IP Address

Quote:
Originally Posted by SlowJet View Post
He means to find the other computer by hostname and get the ip resolved on his lan.

SJ
Work uses DHCP. The IP addresses change, on average twice a week. I guess they like to prune stale leases or something. So I can't use hosts file. I also can't use just the IP address since they change.

When I have my work desktop booted to Windows, from itself or my laptop I can ping the desktop's fully resolved hostname and get back the IP address on my company's intranet. If the desktop is booted into Linux, I can't. So Windows is somehow registering its hostname with the DCHP server. I need to be able to resolve the hostname as I use the desktop to export an NFS share and want to script and schedule a backup on the laptop.

This isn't an SMB issue. If the desktop is booted to Windows, my laptop running Linux can resolve the hostname with a simple ping. I am not running SMB on the desktop anyway, my company doesn't allow it.

I will check on which client I am using and see what options there are.

---------- Post added at 09:55 AM CDT ---------- Previous post was at 09:43 AM CDT ----------

Ok this looks like what I want:

http://linux.die.net/man/5/dhclient.conf

I am working remotely today but will try this tomorrow and see what happens.

Thanks for the suggestion.

Last edited by crokett; 27th July 2010 at 02:47 PM.
Reply With Quote
  #7  
Old 27th July 2010, 03:17 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,150
linuxfedorafirefox
Re: Resolving Host Names To IP Address

If you are using windows anywhere, you are using SMB.

If you are using Windows shares anywhere you HAVE to be using SMB, or
the shares won't work...
Reply With Quote
Reply

Tags
address, host, names, resolving

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
Resolving Local names using DNS & BIND lukewood Servers & Networking 4 25th October 2007 05:06 AM
Help!! Resolving Host Names nicwillemse Servers & Networking 6 14th August 2007 05:35 AM
FC5 not resolving computer names to IPs crossmr Servers & Networking 3 20th May 2006 04:20 PM


Current GMT-time: 07:48 (Thursday, 20-06-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