找到特定ip地址 修改ip_您如何找到網站的IP地址?

找到特定ip地址 修改ip

找到特定ip地址 修改ip

how-do-you-find-out-the-ip-address-of-a-website-00

Whether you are in it just for a bit of geeky fun, or are seriously wanting to know the answer, how do you find out the IP address for a website? Today’s SuperUser Q&A post looks at the answer, and how to know if more than one website is bound to the same IP address.

無論您是只是出于一個怪異的樂趣,還是正想知道答案,如何找到網站的IP地址? 今天的SuperUser Q&A帖子著眼于答案,以及如何知道是否有多個網站綁定到相同的IP地址。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“問答”環節由SuperUser提供,它是Stack Exchange的一個分支,該社區是由社區驅動的Q&A網站分組。

問題 (The Question)

SuperUser reader JqueryLearner wants to know how to find out what the IP address of a website is:

超級用戶閱讀器JqueryLearner想知道如何找出網站的IP地址是:

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.

如果我想知道網站的IP地址,那么一種方法是ping網站。 例如,如果我想知道google.com的IP地址,則可以通過命令提示符ping它。

how-do-you-find-out-the-ip-address-of-a-website-01

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.

因此74.125.236.195是Google的IP地址。 但是假設我想知道superuser.com的IP地址,并且如果使用相同的方法,那么我將獲得198.252.206.16作為IP地址。 如果我將此IP地址作為URL放置在瀏覽器中,則瀏覽器不會將我帶到superuser.com。

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

誰能告訴我如何獲取正確的IP地址?

So what does JqueryLearner need to do in order to find out the correct IP addresses for websites?

那么,JqueryLearner需要做什么才能為網站找到正確的IP地址?

答案 (The Answer)

SuperUser contributors Paul and lesca have the answer for us. First up, Paul:

超級用戶貢獻者Paul和lesca為我們提供了答案。 首先,保羅:

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

最初的假設是,可以直接通過其IP地址訪問所有網站。 不是這種情況。

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:

在很多情況下(大多數情況下我都會冒險),以IP地址顯示的網站取決于您所請求的網站名稱。 例如,如果您請求superuser.com,則將首先將其解析為IP地址,然后再請求特定網頁的IP地址。 看起來像這樣:

how-do-you-find-out-the-ip-address-of-a-website-02

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

第一部分說“獲取網站的首頁”,第二部分說“針對網站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.

這就是為什么單個Web服務器可以使用單個IP地址托管多個網站的原因。 對于Stack Exchange網站,它們中的任何一個或全部都可以位于它們的每臺服務器上,您將得到自己想要的一個。 如果僅輸入IP地址,則不會獲得任何IP地址,因為您沒有告訴Web服務器要訪問的網站是哪個。 在這些情況下,它可能定義了“默認”網站,或者僅返回錯誤。

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.

如果您想解決DNS提供商的問題,那么您必須采取的一種方法是修改主機文件,以便您自己解析地址,而不是由外部方為您解決。

So for example, if you edit:

因此,例如,如果您編輯:

how-do-you-find-out-the-ip-address-of-a-website-03

You can enter:

您可以輸入:

how-do-you-find-out-the-ip-address-of-a-website-04

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.

這樣,如果您在瀏覽器中鍵入superuser.com,它將在hosts文件中查找并解析IP地址,但是仍然將網站名稱傳遞給它所連接的服務器。

Followed by the answer from lesca:

隨后是lesca的回答:

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

要獲取網站的IP地址,最好的方法是使用nslookup命令。 例如:

how-do-you-find-out-the-ip-address-of-a-website-05

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.

如果您想知道為什么無法使用IP地址(198.252.206.16)直接訪問SuperUser,那是因為Web服務器的設置。 SuperUser網站不允許用戶通過IP地址訪問。 可能是因為IP地址綁定到其他網站(例如stackoverflow.com)。 如果使用“ IP反向查找”工具,則可以找到其綁定站點。

One more lookup proves I am right:

再次查找證明我是對的:

how-do-you-find-out-the-ip-address-of-a-website-06


Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么補充說明嗎? 在評論中聽起來不錯。 是否想從其他精通Stack Exchange的用戶那里獲得更多答案? 在此處查看完整的討論線程。

翻譯自: https://www.howtogeek.com/182468/how-do-you-find-out-the-ip-address-for-a-website/

找到特定ip地址 修改ip

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/279530.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/279530.shtml
英文地址,請注明出處:http://en.pswp.cn/news/279530.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Rational Rose 2003 下載、破解及安裝方法(圖文)

方法一: 1、安裝Rational Rose2003時,在需選擇安裝項的時候,只選擇Rational Rose EnterPrise Edition即可,不需選擇其他項,之后選擇“DeskTop Installation from CD Image“,一路下一步。出現Mem_pointer_B…

數據結構:莫隊

莫隊算法是用來處理一類無修改的離線區間詢問問題 莫隊的精髓就在于,離線得到了一堆需要處理的區間后,合理的安排這些區間計算的次序以得到一個較優的復雜度 代表題目是BZOJ2038這道題 進行區間詢問[l,r],輸出該區間內隨機抽兩次抽到相同顏色…

【學習筆記】第三章 python3核心技術與實踐--Jupyter Notebook

可能你已經知道,Python 在 14 年后的“崛起”,得益于機器學習和數學統計應用的興起。那為什么 Python 如此適合數學統計和機器學習呢?作為“老司機”的我可以肯定地告訴你,Jupyter Notebook (https://jupyter.org/&…

二進制安位處理_處理器與安??全性之間的聯系是什么?

二進制安位處理Newer processors are able to contribute to the security of your system, but what exactly do they do to help? Today’s Super User Q&A post looks at the link between processors and system security. 較新的處理器能夠為您的系統安全做出貢獻&am…

李開復現身說法成功的十個啟發

http://blog.sina.com.cn/kaifulee自信不失謙虛,謙虛不失自信天賦就是興趣 興趣就是天賦思考比傳道重要 觀點比解惑重要我不同意你 但我支持你挫折不是懲罰 而是學習的機會創新不重要 有用的創新才重要完美的工作 成長興趣 影響力用勇氣改變可以改變的事情做最好的領…

關于width: 100%的一些看法

一.position對width 設置為百分比的影響<html><head><style type"text/css">img {width: 50%}body {margin: 8px;}</style> </head><body><div style" min-height: 10px; background: red; "><div><im…

Haproxy+多臺MySQL從服務器(Slave) 實現負載均衡

本系統采用MySQL一主多從模式設計&#xff0c;即1臺 MySQL“主”服務器(Master)多臺“從”服務器(Slave)&#xff0c;“從”服務器之間通過Haproxy進行負載均衡&#xff0c;對外只提供一個訪問IP&#xff0c;當程序需要訪問多臺"從"服務器時&#xff0c;只需要訪問Ha…

愛普生第三方相機_值得購買第三方相機鏡頭嗎?

愛普生第三方相機When people buy a Canon or Nikon camera, they often assume that they can only buy Canon or Nikon lenses. But that isn’t true. While Nikon lenses won’t work on your Canon camera, there are third-party lens manufacturers—such as Sigma, Tam…

[BZOJ4182]Shopping

description 權限題。 樹上\(n\)個節點每個節點都有一種物品&#xff0c;每種物品有其價值&#xff0c;價格&#xff0c;數量&#xff0c;只能買一個連通塊中的物品&#xff0c;求\(m\)元能買到物品價值的最大值。 data range \[ n\le 500,m\le 4000,T\le 5,c_i\le m\] solutio…

如何用 Flutter 實現混合開發?閑魚公開源代碼實例

2019獨角獸企業重金招聘Python工程師標準>>> 具有一定規模的 App 通常有一套成熟通用的基礎庫&#xff0c;尤其是阿里系 App&#xff0c;一般需要依賴很多體系內的基礎庫。那么使用 Flutter 重新從頭開發 App 的成本和風險都較高。所以在 Native App 進行漸進式遷移…

Silverlight之工具箱使用1

我們在開發Silverlight項目時必定需要使用VS自帶的一些控件&#xff0c;但是這些有限的控件有時候難以滿足開發時的需求&#xff0c;因此MS給我們大家提供另外一套工具&#xff0c;來緩解Silverlight開發包的不足。此工具箱免費下載地址是&#xff1a;http://silverlight.codep…

apple tv設置_如何設置Apple HomePod

apple tv設置Apple’s HomePod smart speaker is finally here. If you bought one and are eager to get going, here’s how to set it up. 蘋果的HomePod智能揚聲器終于來了。 如果您購買了一個并且渴望上手&#xff0c;請按照以下步驟進行設置。 First off, before you eve…

leetcode 128最長連續序列

方法一&#xff1a;使用快排&#xff1a; //排序法&#xff0c;時間O(nlogn)&#xff0c;使用STL&#xff0c;只是驗證一下思想&#xff0c;非正解&#xff1b; class Solution { public:int longestConsecutive(vector<int>& nums) {sort(nums.begin(),nums.end());…

8月19學習練習[兩三個TableView并排顯示]

要求&#xff1a;在一個view中顯示兩個tableView&#xff0c;要求左右顯示的內容以及行數不一樣&#xff0c;且左邊每行顯示兩張圖片&#xff08;分別3個一輪回&#xff0c;2個一輪回&#xff09;并且顯示中國的城市名&#xff0c;右邊顯示水果名。點擊時分別顯示城市名或水果名…

word多級列表創建目錄_如何在Microsoft Word中創建和使用多級列表

word多級列表創建目錄Microsoft Word lets you easily create and format multilevel lists in your documents. You can choose from a variety of formatting options, including bulleted, numbered, or alphabetized lists. Let’s take a look. Microsoft Word使您可以輕松…

如何將多個Android Wear手表與單個手機配對

When it comes to “regular” wristwatches, a lot of people have different watches for different activities. It makes sense—a sporty watch for the gym, a nicer watch for the office, and a casual watch for everything else. If you want to live this life with…

Android系統的智能指針(輕量級指針、強指針和弱指針)的實現原理分析(3)...

提供引用計數器的類RefBase我們就暫時介紹到這里&#xff0c;后面我們再結合智能指針類一起分析&#xff0c;現在先來看看強指針類和弱指針類的定義。強指針類的定義我們在前面介紹輕量級指針的時候已經見到了&#xff0c;就是sp類了&#xff0c;這里就不再把它的代碼列出來了。…

ref:下一個項目為什么要用 SLF4J

ref:http://blog.mayongfa.cn/267.html 阿里巴巴 Java 開發手冊 前幾天阿里巴巴在云棲社區首次公開阿里官方Java代碼規范標準&#xff0c;就是一個PDF手冊&#xff0c;有命名規范&#xff0c;讓你知道自己原來取的每一個類名、變量名都是爛名字&#xff0c;真替你家未來孩子擔心…

洛谷P5055 【模板】可持久化文藝平衡樹(FHQ Treap)

題面 傳送門 題解 日常敲板子.jpg //minamoto #include<bits/stdc.h> #define R register #define inline __inline__ __attribute__((always_inline)) #define fp(i,a,b) for(R int i(a),I(b)1;i<I;i) #define fd(i,a,b) for(R int i(a),I(b)-1;i>I;--i) #define …

計算機突然藍屏無法啟動_為什么計算機無法立即啟動?

計算機突然藍屏無法啟動With the newer, more powerful hardware and improved operating systems that we have available to use these days, why does it still take as long as it does to fully boot a computer up each time? 借助我們如今可以使用的更新&#xff0c;更…