On 20 Jan, Bob Nielsen wrote:
> The machine I have was using diald and every time I sent smtp to another
> 44 station, it dialed up my ISP to do a DNS lookup, even though I am
> routing 44 traffic out my radio port. /etc/hosts works fine for
> telnet, ftp, etc., but not smtp (at least I haven't found a way to do
> this.) I have run JNOS a bit, and have pointed 'dns nameserver' to a
> DNS via the local gateway, but if I run kernel AX.25 I don't know how
> to use a different DNS for ampr.org than I use for everything else.
Ok. that makes sense, I guess.
> I was thinking that running a 'cache-only nameserver' with a local
> zone file for 44.xxx might work for this application. As an
> alternative, is there a way to configure sendmail (or exim, postfix,
> qmail, etc.) to look at /etc/hosts first before trying a DNS lookup?
It certainly should be possible to configure sendmail to consider
/etc/hosts before attempting a DNS lookup.
What does the 'hosts' entry in your /etc/nsswitch.conf look like?
To have name lookups check /etc/hosts before dns it should look like:
# /etc/nsswitch.conf
hosts: files dns
You do have the hosts specified in /etc/hosts with their fully qualifed
domain name don't you? and you do have ampr.org in your /etc/resolv.conf
'search' list I presume? e.g.
# /etc/resolv.conf
search ampr.org your.domain
regards
Terry
--
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]