According to man 5 hostname, it is not expected to have FQDN filled there, if I understand correctly. What says $ host <your-ip-address-here> on the foo.bar.com?