I'm a Cloud Engineer and currently diving into networking and stuff. I have a question, I have the understanding that whenever I go to a site the first thing is DNS. So a DNS request gets sent to a recursive DNS server and I get a response back. Then, my computer will initiate a connection with that IP address. Thing is I've tried to do an nslookup to Facebook.com and I get a different IP than when I go to the site (When I capture the traffic with wireshark I can see that the first request it is indeed to a facebook's owned public ip but it is different than what I get in the dns lookup).
So I was wondering what could be the reason for this. Sorry if the explanation was a little bit ambiguous
Thanks yall who read me in advance:)