This was broken by commit 9c02d078 ("nss_files: Remove RES_USE_INET6 from hosts processing"), which removed too much.