I was looking at this recently -- and if you look at resolver(5), you'll find this text: The domain and search keywords are mutually exclusive. If more than one instance of these keywords is present, the last instance will override. So there seem to be two problems: (1) host is tacking *anything* on the end before the lookup (2) your resolv.conf has a redundant domain entry...