LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-06-2012, 06:29 AM   #1
Laxman_prodigy
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Slackware64 13.37
Posts: 104

Rep: Reputation: 0
Can't browse/surf but transmission downloads.


Hi.
So, suddenly while browsing, it got very very slow accessing the webpages and started failing totally. Its Slackware 13.37 and the browsers are mozilla and opera. While Opera kept on opening pages later before the mozilla died on it. I can play Urban terror online with no problem. I have always used dhcpcd way to connect to the web. I am posting this from the Windows partition since its a dual boot and I kept it for the times like these.

I have tried to kill dhcpcd and re-run it with /sbin/dhcpcd. It forkes itself to the background, like the way it says. And the same story. No net browsing. I tried lynx to open google. It fails again. I am quite new to Slackware but have gotten that far from where I have become quite competent enough to troubleshoot any problems and hiccups with the great help of you guys.

Any info I should provide?

Thanks.

P.S And the browsing is fine with Windows 7.
 
Old 09-06-2012, 07:34 AM   #2
WetDreams
LQ Newbie
 
Registered: Feb 2011
Distribution: Slackware
Posts: 12

Rep: Reputation: 3
Could be a DNS issue. Can you access websites by typing the IP instead of the domain name?
 
1 members found this post helpful.
Old 09-06-2012, 07:56 AM   #3
Laxman_prodigy
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Slackware64 13.37
Posts: 104

Original Poster
Rep: Reputation: 0
Hi WetDreams.

I understand what you mean but how do I know the IP address of sites I am browsing?! Still posting here from Windows installation coz its fine here. And it was fine under slackware too until recently. I have ran into no net issues until now. All I have been doing is running /sbin/dhcpcd as root sometimes polling used to cross the polling time limit while booting.
 
Old 09-06-2012, 08:08 AM   #4
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
Send the results of the

# ping google.com

and

# route

and

# ifconfig -a

and

# tcpdump -v -i eth0

commands and the contents of /etc/resolve.conf

Note that on Slackware you should also have dhclient, try it.
 
1 members found this post helpful.
Old 09-06-2012, 08:10 AM   #5
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
Are you behind any firewalls?
 
Old 09-06-2012, 08:26 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
dhcpcd rewrites /etc/resolv.conf, which is a PITA, because if your router doesn't supply sensible dns servers, you end up with something like 192.168.0.1(the router) as dns :-/.

There is /etc/resolv.conf.head, which is a top for the new resolv.conf, and /etc/resolv.conf.tail, which is a bottom. I have opendns in the 'head file, so i see that. Also, if you pepper the RC scripts with DHCP_KEEPRESOLV="true" (rc.inet1.conf & rc.wireless.conf) it helps, although they still get overwritten occasionally :-/.
 
1 members found this post helpful.
Old 09-06-2012, 08:54 AM   #7
Laxman_prodigy
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Slackware64 13.37
Posts: 104

Original Poster
Rep: Reputation: 0
Hi everyone..

I'm not behind any firewalls. I will try the commands given and post the results soon. It seems that I can ping the sites and the lynx works too,just not the GUI browsers.I even tried installing opera through wine and it worked for a while but soon it failed too.
 
Old 09-06-2012, 09:14 AM   #8
Laxman_prodigy
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Slackware64 13.37
Posts: 104

Original Poster
Rep: Reputation: 0
hi...

here are the outputs....

Code:
bash-4.1$ ping google.com
PING google.com (74.125.236.14) 56(84) bytes of data.
64 bytes from del01s05-in-f14.1e100.net (74.125.236.14): icmp_req=1 ttl=53 time=54.7 ms
64 bytes from del01s05-in-f14.1e100.net (74.125.236.14): icmp_req=2 ttl=53 time=56.0 ms
64 bytes from 74.125.236.14: icmp_req=3 ttl=53 time=54.2 ms
^C^Z
[1]+  Stopped                 ping google.com



root@valleyofpeace:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     202    0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    202    0        0 eth0


root@valleyofpeace:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:27:0e:09:e3:ee  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:273 errors:0 dropped:0 overruns:0 frame:0
          TX packets:424 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:185069 (180.7 KiB)  TX bytes:45613 (44.5 KiB)
          Interrupt:20 Memory:f4200000-f4220000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:200 (200.0 B)  TX bytes:200 (200.0 B)


root@valleyofpeace:~# tcpdump -v -i eth0
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
19:30:59.898285 IP (tos 0x0, ttl 64, id 9660, offset 0, flags [DF], proto UDP (17), length 59)
    192.168.1.2.36192 > 203.94.243.70.domain: 39312+ A? r.bstatic.com. (31)
19:30:59.898837 IP (tos 0x0, ttl 64, id 19667, offset 0, flags [DF], proto UDP (17), length 72)
^Z
[1]+  Stopped                 tcpdump -v -i eth0
  

Contents in /etc/resolve.conf:

# Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
nameserver 59.179.243.70
nameserver 203.94.243.70
# /etc/resolv.conf.tail can replace this line
 
Old 09-06-2012, 09:22 AM   #9
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
You do not need wine for Opera. It is possible to install it via a Slackware package created by a slackbuild from slackbuilds.org. I recommend uninstalling mozilla-firefox and re-installing via slackpkg.
 
Old 09-06-2012, 09:54 AM   #10
Laxman_prodigy
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Slackware64 13.37
Posts: 104

Original Poster
Rep: Reputation: 0
I meant to say that I even tried through wine,I already had opera installed through slackbuilds but it wasn't working so I removed it. I had mozilla too from the slackbuilds.I have again installed opera through slackbuild as I had the build already in my Downloads.The problem is no matter what browser I install I can't surf. I can ping,can download through bittorrent,play online but just can't browse!It sometimes used to happen in windows too and I used to manually change IP addresses and it used to work,though I've currently put it to automatic IP setting and its working nonetheless. And what about the outputs I posted? Any clues there?
 
Old 09-06-2012, 12:45 PM   #11
Laxman_prodigy
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Slackware64 13.37
Posts: 104

Original Poster
Rep: Reputation: 0
Hey guys...I resolved the issue. It seems like a DNS issue. I had to edit the /etc/rc.d/rc.inet1.conf and put the IPs,mask and gateway manually and I disabled DHCP too. I also gave the DNS name servers in the resolv.conf manually and restarted the rc.inet1. And now its working fine. Thanks for the support.
 
Old 09-06-2012, 01:44 PM   #12
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
I am glad you resolved it (practically on your own).
 
1 members found this post helpful.
Old 09-07-2012, 01:41 AM   #13
Laxman_prodigy
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Slackware64 13.37
Posts: 104

Original Poster
Rep: Reputation: 0
Not without the tips here!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No transmission circlesdisplayed for wirless transmission in ns2 susanthomas Linux - Newbie 2 05-23-2012 01:14 AM
netinst downloads and apt-get downloads stalling then restarting Frustin Debian 2 03-08-2012 02:36 AM
XP Downloads Fast ... Ubuntu Downloads Slow :( Dinerty Ubuntu 2 07-23-2006 02:31 PM
Surf by IP mhykgyver Linux - Networking 2 09-18-2005 08:46 AM
mode of transmission cybercop12us Linux - Networking 1 11-28-2001 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration