FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Runs In WinXP Command Window But Not In Browser
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173587 is a reply to message #173585] Tue, 19 April 2011 21:19 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Denis McMahon wrote:
> On Tue, 19 Apr 2011 18:46:01 +0100, The Natural Philosopher wrote:
>
>> William Gill wrote:
>
>>> When a user types peter.example.com into his browser, the browser says
>>> "???" ; then asks one of the root servers (who maintain a list of all
>>> the building directories for the ".com" part of peter.example.com
>>> "where do I begin?"; the root server says "Ask Peter's hosting company
>>> at xxx.xxx.xxx.xxx"
>
>> No. The browser does NOT do that. The browser sends a request to
>> whatever DNS server its configured to look up and the DNS server does
>> all that, and relays the answer back
>
> WRONG. The browser asks the local resolver, which is usually a process
> running on the same system. The local resolver then does the lookup
> according to it's configuration and settings (which may be defined by dhcp
> settings, or may be statically configured) and returns an answer to the
> browser.
>
WRONG.

The 'resolver is normally a library that is either DLL or statically
linked to the browser.

The resolver knows nothing about root level domains.

Unless you are runing locale DNS server like BIND the resolver at best
knows a where a DNS server it can query exists.

If every resolver on the planet asked the root servers where to go,
they would die in milliseconds.

Fortunately DNS is a cacheing hierachical system. So they very seldom do.

>> And peter, remember that people who assure you they knwo what they are
>> talking about may in fact not know any more than you do..:-)
>
> You certainly proved that one today.

And you have doubly assured ebveryone of it.

Wiki says it esier than typing it in

Client lookup
DNS resolution sequence

Users generally do not communicate directly with a DNS resolver. Instead
DNS resolution takes place transparently in applications programs such
as web browsers, e-mail clients, and other Internet applications. When
an application makes a request that requires a domain name lookup, such
programs send a resolution request to the DNS resolver in the local
operating system, which in turn handles the communications required.

The DNS resolver will almost invariably have a cache (see above)
containing recent lookups. If the cache can provide the answer to the
request, the resolver will return the value in the cache to the program
that made the request. If the cache does not contain the answer, *the
resolver will send the request to one or more designated DNS servers. In
the case of most home users, the Internet service provider to which the
machine connects will usually supply this DNS server: such a user will
either have configured that server's address manually or allowed DHCP to
set it*; however, where systems administrators have configured systems
to use their own DNS servers, their DNS resolvers point to separately
maintained nameservers of the organization. In any event, the name
server thus queried will follow the process outlined above, until it
either successfully finds a result or does not. It then returns its
results to the DNS resolver; assuming it has found a result, the
resolver duly caches that result for future use, and hands the result
back to the software which initiated the request.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: neither var_dump() nor die() displays anything
Next Topic: Spaces in filenames
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 13:20:51 GMT 2024

Total time taken to generate the page: 0.05136 seconds