my question is about, network request:
lets see an example:
I want to open a website(with domain name) that my browser doesn’t have the destination ip.
what will happen to my request?
at network layer in tcp-ip, we must put an ip for our request. but we don’t have the destination ip.
TNX…
What you need, given the domain name and needing the IP address, is a DNS lookup. DNS, or Domain Name Service, is the “phone book” of the internet, and consists of a hierarchical tree of servers, each one either knowing how to “map” or “resolve” a domain name to an IP address, or knowing which parent or child DNS server to route your request to, in order to get you closer to the server that does have this information.
It would be nice to know what language, runtime, OS and libraries you are using in your development. Using DNS is by no means a new problem, and therefore most languages and frameworks have a built-in way to do this. Even if you’re rolling your own, the structure and protocol of DNS requests and their responses is extremely well-documented. But, any attempted answer as to exactly how you should do it in your case would be a shot in the dark given that we know nothing about your project other than that it uses TCP and needs an IP address.