Trying to open a url to post parameters through asp.net application to sql

I tried your suggestion, still nothing.

int lastUpdate;
//byte server[] = { 192, 168, 1, 9 };
IPAddress server(192, 168, 1, 9);
void setup()
{
  Serial.begin(9600);
}

void loop()
{
if(millis() - lastUpdate > 5000){
    lastUpdate = millis();

 Serial.println("connecting...");

  if (client.connect(server, 80))
  {
    Serial.println("connected");
    client.println("GET /energy/logArduinoData.aspx?Location=123&Voltage=24&Ampere=25 HTTP/1.1 Host:192.168.1.9");
    client.println("Host: 192.168.1.9");
    client.println("Content-Length: 0");
    client.println();
    
//client.print("GET /energy/LogArduinoData.aspx?Location=");
//client.print(location);
//client.print("&Voltage=");
//client.print(voltage);
//client.print("&Ampere=");
//client.print(ampere);
//client.print(" HTTP/1.1\n"); 
//client.print("Host:192.168.1.9 \n"); 
//client.print("Connection: close\n");  
//client.print("Content-Type: application/x-www-form-urlencoded\n");
//client.print("Content-Length: 0 \n\n" );

  }
  else
  {
    Serial.println("connection failed");
  }
  
  
  if (client.available())
  {
    char c = client.read();
    Serial.print(c);
  }
  
  if (!client.connected())
  {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();
    for(;;);
  }
  client.print("Connection: close\n");  
}
}

I can see it on my home router as a client with 192.168.1.109 ip. I’d like to force a dns server. I’ve done some research but still haven’t found anything. I’ve tried this tool by mtnscott and I can see dns changing a couple times but I don’t know how to force a dns.

Thanks.