*BSD News Article 49313


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!tank.news.pipex.net!pipex!in2.uu.net!news1.digital.com!pa.dec.com!nntpd.lkg.dec.com!usenet
From: Jon Jenkins <jenkinsj@ozy.dec.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Pinging myself
Date: 20 Aug 1995 12:27:16 GMT
Organization: Digital Equipment Corp
Lines: 60
Message-ID: <4179n4$2f3@nntpd.lkg.dec.com>
References: <808168572snz@beckley.demon.co.uk> <40n1jo$isa@bonnie.tcd-dresden.de>	<808515947snz@beckley.demon.co.uk> <CSTRUBLE.95Aug15165127@quirk.com> <Pine.BSF.3.91.950818150043.222A-100000@w2xo.pgh.pa.us>
NNTP-Posting-Host: ozyd13-p3.ozy.dec.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; BSD/386 uname failed)
X-URL: news:Pine.BSF.3.91.950818150043.222A-100000@w2xo.pgh.pa.us

Jim Durham <durham@w2xo.pgh.pa.us> wrote:
>On 15 Aug 1995, Craig Struble wrote:
>
>> In article <808515947snz@beckley.demon.co.uk> Ian W Taylor <iwta@beckley.demon.co.uk> writes:
>> 

I posted something on this a while ago:
route/DNS/BIND borken ??

I have traced the code right through from the
route "getdomainfo" and yes there is a problem
there. The resolver ignores the order in the
/etc/resolv.conf file and does a BIND lookup
first (it just starts at index 0 and progresses
forwards). I havent got a fix yet as time 
ran out but Ill get back to it later this 
week.

I temporarily solved my problem by:
1: specifying all hosts in the rooute as IP numbers
2: adding a route to myself via localhost 
   again specifying numbers not names 
   this way I get instant startup. If
   I use names it can take up to 3
   minutes as all BIND requests get
   sent out from the route commands e.g.

excerpt from start.slip script:

echo "Clearing routes"
route -q flush
echo "Clearing ifnets"
ifconfig sl0 delete
ifconfig sl1 delete
echo "setting hostname"
hostname ozyd13-p$1.ozy.dec.com
echo "attach sl0 to /dev/ttyd1"
slattach -a -s 57600 -h /dev/ttyd1
echo "configuring sl0"
ifconfig sl0 inet ozyd13-p$1 mtu $2 compress up
echo "adding default"
route add default 16.153.192.20$1
#echo "adding local loop"
route add -host 16.153.192.20$1 127.0.0.1
echo "netstats"
netstat -r
netstat -i
echo "ifconfig"
ifconfig sl0


-- 
----------------------------------------------------------------------
Name:      Dr Jon Jenkins    Location: Digital Equipment Corporation NaC
Voice/Fax: 61-7-55-75-0151/100         Burnett Place, Research Park,  
Inet:      jenkinsj@ozy.dec.com        Bond University, Gold Coast
Close Proximity: "HEY YOU !!!"         QLD, AUSTRALIA 4229
"Daddy, what's outside the Universe?" (My 5 year old.....)
-----------------------------------------------------------------------