LinuxQuestions.org
Register a domain and help support LQ
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 06-18-2010, 06:07 AM   #1
Lyle
Member
 
Registered: May 2010
Location: Guyana, South America
Distribution: Debian, Sabayon
Posts: 37

Rep: Reputation: 15
Google.com wont load but google IP will. Entering IP in /etc/hosts, doesnt work


I can access google by their IP address, however clicking any link redirects to google.com rather than their IP.

it's my understanding that if
74.125.47.147 google.com
is in the hosts file it will bypass the DNS server and go directly to the IP.. Well, this is what i want to have happen.
 
Old 06-18-2010, 06:52 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
When I run "dig google.com" I see:

dig google.com

Code:
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> google.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16115
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com.                    IN      A

;; ANSWER SECTION:
google.com.             300     IN      A       74.125.157.99
google.com.             300     IN      A       74.125.157.104
google.com.             300     IN      A       74.125.157.147

;; AUTHORITY SECTION:
google.com.             118925  IN      NS      ns2.google.com.
google.com.             118925  IN      NS      ns3.google.com.
google.com.             118925  IN      NS      ns4.google.com.
google.com.             118925  IN      NS      ns1.google.com.

;; Query time: 11 msec
;; SERVER: 10.0.4.99#53(10.0.4.99)
;; WHEN: Fri Jun 18 07:44:05 2010
;; MSG SIZE  rcvd: 148
The IP you listed is NOT returned for Google.

When I run dig www.google.com I see:

Code:
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> www.google.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10507
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.google.com.                        IN      A

;; ANSWER SECTION:
www.google.com.         17376   IN      CNAME   www.l.google.com.
www.l.google.com.       300     IN      A       74.125.157.99
www.l.google.com.       300     IN      A       74.125.157.104
www.l.google.com.       300     IN      A       74.125.157.147

;; Query time: 7 msec
;; SERVER: 10.0.4.99#53(10.0.4.99)
;; WHEN: Fri Jun 18 07:49:21 2010
;; MSG SIZE  rcvd: 100
Again the IP you listed is NOT one of the above sites.


When I run dig -x 74.125.47.147 I see:

Code:
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> -x 74.125.47.147
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58068
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 0

;; QUESTION SECTION:
;147.47.125.74.in-addr.arpa.    IN      PTR

;; ANSWER SECTION:
147.47.125.74.in-addr.arpa. 86400 IN    PTR     yw-in-f147.1e100.net.

;; AUTHORITY SECTION:
125.74.in-addr.arpa.    72966   IN      NS      NS2.GOOGLE.COM.
125.74.in-addr.arpa.    72966   IN      NS      NS3.GOOGLE.COM.
125.74.in-addr.arpa.    72966   IN      NS      NS4.GOOGLE.COM.
125.74.in-addr.arpa.    72966   IN      NS      NS1.GOOGLE.COM.

;; Query time: 10 msec
;; SERVER: 10.0.4.99#53(10.0.4.99)
;; WHEN: Fri Jun 18 07:46:18 2010
;; MSG SIZE  rcvd: 160
Whois indicates 1e100.net is owned by Google. However the above digs suggest that this is NOT the main Google site as you seem to think. Without knowing what the purpose of 1e100.net is I don't think I'd be going there.

What happens when you run dig from where you are?
 
Old 06-18-2010, 02:54 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,098

Rep: Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362
Links in google are like using a new dns. They don't go though hosts.


What does nslookup www.google.com return?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Google Chrome Automatically Installs Google Repository in Ubuntu LXer Syndicated Linux News 3 05-07-2010 11:20 AM
LXer: Google Public DNS - How Google Tries To 'Speed Up' The Internet LXer Syndicated Linux News 0 12-03-2009 09:00 PM
LXer: Google Maps and Google Earth KML overlays LXer Syndicated Linux News 0 10-29-2008 04:30 AM
LXer: The Google Command List: Data Mining using Google LXer Syndicated Linux News 0 01-21-2006 03:31 PM


All times are GMT -5. The time now is 11:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration