Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2009, 11:41 PM
piggy piggy is offline
Member
 
Join Date: Oct 2006
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default Slow as death internet. - DNS lookups [solved]
Pcbsd 7.1.1
I see spam is now invading the pcbsd forums. I am sorry to see this. Hope it can be addressed.

My problemo. The internet connection on my relatively new installation of pcbsd is painfully slow, using both Opera and Firefox. It seems to take forever to load a web page. When following some links I get "page not found" error. At other times a web page will load after 10 seconds or so. This pc has two network cards. The behaviour is the same for both. Changing cables has no affect. The file /etc/rc.conf has been altered to show ipv6_enable=no.

Other computers connected to the same router do not display this problem.

Any ideas ?
Reply With Quote
  #2  
Old 08-04-2009, 07:12 AM
pheet pheet is offline
Super Moderator
 
Join Date: Mar 2007
Location: Berlin
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Slow as death internet.
Does the DNS server (prob. the router) support IPv6?

Try runnung opera -debugdns from a terrminal.
Reply With Quote
  #3  
Old 08-04-2009, 11:02 PM
piggy piggy is offline
Member
 
Join Date: Oct 2006
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Slow as death internet.
Sorry about the long post.

Log generated by opera -debugdns

dns: Resolving 'www.ebay.com'
dns: Thread created
dns: Trying IPv6 lookup for host 'www.ebay.com'...
dns: Resolving 'include.ebaystatic.com'
dns: Thread created
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'www.ebay.com'...
dns: gethostbyname succeeded
dns: Host name lookup completed with error code 0
dns: Host 'www.ebay.com' resolved to 66.135.217.243
dns: Resolving 'forums.pcbsd.org'
dns: Thread created
dns: Trying IPv6 lookup for host 'include.ebaystatic.com'...
dns: Resolving 'www.pcbsd.org'
dns: Thread created
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'include.ebaystatic.com'...
dns: Resolving 'www.pcbsd.org'
dns: Thread created
dns: Resolving 'en.wikipedia.org'
dns: Thread created
dns: Resolving 'en.wikipedia.org'
dns: Thread created
dns: Resolving 'sitecheck2.opera.com'
dns: Thread created
dns: Resolving 'forums.pcbsd.org'
dns: Thread created
dns: Resolving 'rover.ebay.com'
dns: Thread created
dns: Resolving 'srx.main.ebayrtm.com'
dns: Thread created
dns: gethostbyname failed with return value 22 (Invalid argument). hostent pointer:0x0
dns: Trying IPv6 lookup for host 'forums.pcbsd.org'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'forums.pcbsd.org'...
dns: gethostbyname failed with return value 22 (Invalid argument). hostent pointer:0x0
dns: Trying IPv6 lookup for host 'www.pcbsd.org'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'www.pcbsd.org'...
dns: gethostbyname succeeded
dns: Host name lookup completed with error code 0
dns: Host 'www.pcbsd.org' resolved to 206.125.170.55
dns: Trying IPv6 lookup for host 'www.pcbsd.org'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'www.pcbsd.org'...
dns: gethostbyname succeeded
dns: Host name lookup completed with error code 0
dns: Host 'www.pcbsd.org' resolved to 206.125.170.55
dns: Trying IPv6 lookup for host 'en.wikipedia.org'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'en.wikipedia.org'...
dns: gethostbyname succeeded
dns: Host name lookup completed with error code 0
dns: Host 'en.wikipedia.org' resolved to 208.80.152.2
dns: Trying IPv6 lookup for host 'en.wikipedia.org'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'en.wikipedia.org'...
dns: Resolving 'www.google-analytics.com'
dns: Thread created
dns: Host name lookup of 'srx.main.ebayrtm.com' cancelled
dns: gethostbyname failed with return value 22 (Invalid argument). hostent pointer:0x0
dns: Trying IPv6 lookup for host 'sitecheck2.opera.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'sitecheck2.opera.com'...
dns: gethostbyname failed with return value 22 (Invalid argument). hostent pointer:0x0
dns: Resolving 'sitecheck2.opera.com'
dns: Thread created
dns: Trying IPv6 lookup for host 'sitecheck2.opera.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'sitecheck2.opera.com'...
dns: Host name lookup of 'www.google-analytics.com' cancelled
dns: gethostbyname failed with return value 22 (Invalid argument). hostent pointer:0x0
dns: Resolving 'sitecheck2.opera.com'
dns: Thread created
dns: Trying IPv6 lookup for host 'sitecheck2.opera.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'sitecheck2.opera.com'...
dns: gethostbyname failed with return value 22 (Invalid argument). hostent pointer:0x0
dns: Trying IPv6 lookup for host 'srx.main.ebayrtm.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'srx.main.ebayrtm.com'...
dns: gethostbyname succeeded
dns: Host name lookup completed with error code 0
dns: Host 'srx.main.ebayrtm.com' resolved to 66.211.180.60
dns: Trying IPv6 lookup for host 'www.google-analytics.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'www.google-analytics.com'...
dns: gethostbyname succeeded
dns: Host name lookup completed with error code 0
dns: Host 'www.google-analytics.com' resolved to 66.102.11.100
dns: Trying IPv6 lookup for host 'forums.pcbsd.org'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'forums.pcbsd.org'...
dns: gethostbyname succeeded
dns: Host name lookup completed with error code 0
dns: Host 'forums.pcbsd.org' resolved to 206.125.170.55
dns: Trying IPv6 lookup for host 'rover.ebay.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'rover.ebay.com'...
dns: gethostbyname succeeded
dns: Host name lookup completed with error code 0
dns: Host 'rover.ebay.com' resolved to 66.135.202.211
dns: Resolving 'www.ebay.com'
dns: Thread created
dns: Trying IPv6 lookup for host 'www.ebay.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'www.ebay.com'...
dns: gethostbyname failed with return value 22 (Invalid argument). hostent pointer:0x0
dns: Resolving 'pages.ebay.com'
dns: Thread created
dns: Trying IPv6 lookup for host 'pages.ebay.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'pages.ebay.com'...
dns: gethostbyname succeeded
dns: Host name lookup completed with error code 0
dns: Host 'pages.ebay.com' resolved to 66.211.160.87
dns: Resolving 'rtm.ebaystatic.com'
dns: Thread created
dns: Trying IPv6 lookup for host 'rtm.ebaystatic.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'rtm.ebaystatic.com'...
dns: Resolving 'pics.ebaystatic.com'
dns: Thread created
dns: gethostbyname failed with return value 22 (Invalid argument). hostent pointer:0x0
dns: Trying IPv6 lookup for host 'pics.ebaystatic.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'pics.ebaystatic.com'...
dns: Resolving 'rtm.ebaystatic.com'
dns: Thread created
dns: gethostbyname failed with return value 22 (Invalid argument). hostent pointer:0x0
dns: Trying IPv6 lookup for host 'rtm.ebaystatic.com'...
dns: gethostbyname failed with return value 0 (Unknown error: 0). hostent pointer:0x0
dns: Trying IPv4 lookup for host 'rtm.ebaystatic.com'...
dns: gethostbyname succeeded
dns: Host name lookup completed with error code 0
dns: Host 'rtm.ebaystatic.com' resolved to 202.6.138.118
Reply With Quote
  #4  
Old 08-05-2009, 12:56 PM
pheet pheet is offline
Super Moderator
 
Join Date: Mar 2007
Location: Berlin
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Slow as death internet.
I've experienced the same thing in the past - it's normally due to a crappy router (acting as DNS server) not supporting IPv6.

What's happening, is that for every name lookup, opera & firefox are attempting to resolve via IP6, waiting till it fails (aprox 30 seconds per lookup), then trying again with IPv4.

ipv6_enable="no" didn't work for me either.

There's a couple of possible solutions.

1) Upgrade the router (or the device that's providing DNS lookups).

2) Disable IPv6 lookups in Firefox. Enter about:config in the address bar. Find network.dns.disableIPv6 and set this to true. There is, AFAIK, no equivalent for Opera.

3) Overide the DNS lookup settings in /etc/reolv.conf to use different DNS servers, such as OpenDNS (which is what I ended up doing at the time).

HTH,
Pheet
Reply With Quote
  #5  
Old 08-05-2009, 11:11 PM
piggy piggy is offline
Member
 
Join Date: Oct 2006
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Slow as death internet.
Thanks. After making some network changes (moving to static ip address) with help from pcbsd freenode chat people, and applying your suggested configuration to Firefox, the network speed has improved dramatically.

For others: most of this was done by editing network files (particularly rc.conf) directly. I did not use any of the gui stuff.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Manager Error / Very Slow Lookups. cnutter FreeBSD Help 1 01-22-2009 06:58 AM
My Internet is so slow :( telefonmann Networking 7 04-15-2007 07:05 PM
[Solved] Slow internet Den Andere General Questions 39 11-02-2006 03:53 PM
Slow internet web surfing painful (solved) tommyjohn Networking 6 08-05-2006 06:47 PM
Slow Internet Connection General Questions 8 12-28-2005 12:56 PM


All times are GMT. The time now is 06:49 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.