/etc/hosts routing dns


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From - Mon Oct  1 07:15:23 2001
Path: typhoon.ne.mediaone.net!chnws06.ne.mediaone.net!24.147.2.43!chnws02.mediaone.net!newsfeed2.skycache.com!newsfeed1.cidera.com!Cidera!portc03.blue.aol.com!newsfeed.mathworks.com!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2
From: Jeff Liebermann <jeffl@comix.santa-cruz.ca.us>
Newsgroups: comp.unix.sco.misc
Subject: Re: Network Routing Problem
Date: Sun, 30 Sep 2001 09:12:41 -0700
Organization: Committee to Maintain and Independent Xenix
Lines: 59 Message-ID: <6agertkh6ecupbsec471o600i92cap9tq9@4ax.com> References: <mDdg7.12988$Z2.159902@nnrp1.uunet.ca> <vu65ot4um08kmeegur6jllg2sohcc3q1iv@4ax.com> <3BA115E0.6C6CF1B@bellsouth.net> <20010913164213.C14119@jpradley.jpr.com> <3BB611A1.55FADF3@bellsouth.net>
Reply-To: jeffl@comix.santa-cruz.ca.us
NNTP-Posting-Host: p-447.newsdawg.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.8/32.548
Xref: chnws06.ne.mediaone.net comp.unix.sco.misc:103945


Hate these ads?



I think you missed the point and the purpose of /etc/hosts.



The contents of /etc/hosts has nothing to do with establishing a route
to a remote computer.  You could put anything you want into /etc/hosts
and you still will not accomplish anything useful for routeing.  What
/etc/hosts does is a crude form of DNS (Don't kNow Service).  If you
have a computer name that constantly needs to be converted into an IP
address, put it in /etc/hosts and you won't need to go to the
nameserver every time that name needs to be resolved.  It's also
required for local network machine names that are NOT known to a DNS
server.














On the other foot, routeing is a bit more complex.  Run:
  netstat -rn
to see your router table.  The way it works (assuming static routes)
is that you start with a list of pre-defined routes to specific
machines and specific networks.  For example, if the local network is
a class C (256 IP's) at 192.168.111.XXX, everything destined for that
block of IP's will stay local and not go out via some router or
gateway.  If there's a remote block of machines at 192.168.222.xxx,
there will be a gateway shown in the router table, that says:
  "everything for 192.168.222.XXX shall go via that gateway"
If there are additional blocks of IP's, each will have a gateway which
designates which freeway offramp to take to get to the 192.168.222.xxx
block of IP's.  



Near the bottom is the default route, which points to a gateway to
take if the destination IP is NOT local, and NOT one of the static
routes.  Usually, it points to an ISP and the internet.





On Sat, 29 Sep 2001 14:23:29 -0400, "Frank J. Hajek"
<fjhajek@bellsouth.net> wrote:



>True. I missed the routing issue.
>
>Then, add route logic edited into /etc/tcp may do it, unless there are
>hundreds of combinations and subject to frequent changes. In that case, a
>separately maintained file sourced in /etc/tcp??
>
>
>Jean-Pierre Radley wrote:
>
>> Frank J. Hajek propounded (on Thu, Sep 13, 2001 at 04:24:00PM -0400):
>>
>> | Why not just add those hosts to /etc/hosts? Works for me.
>>
>> Adding a host to etc/hosts just helps to quickly get its IP number.  It
>> has zilch to do with routing packets to that host or to any other host.
>>
>> --
>> JP









-- 
Jeff Liebermann  150 Felker St #D  Santa Cruz CA 95060
(831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
http://www.LearnByDestroying.com   WB6SSY
jeffl@comix.santa-cruz.ca.us   jeffl@cruzio.com










-
Google Friend Connect users can
comment on this page here


Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


Views for this page
Today This Week This Month This Year  Overall
155145 1,305

/Bofcusm/840.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - Newsgroup




Unix/Linux Consultants


SCO, OpenServer, UnixWare, software, servers, security, networks, installation, administration, troubleshooting, maintenance, Watchguard, firewalls, VPNs, e-mail. Visit us at http://opensystemscomputing.com and www.go2unix.com.


http://www.schewanick.com SCO Unix, Solaris, Linx (various), PHP, MySQL, Apache, uniBasic, dL4, Perl, System Administration and more....


http://bcstechnology.net Full service Linux & UNIX systems integrator; Windows to UNIX/Linux Client-Server Specialist; Secure E-Mail & Website Hosting; Thoroughbred Software Developer; Custom Industrial Automation; Hardware & Electronics Experts; In Business Since 1985.



Twitter
  • Dec 3 14:01
    Just went out and added more bungee reinforcement. That ought to hold it..
  • Dec 3 13:58
    I'm second guessing myself on how I bungeed the cover on my golf cart for winter storage. Wondering if high wind could rip it off..




card_image








Change Congress