How does my web browser resolve domain names?

I am developing a network application that should be able to communicate with DNS servers.

I was wondering what would be the best way to do this. And browsers came to my mind.

For example, how do Firefox or Chrome resolve the domain names that I paste into the URL bar?

I mean, I'm typing http://www.google.com , how does he know that he should make a TCP request on IP 209.85.195.104?

Thank!

+5
source share
3 answers

​​, gethostbyname(), . , ( , ).

" DNS" , DNS- DNS- , , . , , .

+4

Try the following:

http://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=7992

Compliant RFC - rfc1035.txt

or google for the DNS resolution source.

+1
source

All Articles