DNS requests to different subdomains can be different. For example, example.com and subdomain.example.com can return different IP addresses.
Does this logic extend to the parts of the domain after the TLD? (I don't know what this part of the URL is called.) Can the DNS lookup for example.com be different than the lookup for example.com/part2 ?
When a DNS lookup is requested, the desired domain name is obviously sent to the DNS server. When a site like example.com/part2 is requested, what information does the DNS server receive? Does the DNS server know the user is requesting the part2 portion of the domain, or is this computed on the end-user's device?
Related: How is a subdomain passed to the webserver?
Related: What does a DNS request look like?