Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Hi all I have Debian Sid installed on my laptop and am getting extremely slow DNS lookups when I'm connected to the web through my router at home (datasheet of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Location
    Switzerland
    Posts
    8

    Extremely slow DNS lookups


    Hi all

    I have Debian Sid installed on my laptop and am getting extremely slow DNS lookups when I'm connected to the web through my router at home (datasheet of router: http://www.netopia.com/equipment/pdf/spec/3300w.pdf). This doesn't happen under Windows, though, and the problem doesn't occur either when I'm surfing at school (using Debian).
    I've now been searching the web for days for a solution to this but couldn't find anything solid. A piece of advice that was often given was turning off IPv6. But in my case this didn't work out either.
    I'm not really familiar with Linux yet and would be glad if you could help me along.

  2. #2
    Linux Engineer Nerderello's Avatar
    Join Date
    Apr 2003
    Location
    North East England
    Posts
    1,190
    not sure if this will help, but I added pdnsd to my Fedora box. Now it first checks a local cache (on my PC) and only if it can't find the address there does it go looking on the net.

    I've found that this does speed up my "normal" surfing as most addresses are now local (ie. on my PC) and so there is no need for it to go searching.

    Check out :-
    http://freshmeat.net/projects/pdnsd/

    have fun

    Nerderello

    Use Suse 10.1 and occasionally play with Kubuntu
    Also have Windows 98SE and BeOS

  3. #3
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    I've heard that having localhost (127.0.0.1) or your own IP (ie, 192.168.xxx.xxx) listed as your first DNS look up in /etc/resolv.conf you could have speed issues.

    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  4. #4
    Just Joined!
    Join Date
    Dec 2004
    Location
    Switzerland
    Posts
    8
    Thank you for your advice.

    @Norderello: Your solution may surely help for websites I regurarly visit. But as I do a lot of googling and visit all sorts of websites I've never seen before, this wouldn't make a big difference. I think there must be a more effective, straight-forward solution to this. I mean when dns lookups take about ten seconds, something really fundamental must be wrong.

    @jeremy1701: My /etc/resolv.conf looks like this:

    search
    nameserver 192.168.1.1

    How (and where) can I change these settings?

  5. #5
    Linux Engineer Nerderello's Avatar
    Join Date
    Apr 2003
    Location
    North East England
    Posts
    1,190
    if the ISP provides you with your IP address, then it will probably also supply you with the DNS address as well. So editing (as "su -") may be to no avail, as it wil be overwritten. I believe that the code that does this is in the ipup and ipdown scripts (can't remember where they are but a quick search will show you).

    Have you done a "dig" or "dnslookup" while connected, to see if you can spot anything obvious?

    Nerderello

    Use Suse 10.1 and occasionally play with Kubuntu
    Also have Windows 98SE and BeOS

  6. #6
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,628
    We ran into a similar situation here. Maybe this will help as he found a solution.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  7. #7
    Just Joined!
    Join Date
    Dec 2004
    Location
    Switzerland
    Posts
    8
    @Nerderello: I did several pings and digs and I actually got virtually no delays at all. What does this mean?

    @Dapper Dan: Thank you for the link. But unfortunately I haven't been able so far to figure out where I am to do the necessary settings... Or can you tell me what is exactly meant by "going into internet connections" in the last message of the thread?

  8. #8
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,628
    I think he was talking about changing the settings in his router.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  9. #9
    Just Joined!
    Join Date
    Dec 2004
    Location
    ireland
    Posts
    1

    Slow DNS Lookup

    This is fairly common in newer distros which turn on IPV6 by default.

    You should be able to get back to the speed you are used to by adding these lines at the end of /etc/modprobe.conf

    alias ipv6 off
    alias net-pf-10 off

  10. #10
    Linux Engineer Nerderello's Avatar
    Join Date
    Apr 2003
    Location
    North East England
    Posts
    1,190
    if you can ping any address outside of your PC (ie not 127.0.0.n or your own IP address), it suggests that your network connection is fine.

    What does it say when you do a "cat /etc/resolv.conf" ?

    Nerderello

    Use Suse 10.1 and occasionally play with Kubuntu
    Also have Windows 98SE and BeOS

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •