找到特定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.mzph.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…

【学习笔记】第三章 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…

Haproxy+多台MySQL从服务器(Slave) 实现负载均衡

本系统采用MySQL一主多从模式设计,即1台 MySQL“主”服务器(Master)多台“从”服务器(Slave),“从”服务器之间通过Haproxy进行负载均衡,对外只提供一个访问IP,当程序需要访问多台"从"服务器时,只需要访问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…

如何用 Flutter 实现混合开发?闲鱼公开源代码实例

2019独角兽企业重金招聘Python工程师标准>>> 具有一定规模的 App 通常有一套成熟通用的基础库,尤其是阿里系 App,一般需要依赖很多体系内的基础库。那么使用 Flutter 重新从头开发 App 的成本和风险都较高。所以在 Native App 进行渐进式迁移…

Silverlight之工具箱使用1

我们在开发Silverlight项目时必定需要使用VS自带的一些控件,但是这些有限的控件有时候难以满足开发时的需求,因此MS给我们大家提供另外一套工具,来缓解Silverlight开发包的不足。此工具箱免费下载地址是: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智能扬声器终于来了。 如果您购买了一个并且渴望上手,请按照以下步骤进行设置。 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…

ref:下一个项目为什么要用 SLF4J

ref:http://blog.mayongfa.cn/267.html 阿里巴巴 Java 开发手册 前几天阿里巴巴在云栖社区首次公开阿里官方Java代码规范标准&#xff0c;就是一个PDF手册&#xff0c;有命名规范&#xff0c;让你知道自己原来取的每一个类名、变量名都是烂名字&#xff0c;真替你家未来孩子担心…

计算机突然蓝屏无法启动_为什么计算机无法立即启动?

计算机突然蓝屏无法启动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;更…

CCNA课堂练习:OSPF的介绍及配置

CCNA浅谈OSPF的配置 今天我们来谈谈路由器OSPF的配置&#xff0c;那我先来介绍一下OSPF的特点&#xff1a;1、对网络发生的变化能够快速响应2、当网络发生变化的时候发送触发式更新•3、支持VLAN 4、管理方便ospf引用了区域的概念&#xff0c;区域分两种&#xff1a;1、骨干区域…

vcenter 6.7 (vcsa)部署指南

闲言少叙&#xff0c;直达心灵。 一、部署提要1.1 vCenter Server Appliance(VCSA )6.7下载地址https://pan.baidu.com/s/1WUShsC23E2qIIBg7MPR87w 6lzb 二、安装部署VCSA分为两个阶段安装&#xff0c;下面我们开始第一阶段2.1 打开之后&#xff0c;直接点击安装按钮2.2部署设备…

如何停止Internet Explorer 11的建议站点?

Internet Explorer automatically suggests addresses and search results based on the partial address you’re typing out. If this feature irritates you, read on as we learn how to turn it off. Internet Explorer会根据您键入的部分地址自动建议地址和搜索结果。 如…

什么是SG?+SG模板

先&#xff0c;定义一下 状态Position P 先手必败 N x先手必胜 操作方法&#xff1a; 反向转移 相同状态 不同位置 的一对 相当于无 对于ICG游戏&#xff0c;我们可以将游戏中每一个可能发生的局面表示为一个点。并且若存在局面i和局面j&#xff0c;且j是i的后继局面(即局面i可…

【桌面虚拟化】之三 Persistent vs NonP

作者&#xff1a;范军 &#xff08;Frank Fan&#xff09; 新浪微博&#xff1a;frankfan7 在【桌面虚拟化】之二类型及案例中我们探讨了桌面虚拟化的两种架构&#xff0c;HostedVirtual Desktop (VDI) 和 Published Desktop/App. 本文深入分析其中VDI的两种桌面类型&#xff0…

Mybatis-Generator自动生成XML文件以及接口和实体类

整合了MySQL和Oracle配置文件生成方法 这个是整个文件夹的下载地址&#xff1a;http://www.codepeople.cn/download 主要给大家介绍一下generatorConfig.xml文件的配置&#xff0c;以及生成后的文件。 generatorConfig.xml <?xml version"1.0" encoding"UTF…