"Build a Simple iPhone App with Swift 2.0" was retired on May 31, 2020. You are now viewing the recommended replacement.

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Digital Literacy How the Web Works The World Wide Web The Domain Name System

Just out of curiosity, is there any way to determine which/where the DNS was that I used to access a particular website?

*Just wondering if it's possible or important to know which DNS was accessed and where it's located.

2 Answers

Steven Parker
Steven Parker
231,184 Points

Depending on the OS, there would be some command to show the DNS servers configured to serve your requests. For example, on Windows, ipconfig /all will show detailed information for all network connections, including DNS Servers.

As the video explains, DNS lookups can cascade through several references before receiving a name resolution. If you want to know which DNS server provides the definitive resolutions for a particular domain, this process can be investigated further using the nslookup command. There are good online sources about how to use it if that's the level of detail you are interested in.

If you want to know physical locations, it would be extremely difficult to be certain, but you can possibly get a clue by using whois to look up information about the domain owner.

Luis Pozuelos
Luis Pozuelos
1,970 Points

if you want to know which route is used to access a page use the command traceroute or tracert depends of the OS, that comment shows you the full path route.