LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-03-2012, 08:46 AM   #1
fedix
Member
 
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104

Rep: Reputation: 17
Internet Inconsistency


Hi

I'm at the end of my knowledge (and patience). I'm struggling to get consistent internet connectivity.

My problem: I can ping my mail pop address but can't open any web site. Then suddenly, I will be able to open google in a browser, but not other web sites. Keep on trying, I manage to open them, just to loose it again.

I can consistently ping an I address with relative good results, but can't ping host names consistently. Will be on, and suddenly of, and back on again.

Results for pinging a dns server looks good...
Code:
PING 196.36.199.229 (196.36.199.229) 56(84) bytes of data.
64 bytes from 196.36.199.229: icmp_req=1 ttl=58 time=18.6 ms
64 bytes from 196.36.199.229: icmp_req=2 ttl=58 time=18.8 ms
64 bytes from 196.36.199.229: icmp_req=3 ttl=58 time=18.4 ms
64 bytes from 196.36.199.229: icmp_req=4 ttl=58 time=18.6 ms
64 bytes from 196.36.199.229: icmp_req=5 ttl=58 time=18.3 ms
64 bytes from 196.36.199.229: icmp_req=6 ttl=58 time=18.0 ms
Pinging a host name is very inconsistent....or even suddenly "unknown host" which means there is no connection? But, immediately after the hostname reply "unknown host", I can ping an IP address (that of the dns server) with no problem.

Pinging the exact same host, first with the IP address and then with the host name, replies differently.
IP ping of a mail server
Code:
PING 78.46.7.31 (78.46.7.31) 56(84) bytes of data.
64 bytes from 78.46.7.31: icmp_req=1 ttl=50 time=222 ms
64 bytes from 78.46.7.31: icmp_req=2 ttl=50 time=221 ms
64 bytes from 78.46.7.31: icmp_req=3 ttl=50 time=221 ms
64 bytes from 78.46.7.31: icmp_req=4 ttl=50 time=222 ms
The same mail server but with the host name...
Code:
64 bytes from dedi2031.nur4.host-h.net (78.46.7.31): icmp_req=1 ttl=50 time=223 ms
64 bytes from static.31.7.46.78.clients.your-server.de (78.46.7.31): icmp_req=2 ttl=50 time=650 ms
64 bytes from dedi2031.nur4.host-h.net (78.46.7.31): icmp_req=3 ttl=50 time=221 ms
64 bytes from static.31.7.46.78.clients.your-server.de (78.46.7.31): icmp_req=4 ttl=50 time=223 ms
64 bytes from 78.46.7.31: icmp_req=5 ttl=50 time=222 ms
64 bytes from dedi2031.nur4.host-h.net (78.46.7.31): icmp_req=6 ttl=50 time=221 ms
64 bytes from static.31.7.46.78.clients.your-server.de (78.46.7.31): icmp_req=7 ttl=50 time=221 ms
64 bytes from dedi2031.nur4.host-h.net (78.46.7.31): icmp_req=8 ttl=50 time=221 ms
64 bytes from 78.46.7.31: icmp_req=9 ttl=50 time=222 ms
64 bytes from static.31.7.46.78.clients.your-server.de (78.46.7.31): icmp_req=10 ttl=50 time=222 ms
64 bytes from 78.46.7.31: icmp_req=11 ttl=50 time=222 ms
64 bytes from 78.46.7.31: icmp_req=12 ttl=50 time=225 ms
64 bytes from 78.46.7.31: icmp_req=13 ttl=50 time=222 ms
64 bytes from 78.46.7.31: icmp_req=14 ttl=50 time=222 ms
64 bytes from 78.46.7.31: icmp_req=15 ttl=50 time=222 ms
64 bytes from 78.46.7.31: icmp_req=16 ttl=50 time=222 ms
64 bytes from 78.46.7.31: icmp_req=17 ttl=50 time=222 ms
64 bytes from 78.46.7.31: icmp_req=18 ttl=50 time=222 ms
It looks as if it is a DNS problem because when I use IP, it doesn't seem to be having a problem.

nslookup www.google.com give me this
Code:
Server:        127.0.0.1
Address:    127.0.0.1#53

Non-authoritative answer:
*** Can't find www.google.com: No answer
...and then suddenly, this...
Code:
Server:        127.0.0.1
Address:    127.0.0.1#53

Non-authoritative answer:
Name:    google.com
Address: 173.194.34.163
Name:    google.com
Address: 173.194.34.162
Name:    google.com
Address: 173.194.34.161
Name:    google.com
Address: 173.194.34.174
Name:    google.com
Address: 173.194.34.166
Name:    google.com
Address: 173.194.34.169
Name:    google.com
Address: 173.194.34.165
Name:    google.com
Address: 173.194.34.164
Name:    google.com
Address: 173.194.34.167
Name:    google.com
Address: 173.194.34.160
Name:    google.com
Address: 173.194.34.168
OK, the picture is probably clear. Can anyone explain to me why this is happening and how to fix this.

My settings are as follows:
I'm connecting wireless from a laptop to my router, which connects via dsl to the internet. The router is setup with DHCP. My laptop was set up to receive all DHCP. Because it didn't want to work, I changed it to only IP and entered the DNS settings. IPv6 is on full automatic.



Could it be that some sites are genuinely not available, because as I'm typing this, linuxquestions are still not available while I can google....

And while alllllll this was happening on my Ubuntu 12.0.4 TLS, I was able to browse the internet very consistently on my Windows laptop with the exact dsl, wireless config, DHCP config etc. I was also able to install and update apps through apt-get without having a problem of something not being available.

HELP, thanks.
 
Old 11-03-2012, 09:38 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,591

Rep: Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689
Eliminate what you can...

Change your resolution (/etc/resolv.conf) to have these as the first two entries
Code:
nameserver 8.8.8.8
nameserver 4.2.2.2
This uses the google public dns servers as your primary, abd level3 communications as your second. This should bypass any DNS issues at your ISP or router.
-- The best way to make this change is distribution and version specific. You MAY just be able to edit the file.

If this resolves your problem, you can either leave it this way or troubleshoot your previous DNS problems with confidence that you know where the error lies. If this makes no difference, then you know that the DNS resolution is not directly the problem, but is only a symptom of something more basic.

Either way, let us know what happens. We can advise on the next step.

Last edited by wpeckham; 11-03-2012 at 09:40 PM.
 
  


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
What is this inconsistency called? LuvNoze Linux - Newbie 7 12-16-2011 03:17 AM
Inconsistency detected by ld.so Jeff91 Linux - Laptop and Netbook 2 07-05-2009 11:11 PM
unexpected inconsistency anjala Linux - Server 1 11-26-2008 11:05 PM
hostname inconsistency lacrimae Linux - General 7 02-12-2002 10:01 AM
inconsistency Dynamo Linux - General 2 08-04-2001 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:15 AM.

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