Mail from ILUG-BOM list (Non-Digest Mode)
_______________________________________________
Sometime Today, Satya assembled some asciibets to say:
> >Philip S Tellis wrote:
> >| What does the following message that floods my maillog mean?
> >| Oct 23 11:08:33 tae sendmail[5100]: gethostbyaddr(203.197.49.123) failed: 1
>
> Dunno about Philip, but for me that's a dynamic IP. How'd I muck with
> /etc/hosts unless I use Philip's (forthcoming) scripts?
Add the following to ip-up.local before you do anything major:
------------------------------------
[ $# -lt 1 ] && DEV="ppp0" || DEV=$1
MYIP=$(/sbin/ifconfig $DEV | grep "inet addr" | cut -f2 -d: | cut -f1 -d' ')
echo -e "$MYIP\ttellis.vsnl.net" >> /etc/hosts
------------------------------------
Replace tellis.vsnl.net with whatever you want. It's what you put in the
host and domain place in Windows TCP/IP set up.
Add the following to ip-down.local to reverse the effect. Do it last in
the file just before the exit:
------------------------------------
HOSTS=$(head -n 2 /etc/hosts)
echo -e "$HOSTS" > /etc/hosts
------------------------------------
NOTE: Change -n 2 to whatever the number of lines in /etc/hosts you want
to preserve. Alternately, keep a backup /etc/hosts and rebuild from that
everytime.
Also note that I don't want to disable dns lookups because I want sendmail
to tell me if there are dns errors. I just don't want it to tell me that
my machine can't be found.
Today, there were no errors in /var/log/maillog
Philip
--
Someone is speaking well of you.
Visit my webpage at http://www.ncst.ernet.in/~philip/
Read my writings at http://www.ncst.ernet.in/~philip/writings/
_______________________________________________
Next Meet on 12th Nov 2000 at HBCSE
Website: http://www.ilug-bom.org.in/
Linuxers mailing list [EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers
CHAT: irc.ilug-bom.org.in