Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8900493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:06:37+00:00 2026-06-15T01:06:37+00:00

When I try to ping or retrieve an invalid domain, I get redirect to

  • 0

When I try to ping or retrieve an invalid domain, I get redirect to default domain on my local server.
ex:
trying to ping http://www.invaliddomainnameexample.com from my server s1.mylocaldomain.com

~: ping www.invaliddomainnameexample.com
PING www.invaliddomainnameexample.com.mylocaldomain.com (67.877.87.128) 56(84) bytes of data.
64 bytes from mylocaldomain.com (67.877.87.128): icmp_seq=1 ttl=64 time=0.040 ms
64 bytes from mylocaldomain.com (67.877.87.128): icmp_seq=2 ttl=64 time=0.039 ms

or using curl

~: curl -I www.invaliddomainnameexample.com
HTTP/1.1 301 Moved Permanently
Date: Mon, 26 Nov 2012 16:09:57 GMT
Content-Type: text/html
Content-Length: 223
Connection: keep-alive
Keep-Alive: timeout=10
Location: http://mylocaldomain.com/

my resolve.conf

~: cat /etc/resolv.conf 
nameserver 8.8.8.8
nameserver 8.8.4.4
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:06:38+00:00Added an answer on June 15, 2026 at 1:06 am

    It looks like the only way to fix this is to disallow unknown hosts to be processed by Http server. Though I did that only for local IPs

    I use Nginx so the config would be

    #list of server and local IPs
    geo $local {
        default 0;
        34.56.23.0/21 1;
        127.0.0.1/32 1;
    }
    #Deny access to any host other  
    server {
       listen 80 default_server;
       server_name  _;
    
       if ( $local = 1 ){
           return 405;
       }
    
       rewrite ^(.*) http://mylocaldomain.com$1 permanent;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am able to ping smtp.mail.yahoo.com from my system but when i send email
I'm trying to ping a server based on an IP Address and a port,
I was trying to ping a server using the Ping class, but after like
im trying to ping a list of domains to get initial indications if they
When I try to ping Solr, I get a failure only in IE. if
I am trying to check if my server (local server) is up or down.
I'm using vbscript to try to connect to a sql server on another domain.
I have a Redis server. When I try the ping command or any other
I try to port this simple actor example of sending Ping and Pong from
My scenario: When i ping with www.google.com it give the status Success, When i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.