访问任何dns都超时

We all have things on our home network we want to access from the outside: music collections, game servers, file stores, and more. Dynamic DNS makes it easy to give your home network a memorable and easy to use address.

我们都希望从外部访问家庭网络中的所有内容:音乐收藏,游戏服务器,文件存储等。 动态DNS可以轻松为您的家庭网络提供一个令人难忘且易于使用的地址。

什么是动态DNS,我为什么要它? (What’s Dynamic DNS And Why Would I Want It?)

Before dive into the tutorial and before we even start talking about what dynamic DNS (DDNS) is, let’s start with the basics–what DNS even is. DNS, or Domain Name System, is the magic that makes the internet user friendly, and the greatest thing since sliced bread.

在开始学习本教程之前,甚至在我们开始讨论什么是动态DNS(DDNS)之前,让我们从基础知识开始- 什么是DNS 。 DNS,即域名系统,是使互联网用户友好的魔力,也是切成薄片以来最伟大的事情。

Every internet-accessible resource–web pages, FTP sites, you name it–has an IP address that serves as the resource’s network address on the internet. These addresses are numeric, in the format 123.123.123.123, and are not particularly easy to remember. Remember the last time you went to 66.220.158.68 to check up on pictures of your niece? No? Of course you don’t, because you typed facebook.com into your web browser instead of 66.220.158.68. A DNS server resolved your human-friendly request of facebook.com into a machine-friendly address that sent you, probably in a hundredth of a second or less, to Facebook.

每个Internet可访问的资源(网页,FTP站点,您都为其命名)都有一个IP地址,该IP地址用作Internet上资源的网络地址。 这些地址是数字,格式为123.123.123.123,并不是特别容易记住。 还记得上次您去66.220.158.68检查侄女的照片吗? 没有? 当然不会,因为您在网络浏览器中键入了facebook.com,而不是66.220.158.68。 DNS服务器将您对facebook.com的友好请求转换为机器友好的地址,该地址可能会在百分之一秒或更短的时间内将您发送到Facebook。

Wouldn’t it be great if you could set up the same trick for your home network? This is where Dynamic DNS (DDNS) comes into play. It’s easy to for big companies to set up domain names like Facebook.com because the address of their web server is static (once they have the IP address it doesn’t change). Your home IP address is different though. People with residential connections get a dynamically assigned IP address. Your ISP has a big pool of addresses and they share them with everyone on an as-needed-basis.

如果您可以为家庭网络设置相同的技巧,那不是很好吗? 这就是动态DNS(DDNS)发挥作用的地方。 对于大公司而言,设置诸如Facebook.com之类的域名很容易,因为其Web服务器的地址是静态的(一旦它们的IP地址不变)。 但是,您的家庭IP地址是不同的。 具有住宅连接的人将获得动态分配的IP地址。 您的ISP有大量地址,它们会根据需要与每个人共享。

This makes it pretty difficult to pull the same trick that is so easy for the likes of Coca-Cola because the address you have today isn’t the address you might have next week. Thankfully DDNS providers make it dead simple to assign a memorable name to your home IP address because they update automatically as your IP address changes over time.

这使得很难获得像可口可乐这样的简单技巧,因为今天的地址不是下周的地址。 值得庆幸的是,DDNS提供程序使为您的家庭IP地址分配一个难忘的名称变得非常简单,因为随着IP地址的变化,它们会自动更新。

DDNS gives your Minecraft server a memorable address.
DDNS为您的Minecraft服务器提供了一个难忘的地址。

Once you set up DDNS when you share your music collection with friends or invited them to play on your sweet homemade Minecraft server, you can just point them to an easy-to-remember name (instead of looking up your home IP address every time you share a connect with them). Anytime you want to connect to your home computer from afar, you just type in “mypersonaladdress.dynu.net” (or something of the sort) and you’re there.

与朋友共享音乐收藏集或邀请他们在甜美的自制Minecraft服务器上播放时,一旦设置了DDNS,您就可以将它们指向一个易于记忆的名称(而不是每次您都查找家庭IP地址)与他们分享联系)。 每当您想远距离连接到家用计算机时,只要键入“ mypersonaladdress.dynu.net”(或类似的名称)就可以了。

你需要什么 (What You Need)

Setting up DDNS for your home network is really simple, free, and once setup should require next to no maintenance over time. Let’s take a look at what you need and the two different methods you can use to keep your DDNS address up to date.

为您的家庭网络设置DDNS确实非常简单,免费,并且一旦设置,随着时间的推移几乎不需要维护。 让我们看看您需要什么以及可以使用两种不同的方法来使DDNS地址保持最新。

DDNS主机 (A DDNS Host)

First and foremost, you need a DDNS host. Historically the go-to solution nearly everyone used was DynDNS. However back in 2014 they did away with their free plan (which was a perfect fit for the vast majority of home users), and went paid-only. Thankfully, more than a few providers have popped up to fill that free-for-the-little-guy DDNS hosting niche.

首先,您需要一个DDNS主机。 从历史上看,几乎每个人都使用的首选解决方案是DynDNS 。 但是早在2014年,他们就取消了免费计划(该计划非常适合绝大多数家庭用户),并且只接受了付费。 值得庆幸的是,已经有许多供应商弹出来填补这个免费的DDNS托管利基市场。

If you’re looking for a great free DDNS provider you don’t have to look very far. You can score top-rate service for free at No-IP, Dynu Systems, and Zonomi DNS Hosting–to name just a few of the excellent options out there.

如果您正在寻找出色的免费DDNS提供商,则不必走太远。 您可以在No-IP , Dynu Systems和Zonomi DNS Hosting上免费获得一流的服务, 仅举几例出色的选择。

Although every DDNS provider, free and paid, will provide the most basic functionality–resolving some address like yourpersonaladdress.dynu.net to your home IP address–there are a few features power users might want to pay attention to when comparing different DDNS hosts. Some people people may want to use their own domain instead of DDNS-branded sub (e.g. you want yourpersonaladdress.com to resolve to your home IP instead of yourpersonaladdress.no-ip.net). There are also other features like multiple sub-domains so you can set up multiple addresses like music.yourpersonaladdress.com, minecraft.yourpersonaladdress.com, and so on.

尽管每个免费和付费的DDNS提供商都将提供最基本的功能-将诸如yourpersonaladdress.dynu.net之类的地址解析为您的家庭IP地址-在比较不同的DDNS主机时,用户可能需要注意一些功能。 某些人可能希望使用自己的域而不是DDNS品牌的子域名(例如,您希望yourpersonaladdress.com解析为您的家庭IP,而不是yourpersonaladdress.no-ip.net)。 还有其他功能,例如多个子域,因此您可以设置多个地址,例如music.yourpersonaladdress.com,minecraft.yourpersonaladdress.com等。

For the purposes of this tutorial we’ll be using Dynu Systems, both because it’s well established and offers a wide range of features for free.

出于本教程的目的,我们将使用Dynu Systems,这是因为它已经建立并且免费提供了广泛的功能。

支持DDNS的路由器 (A Router With DDNS Support)

In addition, you’ll want a router that supports DDNS services. Why is this so ideal? When your router supports DDNS services, you can simply plug in your DDNS provider information and your router will automatically update the address behind the scenes. As long as your router is on, your DDNS entry will always be up to date, which means you’ll always be able to connect.

另外,您需要支持DDNS服务的路由器。 为什么这么理想? 当路由器支持DDNS服务时,您只需插入DDNS提供商信息,路由器便会自动在后台更新地址。 只要您的路由器处于打开状态,您的DDNS条目将始终是最新的,这意味着您将始终能够进行连接。

Note: Your router may only support a few select services, so you may want to check your router’s admin page before you sign up for a service. That way, you know you’re getting an account with a DDNS provider your router supports.

注意:您的路由器可能仅支持部分精选服务,因此您可能需要在注册服务之前检查路由器的管理页面。 这样,您就知道拥有路由器支持的DDNS提供程序的帐户。

本地更新客户端 (A Local Update Client)

If your router doesn’t support DDNS services, you will need a local client to run on a frequently used computer somewhere on your home network. This lightweight little application will check what your IP address is and then phone home to the DDNS provider to update your DDNS record. It’s less ideal than a router-based solution–if the computer isn’t on when your IP address changes, then the record doesn’t get updated–but it’s certainly better than manually editing your DDNS entry.

如果您的路由器不支持DDNS服务,则需要一个本地客户端才能在家庭网络中某处经常使用的计算机上运行。 这个轻巧的小应用程序将检查您的IP地址是什么,然后打电话给DDNS提供商以更新您的DDNS记录。 它比基于路由器的解决方案更不理想-如果您的IP地址更改时计算机没有打开,则记录不会更新-但肯定比手动编辑DDNS条目要好。

如何配置动态DNS (How to Configure Dynamic DNS)

Let’s take a look at how to set up a simple DDNS account with Dynu, point it at our home network, and set up automatic DDNS entry updating. Although we’re using the Dynu web portal and settings, the general setup process is nearly identical across providers and can be easily adapted (consult the support files for your provider if you need additional help).

让我们看一下如何使用Dynu设置简单的DDNS帐户,将其指向我们的家庭网络,以及设置自动DDNS条目更新。 尽管我们使用的是Dynu Web门户和设置,但是各个提供商之间的常规设置过程几乎相同,并且可以轻松调整(如果需要其他帮助,请咨询提供商的支持文件)。

第一步:创建和配置帐户 (Step One: Create and Configure an Account)

Head over to Dynu’s sign up page here and sign up for an account. Confirm the registration in your email. Once you’ve confirmed the setup you can login to your Dynu account and visit the Control Panel, as seen below. Click on “DDNS Services”.

在此处转到Dynu的注册页面并注册一个帐户。 在您的电子邮件中确认注册。 确认设置后,您可以登录到Dynu帐户并访问“控制面板” ,如下所示。 单击“ DDNS服务”。

Click on the blue “+ Add” button on the far right.

单击最右边的蓝色“ +添加”按钮。

Enter the hostname and domain name you wish to use, here labeled “Host” and “Top Level”. Click “+ Add” to add the entry to your account. If you wish to use your own domain name you can also enter it here and follow the instructions for linking your domain name to the DDNS service.

输入您要使用的主机名和域名,在此处分别标记为“主机”和“顶级”。 单击“ +添加”将条目添加到您的帐户。 如果您希望使用自己的域名,也可以在此处输入它,并按照说明将域名链接到DDNS服务。

Confirm that the IP address in the DDNS entry is correct (if you’re working from your home network it should be, if not, you’ll need to edit it here). Click save once you’ve confirmed everything looks good.

确认DDNS条目中的IP地址正确(如果您是在家庭网络中工作,则应为正确的地址,如果不是,则需要在此处进行编辑)。 确认一切正常后,单击“保存”。

For basic no-frills DDNS redirection, that’s all there is to it. Let’s look at the next important step: setting up your home network to automatically update the servers for you.

对于基本的简单DDNS重定向,仅此而已。 让我们看下一个重要步骤:设置家庭网络以自动为您更新服务器。

第二步:配置路由器 (Step Two: Configure Your Router)

Creating the actual DDNS entry is only half the battle when it comes to time saving and convenience. The other half is automating the whole process. Let’s look at how to automate DDNS updates at the router and the desktop level.

在节省时间和便利性方面,创建实际的DDNS条目只是成功的一半。 另一半正在使整个过程自动化。 让我们看一下如何在路由器和桌面级别自动执行DDNS更新。

We’ll be using a D-Link router running the fantastic third-party DD-WRT firmware to demonstrate, but the settings are pretty standardized across all routers that support DDNS–consult the documentation for your router or firmware to find out where the DDNS settings are, or just poke around the settings until you find them.

我们将使用运行出色的第三方DD-WRT固件的D-Link路由器进行演示,但是在支持DDNS的所有路由器中,这些设置已经相当标准化了–请查阅路由器或固件的文档以了解DDNS的位置设置,或者只是在设置周围戳一下,直到找到它们。

On DD-WRT you’ll find it under Setup > DDNS. By default, it is disabled. Open the drop down menu, as seen below, and select “Custom”. As you can see DD-WRT (and many other routers) come with pre-configured entries for various DDNS services but the custom entry offers the most flexibility (if you have it).

在DD-WRT上,您可以在设置> DDNS下找到它。 默认情况下,它是禁用的。 如下所示,打开下拉菜单,然后选择“自定义”。 如您所见,DD-WRT(和许多其他路由器)随附了用于各种DDNS服务的预配置条目,但是自定义条目提供了最大的灵活性(如果有的话)。

After selecting “Custom” you will need to enter the following information: the DYNDNS server (api.dynu.com for those using Dynu), your username and password (the same ones you log into the Dynu service with), and the hostname you selected in the previous section of the tutorial (e.g. yourpersonaladdress.dynu.com). If you aren’t sure what your DYNDNS server is, consult the documentation for the service you signed up for.

选择“自定义”后,您将需要输入以下信息:DYNDNS服务器(使用Dynu的用户为api.dynu.com),您的用户名和密码(与您登录Dynu服务所使用的用户名和密码相同)以及您的主机名在教程的上一部分中选择(例如yourpersonaladdress.dynu.com)。 如果不确定DYNDNS服务器是什么,请查阅您注册的服务的文档。

Leave the rest of the settings as they are. Click “Save”. Your router will now update the DDNS server every time your IP addresss changes (and, even if it hasn’t changed, it will still connect to the DDNS server every 10 days, per the “Force Update Interval” to check in).

其余设置保持不变。 点击“保存”。 现在,您的路由器将在您的IP地址每次更改时更新DDNS服务器(并且即使它没有更改,它仍然会每10天根据“强制更新间隔”进行检查以连接到DDNS服务器)。

备用步骤二:配置基于PC的更新程序 (Alternate Step Two: Configure a PC-Based Updater)

Router-based updating is far superior to using a PC-based updater, but if you don’t have a DDNS-friendly router, a PC-based updater is the only way to automate the update process. To use a PC-based updater, first swing by the downloads section in the control panel of your DDNS provider. You can find the downloads section for Dynu Systems here. Grab the appropriate application for your system (in our case, Windows) and download it.

基于路由器的更新远优于使用基于PC的更新器,但是,如果您没有DDNS友好的路由器,则基于PC的更新器是自动执行更新过程的唯一方法。 要使用基于PC的更新程序,请先按DDNS提供程序的控制面板中的“下载”部分。 您可以在此处找到Dynu Systems的下载部分 。 为您的系统(在我们的情况下为Windows)中获取适当的应用程序并下载。

After installing the application, run it for the first time and input your username and password, click “Save”.

安装该应用程序后,首次运行它并输入您的用户名和密码,然后单击“保存”。

In the log window you’ll see the client connect and update your IP address. Click “Close” to send the app to the system tray and, more or less, forget about it. For a run down of the advanced settings, see this support file here.

在日志窗口中,您将看到客户端连接并更新您的IP地址。 单击“关闭”将应用程序发送到系统托盘,或多或少将其遗忘。 有关高级设置的详细信息,请参阅此处的支持文件 。

配置端口转发和其他注意事项 (Configuring Port Forwarding and Other Considerations)

What we have achieved, at this point in the tutorial, is to direct a human-friendly domain name to your home network’s IP address. It’s critical to understand that all this accomplishes is replacing your hard to remember (and frequently changing)  number-based IP address with an easy to use word-based domain.

在本教程的这一点上,我们已经实现了将人类友好的域名定向到您的家庭网络的IP地址。 至关重要的是要了解,这一切都是用易于使用的基于单词的域替换您难以记住(且经常更改)的基于数字的IP地址。

It does not alter your home network settings in anyway so whatever worked (or didn’t work) before you set up the DDNS system will keep working (or not working) with the new DDNS address. If you used to connect to your home music server while you were at work by visiting XXX.XXX.XXX.XXX:5900 (your home IP address, port 5900) you can now connect to it at yournewDDNSaddress.com:5900.

它无论如何都不会改变您的家庭网络设置,因此在设置DDNS系统之前任何起作用的(或不起作用的)都将继续使用新的DDNS地址(或不起作用)。 如果您在工作时曾经通过访问XXX.XXX.XXX.XXX:5900(您的家庭IP地址,端口5900)连接到家庭音乐服务器,现在可以通过yournewDDNSaddress.com:5900连接到它。

On the other hand if you couldn’t connect to that locally hosted music server before setting up the DDNS service, then you still can’t–because that service was never configured to have an internet-facing address. You’ll need to dig into your router settings and set up port forwarding for all the services you want to access from outside your home network.

另一方面,如果您在设置DDNS服务之前无法连接到该本地托管的音乐服务器,则您仍然不能这样做,因为该服务从未配置为具有面向互联网的地址。 您需要深入研究路由器设置,并为要从家庭网络外部访问的所有服务设置端口转发 。

The same goes for any services hosted by the router itself. If you want to access the router’s built-in network attached storage from outside your home network via the DDNS address, for example, you’ll need to check the router’s settings and ensure that router-based service is accessible from outside the network first.

路由器本身托管的任何服务也是如此。 例如,如果要通过DDNS地址从家庭网络外部访问路由器的内置网络连接存储,则需要检查路由器的设置,并确保首先从网络外部访问基于路由器的服务。



All told, it’s a very minor hassle to set up DDNS but a really big reward. From now on instead of inviting your friends to play on your Minecraft server by saying “Wait, hold on, I gotta check what my IP address is, just a minute…” you can simply say “I’ll see you online” because the special hostname you reserved is still pointing right back to your home address.

综上所述,设置DDNS的麻烦很小,但回报却非常可观。 从现在开始,您无需说“等一下,等一下,我要检查我的IP地址是什么……”来邀请您的朋友在Minecraft服务器上玩,因为您可以说“我会在网上见到您”您保留的特殊主机名仍指向您的家庭住址。

翻译自: https://www.howtogeek.com/66438/how-to-easily-access-your-home-network-from-anywhere-with-ddns/

访问任何dns都超时

访问任何dns都超时_如何使用动态DNS从任何地方轻松访问您的家庭网络相关推荐

  1. java程序配置dns后超时_处理apache HTTP客户端保持活动连接断开,超时和DNS更改

    根据规范:http://tools.ietf.org/id/draft-thomson-hybi-http-timeout-01.html#rfc.section.5,我们可以在请求中包含Keep-A ...

  2. nslookup命令dns请求超时_网络工程师之nslookup命令

    如果这篇文章对您有帮助,请关注并点赞,感谢您的支持,如果还有其他问题,请私信给我 Nslooup(name server lookup)是一个用于查询internet域名信息或诊断DNS服务器问题的工 ...

  3. win 10 pip 安装都超时_清华Anaconda 镜像恢复及一键安装气象常用的Python库

    欢迎订阅微信公众号:『气象学家』 清华Anaconda 镜像恢复使用了! 阅读建议 Python的版本和环境控制建议使用conda来管理,可以预先安装Anaconda"全家桶"或者 ...

  4. java dns 解析域名解析_使用Java实现DNS域名解析的简单示例

    普通的域名解析方法: import java.net.*; public class Kkkk { public static void main(String args[]) throws Exce ...

  5. ADSL宽带路由器实现外网访问公司内网服务器_ 路由交换

    A公司通过ADSL访问互联网,并且内网通过ADSL宽带路由器共享一条ADSL线缆访问互联网. 随着A公司业务的发展,公司需要搭建一台Web服务器供外网访问.Web服务器主要包括一个公司网站,并且负责日 ...

  6. DNS欺骗攻击——实现受害者访问任何网站都转向到攻击者指定的网站 (仅供学习参考)

    DNS欺骗攻击--实现受害者访问任何网站都转向到攻击者指定的网站 (仅供学习参考) 情景要求: 同一局域网内 受害者IP:192.168.26.130 攻击者系统Kali Linux,IP地址:192 ...

  7. 访问一个网站都经过哪些步骤_轻松访问电子商务网站的10个简单步骤

    访问一个网站都经过哪些步骤 As a frequent visitor to forums in which people ask for critiques of their new ecommer ...

  8. oracle ping 超时_急啊! tnsping oracle服务器时断时续,平均隔5-8秒超时一次(网络正常 ping一直都通)...

    红帽5.4+oracle10G,我在其他服务器上tnsping这台oracle服务器里能通,但是隔一会(5-8秒左右)就提示一次操作超时,ping一直能正常.然后在这台红帽服务器上tnsping另外一 ...

  9. 谷歌浏览器连接超时_系统超时重试机制(OpenResty/Nginx)

    在实际开发当中,很多故障的产生都是因为没有意识到超时设置的重要性而造成的.如果不设置超时机制,就有可能导致连锁反应,最终系统雪崩.有些中间件天然集成了超时重试的机制,但是在设计当中需要注意的是:读服务 ...

  10. dns域名解析过程_域名解析怎样工作,Windows server 2008 R2如何安装DNS服务器

    首先简单介绍DNS,DNS(Domain Name System)是"域名系统"的英文缩写,用来为TCP/IP网络提供将主机名或域名转换为IP地址的服务.举例来说,如果要访问域名m ...

最新文章

  1. Socket编程小结(续)
  2. Redis5.0:这些场景下使用,高效还降低成本!
  3. python 笔记:读取mat文件
  4. 远程服务器部署spring boot 项目(centos7为例)
  5. 海信集团:通过数据来驱动企业的管理,让数据真正成为生产力
  6. 新微擎 v1.7.9 图文回复 标题emoji
  7. 做机器学习的是些什么样的人?Kaggle做了一份居委会式的调查
  8. 文都计算机统考讲义,考研计算机文都基础班讲义.doc
  9. 【Luogu】P1972HH的项链(链表+树状数组)
  10. 计算机系统结构期末张晨曦,计算机系统结构(张晨曦)试题
  11. iPhone的MobileTerminal使用经验
  12. 科技论文阅读-论文写作-citavi-Latex-word-Grammarly-1checker 小笔记
  13. 遵循学术规范,避免学术不端
  14. 成像系统光照度(相机成像辐射传输)
  15. HDU 6468 zyb的面试(找规律?)
  16. 常见字读音(粤语)---(3)
  17. 这场蝴蝶效应,从“丝滑”的双11开始
  18. 2022全国节能宣传周 | 志翔科技大数据:支撑电企降碳、生活节能
  19. ifconfig 发现RX dropped 数字比较大的理解
  20. 先导课程 单片机_单片机课程教案-课程教案

热门文章

  1. 字节、快手、天弘基金等 :量化/算法工程师岗位【社招|校招|实习生】
  2. IDA 逆向代码 --- _stack_chk_guard变量 之后的局部 怎么处理
  3. 如何将word文件的大小进行压缩?
  4. android拼图小游戏代码,Android实现拼图小游戏
  5. 微信跳跳代码php执行,微信跳一跳,能够直接运行的脚本
  6. pure-ftpd安装与使用
  7. Python爬虫 requests使用post请求分析并登录Chinaunix
  8. 移动磁盘提示文件名目录名或卷标语法不正确怎么修复?
  9. Excel文件加密的两种方式
  10. php下载列表如何实现,phpcms v9 列表页直接下载功能代码实现