Resolving is done by libnss in userspace, not in the kernel. The problem is that by default, the n900 uses a local DNS caching server (see /etc/resolv.conf). I don't know of a clean solution, but at least to make life easier in the meantime, you could add your machines to /etc/hosts.