host site using WWW. address instead of http://MYMACHINENAME/default.aspx

Last post 12-26-2007 8:47 AM by jeff@zina.com. 12 replies.

Sort Posts:

  • host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 7:22 AM
    • Member
      5 point Member
    • talkwaqar
    • Member since 12-22-2007, 11:57 AM
    • Pakistan
    • Posts 39

    I have my local website which is hosted on IIS 5.1 (Windows XP). So whenever any machine on my LAN want to access that web site its accessed as "http://<my machine Name>/default.aspx". Now I want to know what should I do to so that I can access web site as "www.mysite.com" on LAN

    talkwaqar@yahoo.com
    ASP.NET (VB.NET)
  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 7:24 AM
    • All-Star
      77,781 point All-Star
    • jeff@zina.com
    • Member since 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 10,569
    • Moderator
      TrustedFriends-MVPs

    Configure DNS to resolve the www host in the mysite.com domain to the IP address of your web site.

    Jeff

    Blatant Self Promotion: ASP.NET 3.5 CMS Development
  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 7:41 AM
    • Member
      5 point Member
    • talkwaqar
    • Member since 12-22-2007, 11:57 AM
    • Pakistan
    • Posts 39

    how to configure DNS. and for your kind info (i have not any registered domain)

    as i have seen our cable operator have local site on lAN www.lyarianz.net which is on LAN

    so how it can be what will my DNS setting?

    talkwaqar@yahoo.com
    ASP.NET (VB.NET)
  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 7:43 AM

    Hello,

    Yes, you should create a DNS A Record "www.mysite.com" with IP Address "<my machine Name>" IP Address.

    Regards

  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 7:46 AM
    • Member
      5 point Member
    • talkwaqar
    • Member since 12-22-2007, 11:57 AM
    • Pakistan
    • Posts 39

    Please tell me how to set DNS setting? 

    talkwaqar@yahoo.com
    ASP.NET (VB.NET)
  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 7:52 AM

    Hello, 

    You should use a DNS Server.

    Regards

  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 7:57 AM
    • Member
      5 point Member
    • talkwaqar
    • Member since 12-22-2007, 11:57 AM
    • Pakistan
    • Posts 39
    Ohh my goodness! my friend i dont know about DNS server setting tell me please how can i use and set it 
    talkwaqar@yahoo.com
    ASP.NET (VB.NET)
  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 8:10 AM
  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 8:23 AM
    • Member
      5 point Member
    • talkwaqar
    • Member since 12-22-2007, 11:57 AM
    • Pakistan
    • Posts 39

    Thanks for your response

     
    i know theory but please tell me the steps to set DNS(DNS SERVER).

    talkwaqar@yahoo.com
    ASP.NET (VB.NET)
  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 11:02 AM

    Hello,

    Check here How To Install and Configure DNS Server in Windows Server 2003 - http://support.microsoft.com/kb/814591 

    If you register a domain name, your domain register will provide you DNS Servers.

    Regards

  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-22-2007, 1:23 PM
    • Member
      5 point Member
    • talkwaqar
    • Member since 12-22-2007, 11:57 AM
    • Pakistan
    • Posts 39

    as already mention hosted on IIS 5.1 (Windows XP).

    talkwaqar@yahoo.com
    ASP.NET (VB.NET)
  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-23-2007, 2:55 AM
    • Member
      81 point Member
    • thomad
    • Member since 08-20-2002, 3:28 PM
    • Redmond
    • Posts 18

    DNS is a name resolution system. It resolves a domain name to an IP address. You can check it out locally by just opening the file %windir%\system32\drivers\etc\hosts and add the following line to the end

    127.0.0.1      mynewserver

     

    127.0.0.1 is your local loopback IP address and mynewserver is the new dns address. Now you can enter http://mynewserver/default.aspx in your local browser and it would work. Problem is however that only your local machine uses the hosts file for name resolution. The name "mynewserver" is not known if you go to a different machine. But every company has a name resolution system. If you work in a Windows shop you probably have WINS or DNS. You have to ask your IT guys to add the new name to your DNS system. If you want the name resolution to work for your home machine you should probably use one of the free Dynamic DNS providers out there. I use www.no-ip.com for example.

    Hope this helps

    Thomas Deml
    Group Program Manager
    Internet Information Services
    Microsoft Corp.
  • Re: host site using WWW. address instead of http://MYMACHINENAME/default.aspx

    12-26-2007, 8:47 AM
    Answer
    • All-Star
      77,781 point All-Star
    • jeff@zina.com
    • Member since 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 10,569
    • Moderator
      TrustedFriends-MVPs

    IIS is on Windows XP, but where is your DNS server?  And if you have no domain registered, nobody outside your network will be able to access your server by name anyway.

    There is no Microsoft DNS for Windows XP  You can install a third party DNS server, or use Hosts files, but frankly, you're not ready for either of those options.  Do yourself a favor and register a domain, find a web host and put your site there instead of on your local system.  Use the host's DNS.

    Jeff

    Blatant Self Promotion: ASP.NET 3.5 CMS Development
Page 1 of 1 (13 items)