From: Murat Koc (muratkoc@saneg.itu.edu.tr)
Date: Fri 14 Jul 2000 - 16:21:50 EEST
> Genelde internete baglanirsiniz, DNS adreslerini ayarlamadiginiz veya yanlis
> ayarladiginiz icin, hatali resolv.conf dosyasi yuzunden internetten
>bilgi alamazsiniz. Bu sefer bizim sorunumuz bir hayli farkli. Burada
>(KUTAHYA) GES-NET diye bir ISS'miz var. Biz wvdial veya kppp, hatta if-up
>ile internete baglandigimizda, resolv.conf dosyamizdaki DNS satirlari
>otomatikman ISS'nin DNS adresleri ile degistiriliyor. Haliyle kendi
>DNS'imiz devreden cikiyor. Velhasil eski koye yeni adet. man, howto
>vs. birhayli karistirdim. if-* scriptlerine soyle bir goz attim. Konu ile
>ilgili bir sey gozume takilmadi.
>
> Simdi GES-NET bu isi nasil yapiyor ? bizim linux boxumuzda resolv.conf'un
>bozulmamasi icin (Baglantidan once yedekle, baglantidan sonra yedegi
>uzerine kopyaladan baska) ne yapabiliriz ?
Selam,
Ilk tavsiyem xisp kullanin onda degismiyor DNS adrsleri.
Ikincisi ise /etc/wvdial.conf un icinde
Auto DNS =1 i 0 yapin.
Kppp de ise account bolumunde DNS ayarlarinda gerekli eklemeleri yani
sizin dns leri yazin.
Ucuncusu ise
ip-up icinde
# This code allows automatic configuration of your resolv.conf
# for peer supplied DNS addresses when using the `usepeerdns'
# option. Original resolv.conf is restored when ip-down is called
# by pppd when the link goes down.
#
if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then
rm -f /etc/ppp/resolv.prev
if [ -f /etc/resolv.conf ]; then
cp -p /etc/resolv.conf /etc/ppp/resolv.prev
grep domain /etc/ppp/resolv.prev >
/etc/resolv.conf
grep search /etc/ppp/resolv.prev >>
/etc/resolv.conf
cat /etc/ppp/resolv.conf /etc >> /etc/resolv.conf
echo "Modified /etc/resolv.conf for DNS at
$INTERFACE"
else
cp /etc/ppp/resolv.conf /etc
chmod 644 /etc/resolv.conf
echo "Installed /etc/resolv.conf for DNS at
$INTERFACE"
fi
if [ "$START_NSCD" = yes ]; then
/sbin/init.d/nscd restart &
fi
fi
test -x /etc/ppp/ip-up.local && /etc/ppp/ip-up.local $*
;;
seklinde bir bolum var. ayni sekilde ip-down ise tekrar resolv.conf u eski
haline getiriyor.
Yani pppd yi calistirirken usepeerdns kullanmasini engelleyin.
Baska birsey gelmiyor aklima.
IYI CALISMALAR
MURAT KOC
Listeden cikmak icin:
unsub linux
mesajini listeci@bilkent.edu.tr adresine gonderiniz.
Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html
Liste arsivinin adresi: http://listweb.bilkent.edu.tr/