上周,由于DDOS攻击Dyn DNS服务,我失去了一天的生产力。我可以在MacPro笔记本电脑上设置DNS服务吗?
我设想它只是缓存来自普通服务器的DNS信息。如果它们停机,它可以使用本地存储的合理的当前信息,我可以继续工作。
这可能吗?
答案 0 :(得分:1)
最好使用云托管的Linux实例并设置更可靠的东西。像BIND配置为缓存服务器。以下是对此的一些讨论:https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-a-caching-or-forwarding-dns-server-on-ubuntu-14-04
在Mac OS X客户端上执行此操作会很麻烦且不可靠。如果你确实想要走这条路,我不会只是向$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
## Installing the NodeSource Node.js v4.x LTS Argon repo...
## Populating apt-get cache...
+ apt-get update
Ign http://archive.canonical.com precise InRelease
Ign http://extras.ubuntu.com trusty
.
.
.
Ign http://jp.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://jp.archive.ubuntu.com trusty/universe Translation-en_US
W: Failed to fetch http://dl.google.com/linux/webdesigner/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 173 not upgraded.
$ node --version
v0.10.25
添加一些常见的 - 这很容易做到,但根本不可扩展。
OS X Server具有运行DNS缓存服务器的一些功能,但我怀疑您没有运行它。