Am Montag, den 25.10.2004, 14:12 +0200 schrieb Florin: > Hi, > > The extra "/" should not do any harm, IMHO ... Do you get any errors > because of that ? I wrote something over errors ?
But i can tell something about this script.
If you want to use the bind server correctly, then you have to change
this script for adsl connection.
On every reconnect i have only the DNS from my ISP in
the /etc/resolv.conf.
If you want to use bind, you have to put the forwarders in
the /etc/named.conf and the 127.0.0.1 in the /etc/resolv.conf.
I have changed the following lines in the /usr/sbin/adsl-connect:
------------------------------------------------------------------
# Jigger DNS if required...
if test "$DNSTYPE" = "SERVER" ; then
# Sorry, dude...
rm -f /etc/resolv.conf
ln -s /etc/ppp/resolv.conf /etc/resolv.conf
elif test "$DNSTYPE" = "SPECIFY" ; then
# Sorry, dude...
rm -f /etc/resolv.conf
echo "nameserver 127.0.0.1" > /etc/resolv.conf
echo "nameserver $DNS1" >> /etc/resolv.conf
if test -n "$DNS2" ; then
echo "nameserver $DNS2" >> /etc/resolv.conf
fi
fi
---------------------------------------------------------
As you can see the first entry to the /etc/resolv.conf is the 127.0.0.1
and all works fine for bind ;-)
Regards
Dieter
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
