Is it possible for an attacker to capture a page name from the history?

For example, if an attacker establishes a DNS reboot, he could get the name of the history router so he can make his attack more accurate.
the results after writing the ip router in the url bar