Re: How to reach a computer by hostname on a LAN?

From: Jason Powers (powers.jason_at_jimmy.harvard.edu)
Date: 12/28/04

  • Next message: Ben Stanley: "GPL ghostscript 8.15 is available - why is 7.07 still in FC3?"
    Date: Tue, 28 Dec 2004 02:04:38 -0500
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Sorry if my reply was 'off', I read Chris' email and assumed he was
    talking about a home LAN, since I get this question so often at work. My
    advice works for the home setup, Gene's works best if you're at work.

    Jason

    Gene Heskett wrote:
    > On Tuesday 28 December 2004 01:25, Christopher J. Bottaro wrote:
    >
    >>Simple setup. I have a router that assigns IP addresses by DHCP. I
    >>have two linux machines: compa and compb which get their IP
    >>addresses using DHCP with the router. From compa, I want to be
    >>able to say "ping compb" instead of having to use ifconfig on compb
    >>to figure out what its IP address is, then ping it (i.e. "ping
    >>192.168.1.3").
    >>
    >>How is this possible? Manually editing the /etc/hosts file doesn't
    >>work because the IP addresses can change at boot (or whenever DHCP
    >>is used to get a new address).
    >>
    >>Thanks.
    >
    >
    > Turn off the dhcp in the router and use the /etc/hosts file to do the
    > resolving. You can use the same hosts file throughout your local
    > network. I've been doing that here for 6 or 7 years. You'll have to
    > assign the local ip address per machine in
    > the /etc/sysconfig/network-scripts/ifcfg-eth0 scripts also, which
    > will give a fixed address for that machine. To me, dhcp on a small
    > home network, or even on an 80+ machine business internal network is
    > a waste of time and resources. But then thats just my opinion too.
    >
    > One could even setup a cron job on those machines that have a cron, to
    > grab the master copy of the hosts file and refresh it if the network
    > is being constantly changed. That would take a load off the IT guy,
    > who usually has his own pool of alligators to wrestle.
    >

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Ben Stanley: "GPL ghostscript 8.15 is available - why is 7.07 still in FC3?"

    Relevant Pages

    • Re: DOA Airport Extreme?
      ... I've not experimented with the guest network. ... at all clear that that is how to make it a pure AP and kill the DHCP ... That is a point Apple could clarify in the manual setup. ...
      (uk.comp.sys.mac)
    • DNS config for dhcp
      ... I have a DHCP setup, and as part of the network interface config, i've ... got my hostname and domain setup as rainier.sbcglobal.com. ...
      (freebsd-questions)
    • Re: Small office network with a FreeBSD server
      ... That depends on your network connection. ... Then you'll want to setup a dhcp server. ... and the statically assigned machines separate. ... Lots of options but a simple setup isn't hard. ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Windows XP laptop with Static and DHCP requirement
      ... Assuming you want to setup one NIC with two IP addresses, one for static IP and another one for DHCP, you can use alternative configuration. ... How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com ... static IP assignment and connected to our SBS2k3 domain. ...
      (microsoft.public.windowsxp.network_web)
    • Problem Installing 3.1r5 i386 (networking)
      ... My current setup is an XP box with masquerading and 3.1r5 installed on another box, ... Now I'm trying to set up a dual-boot on the main box but I can't get Debian to connect to the network properly like it always could before. ... The installer configures itself with DHCP fine: it has an appropriate IP address, broadcast address, and gateway address, and /etc/resolv.conf is also appropriate. ...
      (Debian-User)