绑定ip到子域

发布于 2024-07-29 21:10:08 字数 229 浏览 2 评论 0原文

我有一个 Linux 客户端,它使用 pppoe 连接到互联网, 每次这个客户上线时我都想把他的ipadress绑定到一个子域。
由于其 TTL,dyndns 不是一个选项。 看来我必须在根服务器上设置自己的名称服务器才能完成此任务,因为我无法创建在具有提供程序名称服务器的客户端上运行 nsupdate 所需的密钥...我是否正确?

如果是这样,是否有一个很好的方法来为此特定任务设置绑定服务器?

i have a linux client which uses pppoe to connect to the internet and
everytime this client comes online I wanna bind his ipadress to a subdomain.
dyndns is not an option due to their TTL.
It looks like i have to setup my own nameserver on my root server to accomplish this task because I cannot create the keys needed to run an nsupdate on the client with a provider nameserver... am I correct?

If so is there a good Howto for setting up a bind server for this specific task?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

穿透光 2024-08-05 21:10:08

一种可能性是将他们的计算机设置为向 DynDNS 等机构注册。 他们拥有您需要的所有软件,可以在他们上线/离线时自动通知他们。 这将为他们提供一个类似于 whatever.homelinux.org 的域名(这并不重要)。 然后,您将静态CNAME条目放入您的DNS中以指向您的好域名,例如southern.company.com指向whatever.homelinux.org

当它们上线时,域将开始解析并在它们离线时停止,因为 DynDNS 的 TTL 较低,因此。 您可以在区域文件中使用较大的 TTL,因为 CNAME 不会更改。

One posibility is to set their machine to register with somebody like DynDNS. They have all the software you need to automatically notify them when they come online/go offline. This will give them a domain name of something like whatever.homelinux.org (it does not really matter). You then put static CNAME entries in your DNS to point your nice domain names eg southern.company.com to point to whatever.homelinux.org.

When they come online the domain will start to resolve and stop when they go off line since DynDNS have low TTL for this very reason. You can use large TTL in your zone file since the CNAMEs will not change.

七堇年 2024-08-05 21:10:08

那么您不需要在 DNS 服务器上为此 IP 创建 A 记录吗?

如果您的域名是“google.com”并且您希望主机名为“server1”。 为“server1”创建 A 记录并将其指向您的计算机 IP。

除非我误解了您寻求帮助的内容。

Well dont you just need to create an A-Record for this IP on your DNS Server?

If your domain is 'google.com' and you wanted your host to be called 'server1'. Create an A-Record for 'server1' and point it to your machines IP.

Unless I am misunderstanding what you are asking for help with.

因为看清所以看轻 2024-08-05 21:10:08

我从未维护过 pppoe,但如果它使用 dhcp 向客户端提供 IP 地址,您可以从 dhcp 到 dns 进行更新。

有关如何在 debian 上执行此操作的说明,请参见:http://www.debian-administration.org/ Article/Configuring_Dynamic_DNS__DHCP_on_Debian_Stable

不要以为您也可以将它们适应其他发行版。 您至少可以在 fedora 和 ubuntu 上找到相同的软件,区别仅在于如何安装所需软件。

I havent ever maintained pppoe but if it uses dhcp to provide the ip address to the client, you could do updates from the dhcp to the dns.

Instructions on how to do this for debian here: http://www.debian-administration.org/article/Configuring_Dynamic_DNS__DHCP_on_Debian_Stable

Do not thou that you can adapt these to other distros too. You can find the same software atleast on fedora and ubuntu, difference is only how you install the required software.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文