[Xitami] Standalone and DOS

Brian {Hamilton Kelly} xitami@lists.xitami.org
Thu, 18 Oct 2001 21:34:15 +0100


In message <005901c157b8$7e59ae10$b82e9c3e@ednic>
   joubin.far@t-online.de (Joubin Far) writes:

> I have copied " hosts file " into winnt\system32\drivers\etc\hosts folder
> for my virtual hosts.
> Now if i want to access to an address eg. www.jf.com ( a virtual host
> address and it was implemented into hosts file)
> it dosenīt happen in standalone mod but by dialing via my ISP.
> Standalone only works for localhost.
> Can someone tell me the reason?

Yes: as was remarked only yesterday, MICROS~1 haven't the foggiest idea
about TCP/IP, and especially not about the niceties of the hosts file vs.
DNS.  Consequently, their so-called operating systems (even the fancy
shiny new ones like XP) do the wrong thing; even when you do your utmost
to assist them in doing "the right thing", they second-guess you and
assume that "you know nothing: THIS is the way it's done".

Using OS/2, I could handle your situation by setting the environment
variable USEHOSTSFIRST; however, because I have to suffer the
co-existence of various Windoze boxen on my home LAN, I now run a full
caching nameserver on my OS/2 server, which can satisfy this sort of
request from the Windoze machines.  When it really DOES need details of a
domain that is not in its local database or cache, then, and only then,
does it call my ISP's nameservers (because the boot.db file contains the
relevant forwarders line).

Now Win2K comes complete with a pretend implementation of a DNS server
(you're probably better off forcing it NOT to run "from data in the
registry", when the full expertise of "DNS & BIND" can be applied
verbatim) which could probably achieve your goal: however, I think you'd
find better advice on this on a newsgroup or mailing list related to
running DNS under Windows.

-- 
Brian {Hamilton Kelly}                                          bhk@dsl.co.uk
    "We have gone from a world of concentrated knowledge and wisdom to one of
    distributed ignorance.  And we know and understand less while being incr-
    easingly capable."              Prof. Peter Cochrane, formerly of BT Labs