Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS How to Make a Website Sharing a Website Pick a Web Host

Li Mbo
Li Mbo
5,096 Points

What is the difference between IP address and DNS

I am still a newbie. Can someone explain to me the concept of IP address and DNS address with examples? What do they do and what are they used for?

1 Answer

Hey Amir,

An IP address is an address assigned to any computer (including servers) to identify it on a given network. A DNS address is a Domain Name Service which is used to convert alphabetic references into a server's IP address generally for hosting services.

An example of an IP address is your local computer's address that no one else can access: 127.0.0.1. Every machine has this address. It's also known as localhost. This is not your actual IP address, as it will always be different than this. I don't want to confuse you too much, as there is a lot to do with IP addresses.

An example of a DNS name is "ns1.godaddy.com". That URL is a link to GoDaddy's name service. If I had paid for my website address (http://www.marcusparsons.com) at some other hosting company, I could link that domain name to GoDaddy's name service, and access the files I have stored on GoDaddy's server.

The best thing to do for both of these concepts is to read more into them by searching the terms on Google and reading articles about them. There is quite a bit that goes into both terms.

Li Mbo
Li Mbo
5,096 Points

This was helpful, thank you Marcus :D