I'm not exactly sure who gets the info every time my passport gets scanned but I would imagine both the country I'm leaving and the country I'm entering know about it. I've never been out of country for more than a few weeks at a time (and never was it to move there) but I find it hard to believe that moving to a different country would be less strict than just visiting for a couple weeks.