आप वेबसाइट के लिए आईपी पता कैसे ढूंढते हैं?

विषयसूची:

आप वेबसाइट के लिए आईपी पता कैसे ढूंढते हैं?
आप वेबसाइट के लिए आईपी पता कैसे ढूंढते हैं?

वीडियो: आप वेबसाइट के लिए आईपी पता कैसे ढूंढते हैं?

वीडियो: आप वेबसाइट के लिए आईपी पता कैसे ढूंढते हैं?
वीडियो: Password unlock iPhone 7 #shorts #short - YouTube 2024, अप्रैल
Anonim
चाहे आप इसमें कुछ geeky मस्ती के लिए हैं, या गंभीरता से जवाब जानना चाहते हैं, आप वेबसाइट के लिए आईपी पता कैसे पा सकते हैं? आज का सुपर यूज़र क्यू एंड ए पोस्ट उत्तर को देखता है, और कैसे पता चलेगा कि एक से अधिक वेबसाइट एक ही आईपी पते से बंधी हैं या नहीं।
चाहे आप इसमें कुछ geeky मस्ती के लिए हैं, या गंभीरता से जवाब जानना चाहते हैं, आप वेबसाइट के लिए आईपी पता कैसे पा सकते हैं? आज का सुपर यूज़र क्यू एंड ए पोस्ट उत्तर को देखता है, और कैसे पता चलेगा कि एक से अधिक वेबसाइट एक ही आईपी पते से बंधी हैं या नहीं।

आज का प्रश्न और उत्तर सत्र हमारे पास सुपरयूसर की सौजन्य है - स्टैक एक्सचेंज का एक उपविभाग, क्यू एंड ए वेब साइट्स का एक समुदाय संचालित समूह।

प्रश्न

सुपर यूज़र रीडर JqueryLearner यह जानना चाहता है कि वेबसाइट का आईपी पता क्या है:

If I want to know the IP address of a website, then one way is to ping the website. For example, if I want to know the IP address of google.com, then I can ping it via the command prompt.

So 74.125.236.195 is the IP address for Google. But suppose I want to know the IP address of superuser.com, and if I use the same method, then I get 198.252.206.16 as the IP address. If I put this IP address in the browser as an URL, then my browser does not take me to superuser.com.
So 74.125.236.195 is the IP address for Google. But suppose I want to know the IP address of superuser.com, and if I use the same method, then I get 198.252.206.16 as the IP address. If I put this IP address in the browser as an URL, then my browser does not take me to superuser.com.

Can anyone tell me how to get the correct IP address?

तो वेबसाइटों के लिए सही आईपी पते खोजने के लिए JqueryLearner को क्या करने की आवश्यकता है?

उत्तर

सुपरयूसर योगदानकर्ता पॉल और लेस्का का जवाब हमारे लिए है। सबसे पहले, पॉल:

Your starting assumption is that all websites can be accessed via their IP address directly. This is not the case.

In many cases (I’d venture most cases), the website that is presented at an IP address is dependent on the website name you are requesting. For example, if you request superuser.com, you will first resolve this to an IP address, then make a request to the IP address for a specific webpage. It looks like this:

The first part says “get the first page of the site”, and the second says “for the website superuser.com”.
The first part says “get the first page of the site”, and the second says “for the website superuser.com”.

This is why a single web server can host multiple websites using a single IP address. In the case of the Stack Exchange sites, any or all of them can be on each of their servers, and you’ll get the one you ask for. If you just put in an IP address, you won’t get any of them, because you are not telling the web server which of the many websites you are after. In these cases, it may have a “default” website defined, or just return an error.

If you are trying to work around an issue with your DNS provider, then one option you have is to modify your hosts file so that you are resolving addresses yourself, rather than have an external party do it for you.

So for example, if you edit:

You can enter:
You can enter:
This way, if you type superuser.com into your browser, it will look in the hosts file, and resolve the IP address, but then still pass through the name of the website to the server it connects to.
This way, if you type superuser.com into your browser, it will look in the hosts file, and resolve the IP address, but then still pass through the name of the website to the server it connects to.

Lesca से जवाब का पालन किया:

To get the IP address of a website, the best way is to use the nslookup command. For example:

If you wonder why you cannot visit SuperUser directly using the IP address (198.252.206.16), it is because of the settings for the web server. The SuperUser site disallows user visits via IP address. Probably it is because the IP address is binding to other web sites (say stackoverflow.com). If you use “IP reverse lookup” tool, you can find its binding sites.
If you wonder why you cannot visit SuperUser directly using the IP address (198.252.206.16), it is because of the settings for the web server. The SuperUser site disallows user visits via IP address. Probably it is because the IP address is binding to other web sites (say stackoverflow.com). If you use “IP reverse lookup” tool, you can find its binding sites.

One more lookup proves I am right:

Image
Image

स्पष्टीकरण में जोड़ने के लिए कुछ है? टिप्पणियों में विचार व्यक्त करो। अन्य तकनीक-समझदार स्टैक एक्सचेंज उपयोगकर्ताओं से अधिक उत्तरों पढ़ना चाहते हैं? यहां पूर्ण चर्चा धागा देखें।

सिफारिश की: