The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Networking (http://hintsforums.macworld.com/forumdisplay.php?f=14)
-   -   Extremely Slow Internet with Leopard (http://hintsforums.macworld.com/showthread.php?t=81877)

Las_Vegas 02-18-2008 08:10 PM

Did we really need that response twice in a row?

JBoisen.com 02-19-2008 04:06 AM

I'm not sure if that reply was meant for me.

But if it was then yes, you do need my reply.

The thing that screws it up with an airport extreme and a osx machine is that osx will list the airport as the first DNS server. The airports lan IP is also greyed out, so that it can not be removed. This in effect means that entering more dns servers will not help you unless you make sure that the airport isn't able to process any dns requests, because osx will make dns requests to servers in the order they appear on the list found under systempref.->network->advanced->dns.
The dns requests to the airport can be made faulty by altering the DNS IP's listed under the Internet tab in the airport extreme, the IP addresses are greyed out but just click on them and enter the airport wan IP in both primary and secondary DNS.
When this is done osx will, when looking up a web address, first contact the airport router, the airport router will relay the request to the IP entered in its DNS config. This will however make it contact itself and the request will be denied at once, osx will then move on to the DNS server listed as the next one, this then does not involve the airport router because request are made directly to dns server. Speeding things up drastically.

Haven't seen this solution offered before, but i sure works for me... I even entered the same DNS IP addresses in osx as the airport was using as default.

Choppaface 02-24-2008 07:50 PM

Something happened with Mac OS X's low-level DNS resolving functions during the development of Leopard and now a variety of applications are screwed up. I'm also seeing this problem, as well as the "slow SSH problem." I think we're just going to need to wait till Apple does something about it. Since the problem appears to be somewhat dependent on what kind of servers are running on your network, this was probably not something they could figure out during the Q/A phase of finalizing Leopard, tho I'm surprised the Beta seeds didn't reveal this issue...

Related to "slow SSH connect" issue with leopard:
see http://discussions.apple.com/thread....55437&#6655437

Quote:

"Assuming you are referring to problems when ssh-ing from a Leopard box
to other systems, then the problem is probably the new behavior of the
getaddrinfo() call in Leopard. Basically, that call in Leopard now uses
the RFC-recommended practice of first issuing a DNS SRV record request
rather than an A record request, and then falling back to the A record
request if the SRV request fails; unfortunately, apparently a lot of DNS
servers don't respond to the SRV request w/ an NXDOMAIN as they should,
and instead just drop the request, so getaddrinfo() retries the SRV
request a few times, and only after those requests time out does it try
to A request. So if ssh is using getaddrinfo() rather than
gethostbyname/getservbyname, then you it would hang like you describe
whenever you are pointing to a DNS server that doesn't respond well to
the SRV request. (There are also reports that Leopard may generate DNS
requests w/ an invalid RR type, which might explain why the servers
being queried aren't responding to them correctly.)

The easiest way to check if that's your problem would be to sniff
traffic on port 53 while trying an ssh connection, and seeing if your
box is making a SRV request or an A request. (If that is in fact your
problem, you may be SOL until a patch is released, as Googling, I don't
see any solutions other than hacking individual apps to use
gethostbyname() instead of getaddrinfo().)"

(A reader responds) I did monitor port 53 and it is making SRV requests.

Choppaface 02-24-2008 08:00 PM

See this page

http://blog.jungledisk.com/2007/10/3...d-work-around/

muso 03-04-2008 02:45 AM

I've put together a simple and hopefully easy to read guide for this over on mac-forums - http://www.mac-forums.com/forums/sho...d.php?p=607373 but basically all that you've gotta do to fix the problem is bypass any automatically assigned dns servers on any routers or modems on your network, then specify your own ones (eg opendns, or your isp's ones).

agentx 03-04-2008 11:34 AM

My wireless on my MacBook Pro is so slow it is doing my head in.....Apple are ignoring the problem.....IMHO!!!!!!

I am currently sitting 2 metres away from router. I use WPA2 security but it exhibits the same behaviour with any type of security to no security.

It takes 15 second to load macosxhints on wireless and 2 seconds on ethernet of course i clean the browser cache to do the test and flush DNS. This is also reflected in DNS lookups so it is not a DNS issue.

This PROBLEM is going on on many Intel Macs i support as well as my own....on 10.4.11 and 10.5.2. I have done extensive testing on many systems and routers and i can confirm that the Atheros driver is CRAP and/or apples implementation of IO with kext.

If it was just my machine i would think hardware problem but nay.....it is at least 20 to date out of 100 machines i support. All the older broadcom based machines/PPC are perfect no problems on the same network.

The problem is also compounded by moving from battery to power adapter which can in fact lead to the wireless just not working at all for a while.

Apple once again pull your iphones out of your arse and sort out core issues out !

And yes i have posted on apple forums but had my posts deleted very promptly even when just explaining what was going on, and not using any derogatory comments....so a big THANKS to Apple for listening to their consumers.

Ah the wireless age.....better hope the Macbook Air has a good wireless chip/driver or you are right in the crap.

hayne 03-04-2008 01:06 PM

Quote:

Originally Posted by savage (Post 455933)
This is also reflected in DNS lookups so it is not a DNS issue.

You aren't being clear enough. Is DNS slower over Airport than over Ethernet? If so, is the slowness of DNS enough to explain the slowness of web-apge loading?
(It's be better to remove DNS from the equation by loading web pages via IP addresses instead of names.)

Quote:

I have done extensive testing on many systems and routers and i can confirm that the Atheros driver is CRAP and/or apples implementation of IO with kext.
Please post your evidence, not just your conclusions.
In particular, I'm interested to see how you have identified this as a driver problem rather than the other (much higher-level) software.

agentx 03-05-2008 05:14 AM

Every time i am on wireless DNS lookups are slowwww and when on ethernet very fast. I use openDNS on our network and it has been working very well with all other machines.

On another network/site i support i have managed to nearly remove wireless from the equation on all intel machines as they ALL were exhibiting the same issues......slow WIFI, lack of comms to router, slow DNS, not being able to connect to network with authentication failing and just not connecting to the network.....the dreaded "try again". One thing that helped the authentication was changing the wireless channel from 10 to 9 then back again.....just weird. This is mainly with Macbooks/Macbook Pros but some iMacs as well. The fact that NONE of PPC machines have any wireless issues does point to something with driver IMHO. Most machien sare on 10.4.11 and a few on 10.5.2. All machines that are wired are fine anything(intel based) on wireless appears to be alright but they throw up one or more of the symptoms every other day...

In answer to evidence.....
I have no real evidence apart from the fact there have been 5-7 revisions of the driver/IO80211.kext in 18 months which shows something is up IMHO. This coupled with the fact the same machines while using bootcamp (XP) have no issues at all. So its not hardware !

f21 03-05-2008 09:24 PM

Try turning on the UNIX Name Service BIND (Berkeley Internet Name Domain) via root terminal. It's built into OSX (as OSX is UNIX based) but off by default (not sure about Leopard) for some odd reason, but it's the UNIX native DNS. Well it's actually a suite of UNIX based utilities including nslookup and dig but contains a very good DNS server that may fix your problem if it's DNS related.

agentx 03-06-2008 04:16 AM

F21 if you are referring to my comments....it is not practical to have the 20 client machines running a local DNS server and having a main DNS server on network as well.....so it will not help.

As far as running on my own local machine, i have reasonable experience with DNS setup so may have a go, but something is up with the WIFI.....full stop.

Since rolling back Airport/IO80211.kext drivers to the 10.4.9 version things have been better coupled with my laptop pinging router every 2 seconds....not ideal but it is keeping things mildly in order.

maehlen 06-01-2008 07:33 PM

Found solution to slow internet; haven't seen it listed here yet
 
I was experiencing what a lot of folks have experienced: very slow internet as soon as I upgrated my Mac (mini) to Leopard. All the speed tests I ran off of the web showed good speed, but it did appear that the problem was not in the downloading but in sending the request to the site.

I ran all of the suggestions above to see if they made a difference. No difference.

So I went into my DSL modem settings and looked for settings that would affect look up. I found that it was *not* the particular sites it was looking for, but *how* it was looking: "Dynamic DNS". I changed the DSL model settings from Dynamic to Static DNS, and kept the two IP addresses listed the same. So instead of dynamically trying one and if not working, try the other, it was doing it as a static list (which, parenthetically, is similar to creating the static list in unix for lookups).

Once I restarted the modem, my total internet speed (DNS lookup + download) is back to fast.

My interpretation is that the Mac is asking the DSL modem and is somehow lagging poorly when the model does the dynamic lookup.

Hope this helps.

Mark

rdhints 06-05-2008 10:06 AM

routers gone wild... on SRV DNS requests
 
ssibayan & eightmedia:

You're likely right with regards to routers being at fault with respect to slow internet access under Leopard. Many routers don't respond to SRV DNS requests. And this is the type of DNS record Leopard asks for first, before retrying with A record requests after multiple failures/timeouts on SRV record requests.

Switching to a different router that does handle these requests, can make a large difference in browsing speed, which is exactly what you're seeing.

Same goes with IPv6 DNS requests (if you're using Firefox).

Quote:

Originally Posted by eightmedia (Post 451683)
yeah man! I think the dns servers is not the right way to look after. I replaced them and I don't really see a big change. The pc is even slower with the new ones.

I tried to update my router firmware but can't seem to get the right file to do that. Also it gives me errors when I try to setup the Mac filter. I'm gonna call telefonica monday and ask them for a new router, and I don't want that Xavi 7868r again :)

I also took my laptop to a hotel near my place and logged in to their wireless network and I had no problems. My MBP was as fast as it was in Belgium. After that, I took the Macbook Pro to a friends house here who also uses telefonica and has the same router we have at our place and it was slow again. So i'm starting to think it's all the routers fault.

I'm really going crazy here, lost a lot of my precious time and can't get my work done properly. And I'm really out of options .. don't knwo what to do next

Quote:

Originally Posted by ssibayan (Post 451564)
Sadly, my 18 seconds fluctuates now from 11 seconds to 70 seconds with every change I attempt!

I just thought of something - I checked my Network properties on the PC, which is on the same network as my macs, and the DNS servers listed on the PC are:

80.58.61.250
80.58.61.254

Anyone who has been following this saga from the beginning, will read that those were the very first DNS numbers my Mac also generated (makes sense). One user replied and said there was significant packet loss on one of those, so I have been trying to find replacement DNS numbers ever since.

But if those DNS numbers are the ones my PC is pulling... and the PC is working flawlessly (in terms of internet... in terms of anything else, well, that's why I have macs :P), then it seems like I am going down the wrong path.

Any thoughts?


rdhints 06-05-2008 10:33 AM

opendns' misleading instructions
 
drsmartz

I just took a look at those instructions from opendns on changing DNS servers and ... that's not going to help anyone having slow dns lookup issues on Leopard.

Simply adding DNS servers onto the bottom of the list will still have Leopard asking the first DNS server to perform the domain name lookups. Only after the first server has failed the lookup or timed out will Leopard try the second and third.

To add to the misinformation, those instructions are for Ethernet only. AirPort, and every network device for that matter, has its own set of service settings. Thus, if you're on AirPort wireless, adding DNS servers to your Ethernet interface is like changing tires on your bike and hoping your car drives better. Don't think that'll be very helpful :rolleyes:.

If you look closely at those screenshots, the guy who made them is using AirPort wireless, yet he wrote instructions on how to change DNS servers for the Ethernet device. He and everyone else on wireless using those instructions will see zero effect from those changes.

To add OpenDNS' servers to your DNS lookups on wireless (or Ethernet) and to actually make it useful, create a new Network Location and edit the device settings there.

I started to write instructions on how to do that here, but it's turning into a monster post. Here is a walkthrough with screenshots on adding DNS servers in Leopard to get around slow name lookup/Internet problems.



Quote:

Originally Posted by drsmartz (Post 441728)
nathan56b says "Slow as AOL dial up" - I'm seeing the same thing. Was browsing quicktly using OSX 10.3, then went to 10.5 as an early adopter. Wow, I regret that so much now. The web browsers (trying both Firefox, Safari) on this new OSX are indeed glacial. I'm using a PowerPC G5 dual, 1.5 GB ram. Some discussion of the problem at apple forums:
http://discussions.apple.com/thread....26220&tstart=0

They suggest:
https://www.opendns.com/start?device=apple-osx-leopard

Quote:

Originally Posted by drsmartz (Post 441794)
Unfortunately, this did not fix the problem for me. I'm just hoping 10.5.2 will help.... somehow.... This thing is a boat anchor w/o decent internet.


arbushell 06-05-2008 02:28 PM

Just for info the first DNS servers inquired are those at the bottom of the list (normally added manually, as OpenDNS). This for sure if those at the top are grayed. Seen with Wireshark packet trace and Camino.

rdhints 06-05-2008 02:45 PM

tcpdump says otherwise (I think)
 
I not sure if I can confirm what you say, arbushell, although I'll confirm tomorrow.

According to tcpdump, this is not true. The order that DNS servers appear in the list, from top down, is the order that the servers are used.

The greying out of servers simply means they are not removable from the list, not that they are "unused".

Another way to tell is by looking at service order using ncutil or scutil.

Again, will write more later.

Quote:

Originally Posted by arbushell (Post 474489)
Just for info the first DNS servers inquired are those at the bottom of the list (normally added manually, as OpenDNS). This for sure if those at the top are grayed. Seen with Wireshark packet trace and Camino.


rdhints 06-05-2008 03:28 PM

For arbushell - order of dns is as you see it
 
1 Attachment(s)
Setup tcpdump as follows: sudo tcpdump -i en1 -s 128 port 53

(use en0 if you're on ethernet).

Open up another terminal window and enter this:
curl http://wiifit.com

This will load the web page using "curl".

The following is a printout from tcpdump showing resolver1.opendns.com as the DNS server.

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on en1, link-type EN10MB (Ethernet), capture size 128 bytes
21:09:25.347972 IP 192.168.1.132.52104 > resolver1.opendns.com.domain: 8973+ SRV? _http._tcp.wiifit.com. (39)
21:09:25.413867 IP 192.168.1.132.52105 > resolver1.opendns.com.domain: 51611+ PTR? 222.222.67.208.in-addr.arpa. (45)
21:09:25.468237 IP resolver1.opendns.com.domain > 192.168.1.132.52105: 51611 1/0/0 PTR resolver1.opendns.com. (80)
21:09:25.471433 IP 192.168.1.132.52106 > resolver1.opendns.com.domain: 51254+ PTR? 132.1.168.192.in-addr.arpa. (44)
21:09:25.522641 IP resolver1.opendns.com.domain > 192.168.1.132.52106: 51254 NXDomain 0/0/0 (44)
21:09:25.644452 IP resolver1.opendns.com.domain > 192.168.1.132.52104: 8973 NXDomain 0/0/0 (39)
21:09:25.644965 IP 192.168.1.132.52107 > resolver1.opendns.com.domain: 49725+ SRV? _http._tcp.wiifit.com. (39)
21:09:25.698514 IP resolver1.opendns.com.domain > 192.168.1.132.52107: 49725 NXDomain 0/0/0 (39)
21:09:25.699892 IP 192.168.1.132.52108 > resolver1.opendns.com.domain: 38658+ A? wiifit.com. (28)
21:09:25.832046 IP resolver1.opendns.com.domain > 192.168.1.132.52108: 38658 1/0/0 A 205.166.76.53 (44)
21:09:26.526985 IP 192.168.1.132.52109 > resolver1.opendns.com.domain: 18132+ PTR? 53.76.166.205.in-addr.arpa. (44)
21:09:26.881751 IP resolver1.opendns.com.domain > 192.168.1.132.52109: 18132 NXDomain 0/0/0 (44)

And finally, attached is a screenshot of my DNS servers listed. Notice how 192.168.1.1 is listed after the opendns server, yet it's never even tried by Directory Services' DNS resolver?

I can't say everyone's Mac behaves exactly the same as mine, but, this is my evidence that DNS servers are used in order that they are displayed within Network Preferences pane / Advanced / DNS screen.

Camino and Wireshark are, in my opinion, far removed from the actual action of DNS lookup and thus are not good tools for diagnostics. Remember that Camino has a dns cache that it tries before asking Directory Services (DS), and if you've visited a site within the last minute, it won't ask DS to do a lookup and may make Wireshark produce ... misleading results.

What do you think?

Regards,
Ben

Quote:

Originally Posted by arbushell (Post 474489)
Just for info the first DNS servers inquired are those at the bottom of the list (normally added manually, as OpenDNS). This for sure if those at the top are grayed. Seen with Wireshark packet trace and Camino.


cwtnospam 06-05-2008 04:36 PM

This link may explain part of the problem:
http://hunter.pairsite.com/blogs/blog20080603.html

arbushell 06-06-2008 04:30 AM

cwtnospam
Wireshark (ex Ethereal) simply records and shows TCP and other kind of packets flowing on the connection and likely is layered over tcpdump, I don't think it messes the order of messages (I'm using WS on MAC just for continuity with Windows).
In any case I repeated the test with Safari and tcpdump, results are been the same: Leopard 10.5.3 (former test was with 10.5.2) sends the first A Query to the first non-router assigned DNS (that is the first non-grayed, in my case OpenDNS 208.67.222.222, set manually with networksetup -setdnsservers ... ....). The same happens with the terminal command 'dig' instead of Safari.
Very interesting the hunter.pairsite blog, probably most DNS issues are due to this comprised mine that in the past addressed me to try OpenDNS and other name servers available on the internet

rdhints 06-06-2008 09:02 AM

Ah, 10.5.3 vs. 10.5.2
 
Arbushell, I think we may have just discovered something...

I believe Apple has reversed the order of the DNS server priority in Leopard 10.5.3.

I'm only speculating here as I have 10.5.2 installed and you have 10.5.3 installed, we're running roughly the same tests, yet you're seeing the opposite of what I'm seeing. Easiest explanation of that: Apple changed DNS server order with Leopard 10.5.3.

There is logic behind this from my perspective: If a user spends the time to add a DNS server manually to their TCP/IP setup, wouldn't they want it to actually be used?

The way Apple had it setup before (10.5.2 and prior), any DNS server you added would have no effect until the ones listed above it were tried/failed. Adding a preferred DNS server in Leopard 10.5.2 required creating a new Network Location, vastly more complicated then simply opening up the DNS tab and adding an IP address.

Anyone else able to confirm what order their DNS servers are used and under which version of Leopard? (Using tcpdump and curl as shown in post 56)
http://installingcats.com/wp-content...ns_servers.gif

arbushell 06-06-2008 02:30 PM

Looking into the file /etc/resolv.conf (supposedly where DNS resolvers are stored) the manually added addresses are inserted at the top. Likely they will be later used top-down.
Maybe that the general rule is that the last added are used first. Such order in resolv.conf is surely true in my installation where the USB HSDPA modem control application creates a new Location every time a new connection is made ( this is a behavior causing unfortunately other issues!) and so the OpenDNS addresses can be added only when the provider-assigned are already in place. Perhaps when is used an existing Location the sequence with which addresses are written in /etc/resolv.conf is reversed. Or not?


All times are GMT -5. The time now is 08:11 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.