From: Eyup TEKIN (tekin@edakom.com.tr)
Date: Wed 23 Jul 2003 - 09:35:12 EEST
merhaba
bir tane script calistiriyorum bu script dns ayarlarini kontrol ediyor.
iptohost ve hosttoip sorgulamasi yapiyor.
skript asagida.
*************************************
31
nslookup verification
This rule verifies if DNS is correctly configured for this host.
VERIFY
=
DNSOk
NA
NA
1
NA
OS
HOSTNME=`hostname | awk -F. '{print $1}'`
HostToIp=false
IpToHost=false
if test %29%
then
if [ `/usr/bin/nslookup -sil $HOSTNME 2>/de HostToIp=true
else
echo NoHostNameToIP
fi
if [ `/usr/bin/nslookup -sil %29% 2>/dev/null | grep $HOSTNME | wc -l` -ge
1 ]
then
IpToHost=true
else
echo NoIPToHostName
fi
else
echo NoHostsEntry
fi
if [ $HostToIp = true -a $IpToHost = true ]
then
echo DNSOk
fi
<END>
The DNS resolution for your host has been setup correctly. No action required.
<END>
DNS resolution for your host has not been setup correctly. Please verify the
next table for required actions.v/null | grep %29% | wc -l` -ge 1 ]
then
*************************************
noiptohostname uyarisi veriyor.
/etc/hosts dosyam
10.0.x.x pc1.com.tr
/etc/host.conf dosyam
order hosts,bind
multi on
/etc/resolv.conf dosyam
domain com.tr
namserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy
bu durumu nasil cozebilirim
iyi calismalar