You are not logged in.
Hi,
I noticed that everytime my Archlinux server needs to resolve a domain name, it takes about 10-15 seconds. Is there a way to figure out what is causing this? Thanks.
Offline
Have you made any changes to /etc/nsswitch.conf?
What DNS servers are listed in /etc/resolv.conf?
Do you use DHCP or static addressing?
What kind of network are you on? (the internet (connected directly to a modem of some sort)? a home network? a corporate network?)
Offline
Have you made any changes to /etc/nsswitch.conf?
Not that I know of.
What DNS servers are listed in /etc/resolv.conf?
# Generated by dhcpcd for interface eth0
search router
nameserver 192.168.10.1
The above is familiar because the hostname of my router is "router", and its IP address is that listed above as "nameserver".
Do you use DHCP or static addressing?
DHCP
What kind of network are you on? (the internet (connected directly to a modem of some sort)? a home network? a corporate network?)
Network type is LAN. My linux machine connects directly to the router, and the router to the internet through a bridge. Keep in mind that I'm basically still running off of a default installation of Archlinux. I'm too used to Ubuntu setting things up for me so I'm probably missing some essential configuration. I had to setup my network manually, so perhaps I missed something.
Offline
Do the other computers on your LAN resolve hosts using the router? Are they affected by this problem?
I assume that you have no IPTables firewall running on the Arch box, so that can't be it...
Offline
Have you tried ping 192.168.10.1? The dns server might be slow. Do you only have 1 dns server? To check whether it is a configuration problem or or server problem try using on of the following free dns servers (by appending "nameserver xxx.xx.xxx.xxx"):
From opendns:
=> 208.67.222.222
=> 208.67.220.220
ScrubIT Free DNS Server IP address:
=> 67.138.54.100
=> 207.225.209.66
Offline
Have you tried ping 192.168.10.1? The dns server might be slow. Do you only have 1 dns server? To check whether it is a configuration problem or or server problem try using on of the following free dns servers (by appending "nameserver xxx.xx.xxx.xxx"):
From opendns:
=> 208.67.222.222
=> 208.67.220.220ScrubIT Free DNS Server IP address:
=> 67.138.54.100
=> 207.225.209.66
Sorry I don't understand. What do you mean run the command "nameserver 208.67.222.222", for example? Could you explain please? Thanks for your help, by the way.
Offline
Can you install the dnsutils package (pacman -Sy dnsutils) and then post the output of:
dig www.google.com
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Have you added your computers name to the localhost line in /etc/hosts?
Offline
I meant delete "nameserver 192.168.10.1" in your /etc/resolve.conf and add "nameserver 208.67.222.222" or one of the ip addresses.
Offline
Sorry for having taken a while to respond guys. I appreciate everyone's help so far. I wasn't very specific before I guess, so I'll try again. I apologize for the confusion.
When I said DNS resolution was slow, the only place where I noticed this happening that I can remember is during a wget command. Take the output below for example:
[robert@server colors]$ wget http://blog.infinitered.com/entry_files/8/ir_black.vim
--2008-08-08 03:33:30-- http://blog.infinitered.com/entry_files/8/ir_black.vim
Resolving blog.infinitered.com... 209.20.65.189
Connecting to blog.infinitered.com|209.20.65.189|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10140 (9.9K) [application/octet-stream]
Saving to: `ir_black.vim'
100%[=================================================>] 10,140 --.-K/s in 0.05s
2008-08-08 03:33:40 (181 KB/s) - `ir_black.vim' saved [10140/10140]
Note the "Resolving blog.infinitered.com..." above. That line took about 10-15 seconds to process! Is this normal? Everything else on my network (Windows machines) resolve things fairly quickly.
Offline
Can you install the dnsutils package (pacman -Sy dnsutils) and then post the output of:
dig www.google.com
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
fukawi2 wrote:Can you install the dnsutils package (pacman -Sy dnsutils) and then post the output of:
dig www.google.com
Sorry Here it is:
[robert@server ~]$ sudo dig www.google.com
Password:
; <<>> DiG 9.5.0-P1 <<>> www.google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63003
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 603552 IN CNAME www.l.google.com.
www.l.google.com. 261 IN A 64.233.167.147
www.l.google.com. 261 IN A 64.233.167.99
www.l.google.com. 261 IN A 64.233.167.104
;; Query time: 11 msec
;; SERVER: 192.168.10.1#53(192.168.10.1)
;; WHEN: Fri Aug 8 13:51:10 2008
;; MSG SIZE rcvd: 100
Offline
Interesting...
There should be around 19 answers for www.google.com - you go only 4
Can you try:
dig www.google.com @208.67.220.220
(btw, no need to sudo it )
Last edited by fukawi2 (2008-08-09 00:35:09)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
[robert@server ~]$ dig www.google.com @208.67.220.220
; <<>> DiG 9.5.0-P1 <<>> www.google.com @208.67.220.220
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48573
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 30 IN CNAME google.navigation.opendns.com.
google.navigation.opendns.com. 30 IN A 208.69.32.230
google.navigation.opendns.com. 30 IN A 208.69.32.231
;; Query time: 46 msec
;; SERVER: 208.67.220.220#53(208.67.220.220)
;; WHEN: Sat Aug 9 00:35:58 2008
;; MSG SIZE rcvd: 104
Offline
Hmmm.... One more
dig blog.infinitered.com
dig blog.infinitered.com @208.67.220.220
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
[robert@server ~]$ dig blog.infinitered.com
; <<>> DiG 9.5.0-P1 <<>> blog.infinitered.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57310
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;blog.infinitered.com. IN A
;; ANSWER SECTION:
blog.infinitered.com. 86397 IN A 209.20.65.189
;; Query time: 8 msec
;; SERVER: 192.168.10.1#53(192.168.10.1)
;; WHEN: Sat Aug 9 02:42:11 2008
;; MSG SIZE rcvd: 54
[robert@server ~]$ dig blog.infinitered.com @208.67.220.220
; <<>> DiG 9.5.0-P1 <<>> blog.infinitered.com @208.67.220.220
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64207
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;blog.infinitered.com. IN A
;; ANSWER SECTION:
blog.infinitered.com. 86400 IN A 209.20.65.189
;; Query time: 113 msec
;; SERVER: 208.67.220.220#53(208.67.220.220)
;; WHEN: Sat Aug 9 02:42:27 2008
;; MSG SIZE rcvd: 54
Offline