> My problem is not all programs use the hosts file.
> Ping, telnet and some others do. They find the second
> computer [kitty.n7vvl.ampr.org] fine.
>
> But programs like sendmail and host don't. When I send a message
> to user@kitty, in the var/log/messages file, sendmail correctly forms
> machine name to kitty.n7vvl.ampr.org and then says it can't find it.
>
> I have these files set up:
>
> hosts:
> 192.168.13.1 thunder.n7vvl.ampr.org thunder
> 192.168.13.13 kitty.n7vvl.ampr.org kitty
> 127.0.0.1 localhost.n7vvl.ampr.org localhost
>
> host.conf:
> order hosts,bind
> multi on
>
> resolv.conf:
> search n7vvl.ampr.org
> nameserver 204.146.247.41
>
> It seems like it picks up the info from the resolv.conf file
> but doesn't make connect to hosts file.
Try configuring the /etc/service.switch file (or whichever file is
specified by the ServiceSwitchFile option in sendmail.cf), e.g. to:
hosts files dns
aliases files
Also, host won't use /etc/hosts, as it is a DNS tool. The manpage
says:
host - look up host names using domain server
-- Glynn Clements <glynn@sensei.co.uk> - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu