Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-08-2004, 02:04 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2004
Posts: 4
Rep:
|
Why is Resolving taking so long?
Here's the issue, any DNS that needs to be resolved ie. google.com takes between 15-60 seconds, and sometimes just simply fails. When going to the IP itself it is fast, like it should be. Downloads are fullspeed as well, as soon as resolving is done.
I used ndis-wrapper to install my motorola WPCI810G PCI card, which worked perfectly. I'm connecting to a motorla WR850G router. And distro I'm on is Mandrake 10.
Here's some info I've gathered that may help.
Settings in Manage Connections - wlan0 (Mandrake Control Center 10)
-------------------------------------------------------------------
DHCP Selected
IP: 192.168.10.2
Netmask: 255.255.255.0
Gate: 192.168.10.1
DNS Servers: 192.168.10.1
Search Domain: localhost
Output of ifconfig
------------------
wlan0 Link encap:Ethernet HWaddr 00:0C:E5:45:CA:F1
inet addr:192.168.10.2 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::20c:e5ff:fe45:caf1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:163266 errors:0 dropped:0 overruns:0 frame:0
TX packets:144120 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10928899 (10.4 Mb) TX bytes:11779684 (11.2 Mb)
Interrupt:3 Memory:ea000000-ea001fff
Output of route
---------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0 * 255.255.255.0 U 0 0 0 wlan0
default wr850g.motorola 0.0.0.0 UG 0 0 0 wlan0
Settings In Router
------------------
Connection Mode: Cable Modem(dhcp)
IP Address: 68.188.x.x
Subnet Mask: 255.255.255.0
Default Gateway: 68.188.x.x
obtain DNS servers automatically: checked
Primary DNS: 66.168.128.20
Secondary DNS: 66.168.128.21
Tertiary DNS: Blank
Host Name: Blank
Domain Name: Blank
If anyone could help me figure this out, I would appreciate it very much.
Thanks,
DevilDust
|
|
|
|
08-08-2004, 02:24 PM
|
#2
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Welcome to LQ.
Does this only happen when using a particular browser?
Can you post the output from:
time dig www.linuxquestions.org
Does your router have any diagnostic tools? If so then try a dns lookup from the router itself and see if that is any faster.
|
|
|
|
08-08-2004, 02:30 PM
|
#3
|
|
Member
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365
Rep:
|
Just a quick check...
There are listings in the /etc/resolv.conf file right?
The resolver will "resolve" addresses using the dns servers according to their order.
Put the valid out there in the world address first and that shud speed things up.
|
|
|
|
08-08-2004, 05:13 PM
|
#4
|
|
LQ Newbie
Registered: Aug 2004
Posts: 4
Original Poster
Rep:
|
The slow resolving has happened with konquerer, firefox browsers... and chat programs: x-chat, kopete. Basically I used anything where the DNS resolves as quick as it should. As far as in the router, yeah DNS or traceroute in the router works just fine.
Output from Resolv.conf
---------------------------------
nameserver 192.168.10.1
search localhost
Output from dig www.linuxquestions.org
------------------------------------------------------
; <<>> DiG 9.2.3 <<>> www.linuxquestions.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7606
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
; www.linuxquestions.org. IN A
;; ANSWER SECTION:
www.linuxquestions.org. 3462 IN A 64.179.4.149
;; Query time: 3 msec
;; SERVER: 192.168.10.1#53(192.168.10.1)
;; WHEN: Sun Aug 8 17:10:09 2004
;; MSG SIZE rcvd: 56
NOTE: Browser was at www.linuxquestions.org when dig was done... I just tried dig wwwgoogle.com, and it wouldn't go through, says no servers chould be reached.
UPDATE: okay, so dig www.google.com finally worked.. it's taking between 240-300 msec to resolve... that isn't very long is it?
Last edited by DevilDust; 08-08-2004 at 05:18 PM.
|
|
|
|
08-08-2004, 05:32 PM
|
#5
|
|
Member
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291
Rep:
|
It looks like your dns server is also your router. Does your router keep a dns table or something? If it does you may need to flush it or something. also try to do and nslookup on an address and see what dns address your really using and how long it takes.
|
|
|
|
08-08-2004, 08:24 PM
|
#6
|
|
Member
Registered: Jun 2004
Location: QC, Philippines
Distribution: Ubuntu
Posts: 30
Rep:
|
what is the effect of removing the line search localhost from resolv.conf? I had problems in the past with similar entries so I removed them. I have a router too and I use the address of the router as my nameserver and I have no problems whatsoever.
|
|
|
|
08-08-2004, 08:38 PM
|
#7
|
|
LQ Newbie
Registered: Aug 2004
Posts: 4
Original Poster
Rep:
|
router address is: 192.168.10.1 and is set to nameserver in resolv.conf
tried taking search localhost out of resolv.conf and then i lost my connection..
|
|
|
|
08-08-2004, 08:43 PM
|
#8
|
|
Member
Registered: Jun 2004
Location: QC, Philippines
Distribution: Ubuntu
Posts: 30
Rep:
|
ok...so that was not a good idea 
are you on dynamic or static IP/DNS settings?
|
|
|
|
08-08-2004, 08:48 PM
|
#9
|
|
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140
|
Does the command ' dig @192.168.10.1 google.com A ' take much time ? And is there ' ANSWER: 1 ' in output ?
I would try to add my ISP nameserver in /etc/resolv.conf too in case of...
|
|
|
|
08-08-2004, 08:51 PM
|
#10
|
|
Member
Registered: Jun 2004
Location: QC, Philippines
Distribution: Ubuntu
Posts: 30
Rep:
|
Quote:
Originally posted by Cedrik
Does the command ' dig @192.168.10.1 google.com A ' take much time ? And is there ' ANSWER: 1 ' in output ?
I would try to add my ISP nameserver in /etc/resolv.conf too in case of...
|
I agree sometimes the ISP's nameservers work too. if you get the settings dynamically you won't even have to know their servers
|
|
|
|
08-08-2004, 09:08 PM
|
#11
|
|
LQ Newbie
Registered: Aug 2004
Posts: 4
Original Poster
Rep:
|
I got Answer: 3 ... and took 289 msec
since I'd just been to google I tried linux.com:
got Answer: 1 ... and took 330 msec
.. not sure what that means.. maybe yall can interpret for me
btw, I tried putting in ISP nameservers, that I took from working Windows machine like:
nameserver 192.168.10.1
nameserver isp nameserver 1 (the IPs, i forgot them)
nameserver isp nameserver 2
didn't seem to matter much, maybe i should take out the router ip as nameserver.. and just put isp nameservers back in?
|
|
|
|
08-08-2004, 11:55 PM
|
#12
|
|
Member
Registered: Feb 2004
Posts: 467
Rep:
|
Quote:
Originally posted by DevilDust
btw, I tried putting in ISP nameservers, that I took from working Windows machine like:
nameserver 192.168.10.1
nameserver isp nameserver 1 (the IPs, i forgot them)
nameserver isp nameserver 2
didn't seem to matter much, maybe i should take out the router ip as nameserver.. and just put isp nameservers back in?
|
That wouldn't matter because it would search for the entries at 192.168.10.1 before going to nameserver 1 and 2. Put nameserver 1 first and see if the times improve.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:30 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|