when host has AAAA record, getent hosts only resolves that one, not the A records:
% getent hosts www.uniqueflooring.sk.
% host www.uniqueflooring.sk.
www.uniqueflooring.sk has address 184.108.40.206
www.uniqueflooring.sk has IPv6 address 2001:1ba0:2a0:5965::20:1
imho it should look and report A records too...
That's why there is getent ahosts ...
I'm using getent hosts in script(s) since it's the easiest tool to do this job.
getent ahosts has totally different output and doesn't return the ipv6 address
on all systems (checked gentoo linux glibc 2.6.1 x86_64, suse linux glibc 2.4
x86_64). If you don't find even this a bug, I'm sorry.