"Bernhard R. Erdmann" wrote:
>
> It'a typical problem when DNS is not set up properly.
Let's be clear here: I don't want to setup a DNS server for a network
that is not supposed to have _direct_ access to the internet, one that
uses the 192.168.xxx.xxx addresses and is small enough to fit on a few
/etc/hosts lines - period.
Sendmail call this a "simpler" world, just because about anyone has set
up a DNS server in their netwok today. This makes the job "simpler" for
sendmail, does not make the world any simpler, because this "simplicity"
is bought with the extra headaches people like me are confronted with,
when they don't want to use the "simpler" solution.
Name resolution works fine here with simple, small, mamanageable
/etc/hosts files. In this sense, DNS _is_ set up properly. You just have
to do all the other tricks for programs that insist on having a domain
name to work with. Of course, there is the possibility of using
/etc/nsswitch.conf, by just not putting "dns" there. Sendmail uses the
nsswitch.conf file. But in the moment in which the gateway goes online
through a dialup connection to the Internet, you will have not only to
update /etc/resolv.conf with the nameservers given to you by the peer
PPP server, but also change /etc/nsswitch.conf to reflect the fact that
now you _can_ use dns. Is _this_ what you mean a "properly" set DNS? No
thanks.
I found the "." solution a working one. It saved me from having to
ponder on scripts that call scripts that change this file and that
file... (think for a moment that the "gateway" is laptop, the "modem" is
a PCMCIA card and the pcmcia scripts call the ip-up script which call
the firewall scripts, change /etc/resolve.conf and should change
/etc/nsswitch.conf, probably not only on the gateway, but also on all
internal machines too, just for having DNS set up properly...).
That said, let me say that I will be happy to hear about a simpler
solution than the above that also sets up DNS properly.
--
Regards
Chris Karakas
Don´t waste your cpu time - crack rc5: http://www.distributed.net