WebClient - Where is the google arduino search?

After uploading the sketch I opened the serial monitor and see a successful connection. However I don't see the result of the google search on "arduino". Please help me understand. :%

connecting...
connected
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 30 Nov 2012 13:29:35 GMT
Content-Type: text/html
Connection: close
Vary: Accept-Encoding
Expires: Fri, 30 Nov 2012 13:29:34 GMT
Cache-Control: no-cache

<html><head><meta http-equiv="refresh" content="0;url=http://dnssearch.rr.com/index.php?origURL=http://_/search"/></head><body><script>window.location="http://dnssearch.rr.com/index.php?origURL="+escape(window.location)+"&r="+escape(document.referrer);</script></body></html>
disconnecting.

Post your code!!!

Mark

/*
  Web client
 
 This sketch connects to a website (http://www.google.com)
 using an Arduino Wiznet Ethernet shield. 
 
 Circuit:
 * Ethernet shield attached to pins 10, 11, 12, 13
 
 created 18 Dec 2009
 modified 9 Apr 2012
 by David A. Mellis
 
 */

#include <SPI.h>
#include <Ethernet.h>

// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = {0x90, 0xA2, 0xDA, 0x0D, 0x97, 0x39};

IPAddress server(198,105,251,46); // www.google.com
//IPAddress server(66,152,109,110);   //both work: nslookup

// Initialize the Ethernet client library
// with the IP address and port of the server 
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;

void setup() {
 // Open serial communications and wait for port to open:
  Serial.begin(9600);

  // start the Ethernet connection:
  if (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    // no point in carrying on, so do nothing forevermore:
    for(;;)
      ;
  }
  // give the Ethernet shield a second to initialize:
  delay(1000);
  Serial.println("connecting...");

  // if you get a connection, report back via serial:
  if (client.connect(server, 80)) {
    Serial.println("connected");
    // Make a HTTP request:
    client.println("GET /search?q=arduino HTTP/1.0");
    client.println();
  } 
  else {
    // if you didn't get a connection to the server:
    Serial.println("connection failed");
  }
}

void loop()
{
  // if there are incoming bytes available 
  // from the server, read them and print them:
  if (client.available()) {
    char c = client.read();
    Serial.print(c);
  }

  // if the server's disconnected, stop the client:
  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();

    // do nothing forevermore:
    for(;;)
      ;
  }
}

You should be able to perform that same search. Paste
http://198.105.251.46/search?q=arduino
in your browser. I'm behind a firewall now that is blocking that IP address, but does not block google. Does it give you the correct results? Where does the reply indicate it is coming from?

That doesn't appear to be Google. I get it blocked as 'Suspicious - Placeholder'.

http://www.findip-address.com/198.105.251.46/whois

Handle NET-198-105-240-0-1
Ref Whois-RWS
Name SEARCHGUIDE
OrgRef Search Guide Inc
CIDR Length 20
Start Address 198.105.240.0
End Address 198.105.255.255
Type DS
Description Direct Assignment

that's what i see using nslookup in the command prompt. The given IP within the example failed for me, so I took this approach.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\encryptor>nslookup www.google.com
Server:  dns-cac-lb-01.rr.com
Address:  209.18.47.61

Non-authoritative answer:
Name:    www.google.com.stny.rr.com
Addresses:  198.105.251.46
          66.152.109.110

The given IP within the example failed for me, so I took this approach.

And? What did you do with this information?

Try 74.125.224.72, or one of the others listed in these links.

PaulS:

The given IP within the example failed for me, so I took this approach.

And? What did you do with this information?

well I assumed the IP has changed and thought I'd try finding the IP myself.

Ok, I tried 74.125.224.72 and it appears to work. I obtained 1 very long html string where within said "arduino google search"

Using netcraft.com I also found the IP for newegg.com and that also worked. Thanks for the help!

Have you tried making the below change to the code to be independent of the IP address?

char server[] = "www.google.com"; 
//IPAddress server(198,105,251,46); // www.google.com

use 172.217.164.174 I found this from pinging google here: Online Ping Utility Tool for IPv4 Address | IP AddressGuide when I used cmd, i got IPv6, but this site does IPv4