The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Contemplating house rewiring - advice?


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Windows DNS and hosts file...



Hiya,

If memory serves - the hosts file (and lmhosts file) is used by the client
first. If there is no entry there it goes to your DNS server...

Things can get a little confusing when you are logged onto the server
console. As a 'client' you are subject to the above rule... check (lm)hosts
file -> cant find it , go ask a dns server (if you have one set in your
IP
stack). If your DNS server does not have an anser it then go's out to your
'forwarders' or direct to the root servers for the answer.

So, simply(?) if you set up your hosts file with all these aliases then,
when you are logged onto the server console (not over the network) and do a
lookup it will find the answer from your hosts file.

Things get a little more involved if you want to set this up for more than
one pc.

You could make the entries in your DNS server directly but then you are
taking ownship (from your lans point of view) for the other domains and
things would soon get messy...

One simple option is to copy this new hosts file to each client pc -job
done, the only drawback is if you need to update it more frequently, you
have numerous machine or dont like the idea of having copies all over the
place that can get out of sync. You would have to keep re-copying this file
around.

The way around that is to use LMHOSTS (search for lmhosts.sam). This is
another text file (aling the same lines of hosts) but you can link files
together. So your clients point to a central lmhosts file that has the main
tables in it. If you have a look at lmhosts.sam there is examples in it,
just remember to create a LMHOSTS file (drop the .sam)

Sorry to waffle (hope I've not upset the list)

Wayne.


----- Original Message -----
From: "UKHA" <ukha@xxxxxxx>
To: <ukha_d@xxxxxxx>
Sent: Wednesday, March 05, 2003 2:02 PM
Subject: [ukha_d] [OT] Windows DNS and hosts file...


>
> Sorry for the ot post guys, but just a quick question...
>
> On a box running win2k and running windows DNS service does the dns
servic
e look at the hosts file at all?
>
> ie if i add a load of ad blocking definitions to the hosts file on
that
server will it read those or just ignore it completely?
>
> Thanks
>
>
> Andy
>
>
>
>
> http://www.automatedhome.co.uk
> Post message: ukha_d@xxxxxxx
> Subscribe:  ukha_d-subscribe@xxxxxxx
> Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
> List owner:  ukha_d-owner@xxxxxxx
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>




Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.