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

访问任何dns都超时

访问任何dns都超时

welcomemat

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-IPDynu SystemsZonomi 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都超时

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值