From owner-freebsd-newbies Fri Jul 21 6:39:14 2000 Delivered-To: freebsd-newbies@freebsd.org Received: from hotmail.com (f191.law7.hotmail.com [216.33.237.191]) by hub.freebsd.org (Postfix) with SMTP id 6428E37B9F4 for ; Fri, 21 Jul 2000 06:39:09 -0700 (PDT) (envelope-from ewitkop90@hotmail.com) Received: (qmail 47158 invoked by uid 0); 21 Jul 2000 13:39:08 -0000 Message-ID: <20000721133908.47157.qmail@hotmail.com> Received: from 207.43.195.202 by www.hotmail.com with HTTP; Fri, 21 Jul 2000 06:39:08 PDT X-Originating-IP: [207.43.195.202] From: "erik witkop" To: augusto.bott@via-rs.net, freebsd-newbies@freebsd.org Subject: Re: hostname on standalone machine Date: Fri, 21 Jul 2000 06:39:08 PDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Not to nit-pick but I do like to explore all angles. I do not think you need to put in an external dns ip if you are on a LAN with a proxy. I think, I could be wrong, but the dns, internal or external, will forward the ip, sort of like a bootp helper address, in instances where it cannot find name resolution. I think that a dns server, at last resort will forward to arin,internet, etc.. Any thoughts? >From: "Augusto Bott" >To: >Subject: Re: hostname on standalone machine >Date: Fri, 21 Jul 2000 04:59:24 -0300 >MIME-Version: 1.0 >Received: from [204.216.27.18] by hotmail.com (3.2) with ESMTP id >MHotMailBB414D3D00A3D82197EFCCD81B1266EC0; Fri Jul 21 00:57:26 2000 >Received: by hub.freebsd.org (Postfix, from userid 538)id 250D537B6FA; Fri, >21 Jul 2000 00:56:34 -0700 (PDT) >Received: from localhost (localhost [127.0.0.1])by hub.freebsd.org >(Postfix) with SMTPid 1DE5D2E816F; Fri, 21 Jul 2000 00:56:34 -0700 >(PDT)(envelope-from owner-freebsd-newbies) >Received: by hub.freebsd.org (bulk_mailer v1.12); Fri, 21 Jul 2000 00:56:34 >-0700 >Received: from smtp-2.ig.com.br (smtp-2.ig.com.br [200.225.157.61])by >hub.freebsd.org (Postfix) with SMTP id DF91537B6ECfor >; Fri, 21 Jul 2000 00:56:26 -0700 >(PDT)(envelope-from augusto.bott@via-rs.net) >Received: (qmail 18624 invoked from network); 21 Jul 2000 07:59:33 -0000 >Received: from unknown (HELO ig) (200.213.75.234) by smtp-2.ig.com.br with >SMTP; 21 Jul 2000 07:59:33 -0000 >From owner-freebsd-newbies@FreeBSD.ORG Fri Jul 21 00:59:30 2000 >Delivered-To: freebsd-newbies@freebsd.org >Message-ID: <00fe01bff2e9$97676260$0201040a@ig> >References: >X-Priority: 3 >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook Express 5.00.2314.1300 >X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 >Sender: owner-freebsd-newbies@FreeBSD.ORG >X-Loop: FreeBSD.org >Precedence: bulk > >Hi Andrew! > >And gurus, forgive me if I'm saying somethig wrong.... > > > connection to the outside world is via a dialup PPP link with dynamic IP > > address. I have not much knowledge of networking. > >Once I had a LAN which each one of the machines could dial, but I arranged >things up so the >freebsd box would dial, nice and easy. It doesn't really matter your LAN >ip, >because the PPP >interface sets one for you, and fixes it's routing tables, so, if you 're >on >a single machine which it's >only connection is a ppp dial-up link, you are praticly done. > > > I am not sure as to what problems may be caused by my selecting a > > hostname, which, as far as the internet is concerned, does not "really" > > exist (i.e. is not on any DNS). > >And, to the outside world, doesn't really matters (depending on your ISP, >you may have to "belong" >(set yours) to their domain). BTW, are you running your own DNS (may be >caching lookups?)? > > > 1. edit "/etc/rc.conf" to set my hostname to, say, "araby.an.org.au". >Is this domain from your ISP? Even if it isn't, MAY be no problem... > > > 2. edit host.conf to be > > hosts > > bind > >meaning, it it'll first look on the local table (hosts) , then ask the >nameserver. >Before item number 4, you may have forgotten about /etc/resolv.conf >I don't quite remember mine or have fBSD reachable at this time to quote >to you, anyways: >nameserver 200.250.46.130 # your ISP's name server IP >nameserver 127.0.0.1 # if you run your own... etc... >domain some.domain.au # will look for completion, read >bellow!!! > >You may have more than one nameserver, list them in your preferred lookup >order... >It's good to tell your machine an external nameserver, otherwise you'll >probably won't >resolve names... (duh...) > >What the hell is completion: when you are in a lan, and your machine KNOWS >you are in >such domain, like, "an.org.au", you type "www" in your browser, he asks you >system >whose IP address it is, it does not find any match, looking in the order >told him in host.conf >and the way told in resolv.conf. It knows it's domain so it tries to match >www + an.org.au, >got that? > > > 3. edit hosts to read (from the handbook) > > 127.0.0.1 localhost.an.org.au localhost > > 127.0.0.1 localhost.an.org.au. > > ^ > > Why the need for the repetition, and why the dot? > >You may have aliases, what's the problem? The dot? Well, the dot means your >typing an >"absolute name", which means: the box will not try "Completion" (mencioned >above) > > > > 10.0.0.1 araby.an.org.au araby > > 10.0.0.1 araby.an.org.au. > > ^^^^^^^^ > > What does this IP address mean? Wouldn't it be better to assign > > these names to 127.0.0.1 also, so that network data doesn't go > >The 10.x.x.x is a private network, reserved for nets non connected to the >internet... >(if I'm not completely wrong) which means, your router won't send them >trough the serial line > > > through the serial link unnecessarily? (because the info in "hosts" > > is used only for my machine to send data out to he world, right?) > >Wrong, the information contained in the "hosts" file is for your machine >only. >It's intended for fast machine lookups on a rather stable ip environment >(and small, because you have to keep up to date on EVERY machine on >your net, otherwise some will resolve names to wrong addresses...) > > > And from my understanding, that's it, provided PPP is set up correctly? > >Setting up PPP is another issue... > >Good luck! > >[[]]s Augusto Bott > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-newbies" in the body of the message ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message