[NTLUG:Discuss] Slow connection to pop3

Neil Aggarwal neil at JAMMConsulting.com
Tue Jul 16 20:10:58 CDT 2002


Bug:

This is strange, I added this to my /etc/hosts file:
192.168.1.4 host4.homexcorp.com

My /etc/host.conf looks like:
order hosts,bind
multi on

I then started named by typing /etc/init.d/named start

Then, I treid to do a reverse lookup using dig:
dig @127.0.0.1 -x 192.168.1.4

Here is what I got back:
; <<>> DiG 9.2.0 <<>> @127.0.0.1 -x 192.168.1.4
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 63996
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;4.1.168.192.in-addr.arpa.      IN      PTR

;; AUTHORITY SECTION:
168.192.in-addr.arpa.   10800   IN      SOA     prisoner.iana.org.
hostmaster.root-servers.org. 2002040800 1800 900 604800 604800

;; Query time: 1061 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jul 16 20:09:33 2002
;; MSG SIZE  rcvd: 119

There is no answer section.  I thought that the hosts file should have been
checked first and then I would get an answer.

Any ideas?

Thanks,
	Neil.


--
Neil Aggarwal
JAMM Consulting, Inc.    (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development    Websites, Ecommerce, Java, databases


> -----Original Message-----
> From: discuss-admin at ntlug.org [mailto:discuss-admin at ntlug.org]On Behalf
> Of Bug Hunter
> Sent: Tuesday, July 16, 2002 9:24 AM
> To: discuss at ntlug.org
> Subject: RE: [NTLUG:Discuss] Slow connection to pop3
>
>
>
>   in my
>
>   /etc/host.conf, I have
>
>   order hosts, bind
>   multi on
>
>   This tells the resolver to look up in hosts file first, then use bind.
>
>   Perhaps this is not on your pop 3 server machine???
>
>   If you have pop3 run from inetd, then inetd is trying to do a revers dns
> lookup before, during (?) starting pop3, and maybe a forward lookup
> depending upon how you have /etc/hosts.allow set up.
>
>   try putting all 192.168.x records in a dns file so the reverse dns
> looks up to _something_. and run bind on that machine, with
> /etc/resolv.conf pointing to that machine for its DNS server.
>
>  I recommend bind 4.9.9 due to the large number of holes in 8.x and 9.x.
> However, both 8 and 9 appear to be down to nuisance level problems now.
>
> bug
>
>
> On Tue, 16 Jul 2002, Neil Aggarwal wrote:
>
> > Paul:
> >
> > I ran your script to add the entries into the hosts file,
> > thanks for the help on that.
> >
> > Unfortunately, it did not solve my problem.  The connections
> > to pop3 are still as slow as they have ever been.
> >
> > Any ideas?
> >
> > Thanks,
> > 	Neil.
> >
> > --
> > Neil Aggarwal
> > JAMM Consulting, Inc.    (972) 612-6056, http://www.JAMMConsulting.com
> > Custom Internet Development    Websites, Ecommerce, Java, databases
> >
> >
> > > -----Original Message-----
> > > From: discuss-admin at ntlug.org
> [mailto:discuss-admin at ntlug.org]On Behalf
> > > Of Paul Ingendorf
> > > Sent: Monday, July 15, 2002 10:28 PM
> > > To: discuss at ntlug.org
> > > Subject: RE: [NTLUG:Discuss] Slow connection to pop3
> > >
> > >
> > > And this prevents you from testing this how?  The suggestion was
> > > to see if the dns timeout was indeed the culprit to your slowdowns.
> > >
> > > If you just want to quick dirty hack do something like this and
> > > have a program fill in every combination from 1-255 for your
> > > subnet in the host file.
> > >
> > > #!/bin/bash
> > > let x=1
> > > while test $x -lt 256
> > > do
> > > echo 192.168.1.$x host$x >> /etc/hosts
> > > let x=$x+1
> > > done
> > >
> > >
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss





More information about the Discuss mailing list