Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > DNS Server > Public versus "private" DNS

Reply
Thread Tools Display Modes

Public versus "private" DNS

 
 
Yba
Guest
Posts: n/a

 
      07-02-2009

Hi,
Assume that:
1 - I added an entry in "host" file of a client PC that reads:
(some real IP) (www.genericurl.com)
2 - www.genericurl.com is actually a publically registered domain name that
belongs to some company called ACME and that has an IP address different from
(some real IP).
3 - I configured a remote server to host a website and that server's IP is
(some real IP).
If I open the browser in that client PC and type www.genericurl.com, which
site will open, the site I hosted privately or the actual site of ACME
company?

Thanks
Yba

 
Reply With Quote
 
 
 
 
Ace Fekay [Microsoft Certified Trainer]
Guest
Posts: n/a

 
      07-02-2009

"Yba" <> wrote in message news:87E78759-6896-4A08-BA39-...
> Hi,
> Assume that:
> 1 - I added an entry in "host" file of a client PC that reads:
> (some real IP) (www.genericurl.com)
> 2 - www.genericurl.com is actually a publically registered domain name that
> belongs to some company called ACME and that has an IP address different from
> (some real IP).
> 3 - I configured a remote server to host a website and that server's IP is
> (some real IP).
> If I open the browser in that client PC and type www.genericurl.com, which
> site will open, the site I hosted privately or the actual site of ACME
> company?
>
> Thanks
> Yba
>



The name www.genericurl.com will resolve to the IP in the hosts file.

Curious, why use a hosts file? Is there something you are trying to achieve using DNS but not sure of, that we can help you out with?

--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and confers no rights.

Please reply back to the newsgroup/forum to benefit from collaboration among responding engineers, as well as to help others benefit from your resolution.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSA Messaging, MCT
Microsoft Certified Trainer

http://twitter.com/acefekay

For urgent issues, you may want to contact Microsoft PSS directly. Please check http://support.microsoft.com for regional support phone numbers.
 
Reply With Quote
 
Yba
Guest
Posts: n/a

 
      07-02-2009


Not really. I was just trying to put pieces together for me to understand
how IP resolving operates.

Thanks a lot, you have answered my question and curiosity, and I hope I have
answered yours

Yba

"Ace Fekay [Microsoft Certified Trainer]" wrote:

> "Yba" <> wrote in message news:87E78759-6896-4A08-BA39-...
> > Hi,
> > Assume that:
> > 1 - I added an entry in "host" file of a client PC that reads:
> > (some real IP) (www.genericurl.com)
> > 2 - www.genericurl.com is actually a publically registered domain name that
> > belongs to some company called ACME and that has an IP address different from
> > (some real IP).
> > 3 - I configured a remote server to host a website and that server's IP is
> > (some real IP).
> > If I open the browser in that client PC and type www.genericurl.com, which
> > site will open, the site I hosted privately or the actual site of ACME
> > company?
> >
> > Thanks
> > Yba
> >

>
>
> The name www.genericurl.com will resolve to the IP in the hosts file.
>
> Curious, why use a hosts file? Is there something you are trying to achieve using DNS but not sure of, that we can help you out with?
>
> --
> Ace
>
> This posting is provided "AS-IS" with no warranties or guarantees and confers no rights.
>
> Please reply back to the newsgroup/forum to benefit from collaboration among responding engineers, as well as to help others benefit from your resolution.
>
> Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSA Messaging, MCT
> Microsoft Certified Trainer
>
> http://twitter.com/acefekay
>
> For urgent issues, you may want to contact Microsoft PSS directly. Please check http://support.microsoft.com for regional support phone numbers.
>

 
Reply With Quote
 
Ace Fekay [Microsoft Certified Trainer]
Guest
Posts: n/a

 
      07-02-2009

"Yba" <> wrote in message news:1584E3AC-C10A-4202-A3D3-...
>
> Not really. I was just trying to put pieces together for me to understand
> how IP resolving operates.
>
> Thanks a lot, you have answered my question and curiosity, and I hope I have
> answered yours
>
> Yba




You are welcome. And yes, it does answer my question. I would hate to see you try to use a hosts file.

If your question was based on the resolution process, you should have said so. My following blog should help...

================================================== ================================================== ==
DNS & WINS Resolution Process


Keep in mind, Win2000 and newer machines uses the DNS process FIRST. If it does not get resolved using the DNS process, then it uses theh NetBIOS process. Legacy clients use the NetBIOS process FIRST, and if it doesn't get resolved using NetBIOS, it uses the DNS process.

If you are using an NBNS (NetBIOS Nameserver, such as WINS), that changes it a bit, and it also depends on what Node it's in. H-Node is default, but can be changed. There are four NetBIOS Nodes:

B-Node - Broadcast ONLY
P-Node - NBNS (Netbios Nameserver) or WINS ONLY
M-Node- Mixed NBNS and Broadcast, but uses Broadcast FIRST.
H-Node - Mixed NBNS and Broadcast, but uses WINS FIRST.

E.g. If you ping "machinename" on a Win2000 or newer machine, it will attempt to use DNS FIRST:

1. Checks it's own name.
2. Local cache.
3. HOSTS file
4. It will then suffix the Search Suffix configured on the machine, then query DNS
5. WINS
6. Broadcast
7. LMHOSTS

Legacy machines (pre-Windows 2000) use NetBIOS first.

NetBIOS and Hostname resolution for Microsoft Client and LAN Manager 2.2c Client:
http://support.microsoft.com/kb/169141/EN-US/

Name Resolution Process in detail:
http://www.comptechdoc.org/os/window.../wtcpname.html
================================================== ================================================== ==

Ace
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE7 - JavaScript SendEmail "#" no longer works versus IE6 Tony_VBACoder Internet Explorer 2 11-21-2006 06:27 PM
lost "Private Folder" after upgrade drew Windows Vista General Discussion 3 09-11-2006 01:40 AM
Entry in "Public folder instances" but not "Public Folder" Mark Windows Small Business Server 1 08-29-2006 08:45 PM
RE: Problem running CEICW wizard in SBS 2003, Log files say "error getting private NIC info" Jenny wu [MSFT] Windows Small Business Server 1 07-24-2006 10:17 AM
Need help with "The following user settings are private"!!! dsatchell Windows Small Business Server 2 10-02-2005 09:10 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59