Resolving domain names in KDE apps

2003-07-31 Thread Robert Froese
Hello,

I'm a new FreeBSD user with a performance issue.  I've installed 5.1R and KDE.  
I've also installed Phoenix from the ports collection. When I'm using 
Konqueror or Phoenix to browse certain web sites they take forever to load.

It appears the problem is associated with resolving domain names.  While I 
wait (minutes!) for a problematic page to load, Phoenix will report in the 
notices bar at the bottom Resolving host   There's no CPU or network 
bottleneck and the problem is reproducable in either browser with the same 
web sites.  It seems also to relate to situations where one web page calls 
another for part of the content (e.g., www.vancouversun.com tries to load 
from ad.ca.doubleclick.net).

If I open up a shell window and ask FreeBSD to resolve the same domain names 
with host they resolve instantly.  So the problem has something to do with 
the way the package for KDE talks with BSD.

Any advice would be greatly appreciated!

...Robert

-- 
Robert Froese, RPF
Assistant Professor, Forest Biometrics
School of Forest Resources and Environmental Science
Mighigan Technological University, Houghton MI.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Resolving domain names in KDE apps

2003-07-31 Thread Aaron Siegel
Hello Robert

I  have been using FreeBSD 5.1 RELEASE and Konqueror without any noticeable 
problems with speed or name resolution.   The problem I have are related to 
browser issue: not haveing support for shockwave, scripting problems, and 
poorly develop sites that do not work well with the KHTML and Mozilla 
engines. The site you referenced does load slowly for me, but I think is do 
to the site and it is defiantly not a result of the operating system or KDE. 
The webpage  does load some files form ad.ca.doubleclick.net see code below.


TD width=468 height=60 valign=middle
SCRIPT language=JavaScript1.1 
SRC=http://ad.ca.doubleclick.net/N3081/adj/ccn.com/van/indexbanner;loc=theTop;sz=468x60;stile=1;dcopt=ist;kw=van;ord=9?;/SCRIPTNOSCRIPTa
 
TARGET=_top 
HREF=http://ad.ca.doubleclick.net/N3081/jump/ccn.com/van/indexbanner;loc=theTop;sz=468x60;stile=1;kw=van;ord=9?;IMG
 
NAME=i_banner ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0 WIDTH=468 
HEIGHT=60 
SRC=http://ad.ca.doubleclick.net/N3081/ad/ccn.com/van/indexbanner;loc=theTop;sz=468x60;stile=1;kw=van;ord=9?;/a/NOSCRIPT/TD/TR

On Thursday 31 July 2003 07:41 am, Robert Froese wrote:
 Hello,

 I'm a new FreeBSD user with a performance issue.  I've installed 5.1R and
 KDE. I've also installed Phoenix from the ports collection. When I'm using
 Konqueror or Phoenix to browse certain web sites they take forever to load.

 It appears the problem is associated with resolving domain names.  While I
 wait (minutes!) for a problematic page to load, Phoenix will report in the
 notices bar at the bottom Resolving host   There's no CPU or network
 bottleneck and the problem is reproducable in either browser with the same
 web sites.  It seems also to relate to situations where one web page calls
 another for part of the content (e.g., www.vancouversun.com tries to load
 from ad.ca.doubleclick.net).

 If I open up a shell window and ask FreeBSD to resolve the same domain
 names with host they resolve instantly.  So the problem has something to
 do with the way the package for KDE talks with BSD.

 Any advice would be greatly appreciated!

   ...Robert

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Resolving domain names in KDE apps

2003-07-31 Thread Matthew Seaman
On Thu, Jul 31, 2003 at 09:10:42AM -0600, Aaron Siegel wrote:
 Hello Robert
 
 I  have been using FreeBSD 5.1 RELEASE and Konqueror without any noticeable 
 problems with speed or name resolution.   The problem I have are related to 
 browser issue: not haveing support for shockwave, scripting problems, and 
 poorly develop sites that do not work well with the KHTML and Mozilla 
 engines. The site you referenced does load slowly for me, but I think is do 
 to the site and it is defiantly not a result of the operating system or KDE. 
 The webpage  does load some files form ad.ca.doubleclick.net see code below.
 
 
 TD width=468 height=60 valign=middle
 SCRIPT language=JavaScript1.1 
 SRC=http://ad.ca.doubleclick.net/N3081/adj/ccn.com/van/indexbanner;loc=theTop;sz=468x60;stile=1;dcopt=ist;kw=van;ord=9?;/SCRIPTNOSCRIPTa
  
 TARGET=_top 
 HREF=http://ad.ca.doubleclick.net/N3081/jump/ccn.com/van/indexbanner;loc=theTop;sz=468x60;stile=1;kw=van;ord=9?;IMG
  
 NAME=i_banner ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0 WIDTH=468 
 HEIGHT=60 
 SRC=http://ad.ca.doubleclick.net/N3081/ad/ccn.com/van/indexbanner;loc=theTop;sz=468x60;stile=1;kw=van;ord=9?;/a/NOSCRIPT/TD/TR
 
 On Thursday 31 July 2003 07:41 am, Robert Froese wrote:
  Hello,
 
  I'm a new FreeBSD user with a performance issue.  I've installed 5.1R and
  KDE. I've also installed Phoenix from the ports collection. When I'm using
  Konqueror or Phoenix to browse certain web sites they take forever to load.
 
  It appears the problem is associated with resolving domain names.  While I
  wait (minutes!) for a problematic page to load, Phoenix will report in the
  notices bar at the bottom Resolving host   There's no CPU or network
  bottleneck and the problem is reproducable in either browser with the same
  web sites.  It seems also to relate to situations where one web page calls
  another for part of the content (e.g., www.vancouversun.com tries to load
  from ad.ca.doubleclick.net).
 
  If I open up a shell window and ask FreeBSD to resolve the same domain
  names with host they resolve instantly.  So the problem has something to
  do with the way the package for KDE talks with BSD.
 
  Any advice would be greatly appreciated!

Here's why it's so slow:

% dig ad.ca.doubleclick.net IN 

;  DiG 8.3  ad.ca.doubleclick.net IN  
;; res options: init recurs defnam dnsrch
;; res_nsend to server default -- 127.0.0.1: Operation timed out

Here's how it should have responded:

% dig www.bbc.com IN 

;  DiG 8.3  www.bbc.com IN  
;; res options: init recurs defnam dnsrch
;; got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 2
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUERY SECTION:
;;  www.bbc.com, type = , class = IN

;; Total query time: 141 msec
;; FROM: happy-idiot-talk.infracaninophile.co.uk to SERVER: default -- 127.0.0.1
;; WHEN: Thu Jul 31 16:37:51 2003
;; MSG SIZE  sent: 29  rcvd: 29

There's absolutely nothing wrong with your systems.  The problem is
with the doubleclick.net DNS servers which incorrectly fail to respond
at all to queries for resource record types they don't know about.
That means you have to sit and wait until the request times out, which
takes something like 30s.  The bbc.com web servers do the right thing,
which is to send a negative response, and all in under 150 ms as you
can see.

Now, the RFC defining the  resource record was published nearly 10
years ago, so there is really absolutely no excuse for doubleclick.net
to be running anything so broken.  However, if you're running a
webserver using the Mozilla engine, the simple response is to
right-click on the advert and select block images from this server.

Note that there will be no problem resolving those names using host(1)
as that does an A lookup (IPv4) by default. Try:

% host -t  ad.ca.doubleclick.net

At this point you're maybe asking what a  record is and why your
web browser should be trying to look one up.  The answer is that 
is the IPv6 equivalent of an A record: ie. it returns the IPv6 IP
number corresponding to the hostname.  The reason that Mozilla is
doing an IPv6 lookup is that that is what the standards say to do
nowadays: see getaddrinfo(3), RFC 2553 and

http://www.opengroup.org/onlinepubs/007904975/functions/getaddrinfo.html

(You may need to register in order to see that web page).

Cheers,

Matthew

PS. The irony of it all is that  resource records are themselves
probably going to be phased out in favour of the A6 resource type in
the not to distant future, which does essentially the same job, but
has various other advantages beyond the scope of this e-mail to go
into.  See http://www.faqs.org/rfcs/rfc2874.html if you're interested.

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: 

RE: Resolving domain names in KDE apps

2003-07-31 Thread Timms, Simon
I would bet that this is another issue related to IPv6.  Take a look at a
thread on this list titled Mozilla and long time in resolving Hostnames,
especially a message from Dr Matthew J Seaman.

Good luck.

-Original Message-
From: Aaron Siegel [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:11 AM
To: [EMAIL PROTECTED]
Subject: Re: Resolving domain names in KDE apps


Hello Robert

I  have been using FreeBSD 5.1 RELEASE and Konqueror without any noticeable 
problems with speed or name resolution.   The problem I have are related to 
browser issue: not haveing support for shockwave, scripting problems, and 
poorly develop sites that do not work well with the KHTML and Mozilla 
engines. The site you referenced does load slowly for me, but I think is do 
to the site and it is defiantly not a result of the operating system or KDE.

The webpage  does load some files form ad.ca.doubleclick.net see code below.


TD width=468 height=60 valign=middle
SCRIPT language=JavaScript1.1 
SRC=http://ad.ca.doubleclick.net/N3081/adj/ccn.com/van/indexbanner;loc=theT
op;sz=468x60;stile=1;dcopt=ist;kw=van;ord=9?/SCRIPTNOSCRIPTa 
TARGET=_top 
HREF=http://ad.ca.doubleclick.net/N3081/jump/ccn.com/van/indexbanner;loc=th
eTop;sz=468x60;stile=1;kw=van;ord=9?IMG 
NAME=i_banner ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0 WIDTH=468 
HEIGHT=60 
SRC=http://ad.ca.doubleclick.net/N3081/ad/ccn.com/van/indexbanner;loc=theTo
p;sz=468x60;stile=1;kw=van;ord=9?/a/NOSCRIPT/TD/TR

On Thursday 31 July 2003 07:41 am, Robert Froese wrote:
 Hello,

 I'm a new FreeBSD user with a performance issue.  I've installed 5.1R and
 KDE. I've also installed Phoenix from the ports collection. When I'm using
 Konqueror or Phoenix to browse certain web sites they take forever to
load.

 It appears the problem is associated with resolving domain names.  While I
 wait (minutes!) for a problematic page to load, Phoenix will report in the
 notices bar at the bottom Resolving host   There's no CPU or network
 bottleneck and the problem is reproducable in either browser with the same
 web sites.  It seems also to relate to situations where one web page calls
 another for part of the content (e.g., www.vancouversun.com tries to load
 from ad.ca.doubleclick.net).

 If I open up a shell window and ask FreeBSD to resolve the same domain
 names with host they resolve instantly.  So the problem has something to
 do with the way the package for KDE talks with BSD.

 Any advice would be greatly appreciated!

   ...Robert

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


 

This email communication is intended as a private communication for the sole
use of the primary addressee and those individuals listed for copies in the
original message. The information contained in this email is private and
confidential and if you are not an intended recipient you are hereby
notified that copying, forwarding or other dissemination or distribution of
this communication by any means is prohibited.  If you are not specifically
authorized to receive this email and if you believe that you received it in
error please notify the original sender immediately.  We honour similar
requests relating to the privacy of email communications.

Cette communication par courrier électronique est une communication privée à
l'usage exclusif du destinataire principal ainsi que des personnes dont les
noms figurent en copie.  Les renseignements contenus dans ce courriel sont
confidentiels et si vous n'êtes pas le destinataire prévu, vous êtes avisé,
par les présentes que toute reproduction, tout transfert ou toute autre
forme de diffusion de cette communication par quelque moyen que ce soit est
interdit.  Si vous n'êtes pas spécifiquement autorisé à recevoir ce courriel
ou si vous croyez l'avoir reçu par erreur, veuillez en aviser l'expéditeur
original immédiatement.  Nous respectons les demandes similaires qui
touchent la confidentialité des communications par courrier électronique.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]