Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created an application in ASP.NET and published the code in IIS. However on entering the URL for the website, the application did not open.

I found out that I need to register the URL in DNS.
My question is:
What happens when we register the URL in DNS?
Posted

1 solution

It creates a mapping for your URL so that it resolves to your server. Think of it like a key-value dictionary, where key is your URL for e.g. myawesomesite.com and the value would be the IP address for e.g. 123.456.789.21. So when you browse to myawesomesite.com, internally that address would be resolved to the corresponding IP address of your server. This is done so that your server is identified easily on the internet and you don't have to remember IP addresses but rather something more memorable like the URL "myawesomesite.com".

If you are doing it on localhost then you generally don't need to do the DNS thing, but if you want you can by updating your hosts file which resides at C:\windows\system32\drivers\etc\hosts.

Hope this helps.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900