See image above depicting different results for google.com and www.google.com.
google.com
www.google.com
Any ideas why nslookup is behaving this way ?
nslookup
Because google has different DNS records for the root zone and the www zone.