On Wed, March 6, 2013 3:24 pm, Michael Chesterton wrote: > what command is not using /etc/hosts? > > strace it to see what it's doing, post the output (maybe post a link to a > pastebin if it's huge)
Michael, thanks ping seems to, host doesn't seem to: # cat hosts 127.0.0.1 localhost.localdomain localhost4 localhost4.localdomain4 localhost ::1 localhost6 localhost6.localdomain6 ... 127.0.0.1 testthishost.com # ping testthishost.com PING testthishost.com (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.037 ms ]# host testthishost.com Host testthishost.com not found: 3(NXDOMAIN) same for host's own hostname sans domain, ping does, host doesn't back to main issue: I had probs resolving an MX hostname, so, I thought, no worries, I'll just enter it in /etc/hosts to overcome the problem so, the real issue is postfix is unable to resolve a hostname, and, neither can I from shell prompt, not really sure if postfix uses 'host', but, if it won't work at prompt, can't expect it to work in postfix.. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html