TLD servers handle top-level domains like .com, .org, and .net. They don't know individual IPs either. They point to authoritative servers for each domain.
The .com TLD server knows that google.com's authoritative servers are ns1.google.com through ns4.google.com.
Authoritative servers hold the actual DNS records for a domain. Google's authoritative servers know the IP for www.google.com, mail.google.com, and every other Google subdomain.