Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I encounter slow domain name resolution in mozilla firefox. My system is
UBUNTU 2.6.10-5-686 kernel.. THe network schema is ADSL modem >> TLink -WR541G router >> my computer.
The model of my computer is IBM thinkpad T21, with dual system of Ubuntu and Winxp.
My problem is that it takes me a very long time to resolve a domain name (in the status bar of firefox, the words "looking up ....domain name..." stay for a long time. Quite often, the name was not resolved and timed out.
I tried to ping google or yahoo website, it is slow, sometime, timed out.
I have searched the posts and confirned that modifying the file /etc/resolv.conf did not help (not matter I change it to previous one plus 192.168.1.1 or not). THe IP address is the same as the DNS server displayed using ipconfig /all in Winxp.
Now the thing is that Winxp can resolve simialr webiste quite fast. (note, in order my network (non-wireless one, eth0) card to work, I add apci=off in menu.lst. (not sure whehter this will affect wireless eth1. But another post I googeled, suggest to change acpi=hd noacpi. but this does not help. I also disable IP6 by add "alias net-of-10 off" in /etc/modprobe.d/alias, still does not work.
Hi, primo, I change the configuration as you recommended. However, things do not change. Resolving is still slow for some website. However, I find in Redhat 9.0, the resolving is fast.
I even tried to flush out the cache in the router using ipconfig /flushdns in windows XP and restart modem and router, it does not help too.
I would be very appreciated if you can remind me any ohter configuration I can resort to to resolve the problem. My ubuntu works very well except the slow domain resolving problem for months. :-(
First of all, take out the search domain line in /etc/resolv.conf. That is causing a DNS recursion to search for names in the domain zone which doesn't exist. As a side note you can only have a maximum of three name servers listed. Anymore will be useless.
traceroute each server to see which one is nearest you
What does /etc/host.conf contain?
--------------
order hosts,bind
multi on
-----------------
/etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
----------------
It does not matters if I change the order of the three DNS servers.
I also want to install a local caching for DNS server. and I followed Unofficial Ubuntu 5.04 Starter Guide
sudo apt-get install dhcp3-server
But, it gave an error message:
----------------
Starting DHCP server: dhcpd3 failed to start - check syslog for diagnostics.
invoke-rc.d: initscript dhcp3-server, action "start" failed.
----------------
any ideas?
Also the domain name resolution problem becomes better when I change the DNS server list to: 62.41.128.51 and 62.41.128.52. I get this from another post in linuxquestions. Is there any better solution?
I encounter slow domain name resolution in mozilla firefox. My system is
UBUNTU 2.6.10-5-686 kernel.. THe network schema is ADSL modem >> TLink -WR541G router >> my computer.
The model of my computer is IBM thinkpad T21, with dual system of Ubuntu and Winxp.
My problem is that it takes me a very long time to resolve a domain name (in the status bar of firefox, the words "looking up ....domain name..." stay for a long time. Quite often, the name was not resolved and timed out.
I tried to ping google or yahoo website, it is slow, sometime, timed out.
I have searched the posts and confirned that modifying the file /etc/resolv.conf did not help (not matter I change it to previous one plus 192.168.1.1 or not). THe IP address is the same as the DNS server displayed using ipconfig /all in Winxp.
Now the thing is that Winxp can resolve simialr webiste quite fast. (note, in order my network (non-wireless one, eth0) card to work, I add apci=off in menu.lst. (not sure whehter this will affect wireless eth1. But another post I googeled, suggest to change acpi=hd noacpi. but this does not help. I also disable IP6 by add "alias net-of-10 off" in /etc/modprobe.d/alias, still does not work.
This problem had bothered my serveral months. I am very appreciated if u can give me some suggestions.
Cheers
Septanla
I had the same problem. I use OpenDNS. Followed these simple instructions from OpenDNS, instead of changing the DNS from the "Network" icon and now it is super fast!
# Right-click on ‘Network Icon’ (located at top-right panel by default) and click on ‘Edit Connections’ to open Network Connections Manager.
# Choose the type of connection you have. For this example, we will use ‘Wired’.
# Under ‘Wired’, highlight ‘Auto etho’ and click on ‘Edit’.
# Inside 'Editing Auto etho' window, click on ‘IPv4 Settings’ tab.
# Under ‘IPv4 Settings’, change the ‘Method’ to Automatic (DHCP) addresses only.
# Put these nameserver addresses as your ‘DNS Servers’: 208.67.222.222, 208.67.220.220
# Click ‘OK’ and reboot your machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.