绑定/命名named.conf意外删除/替换..恢复帮助
抱歉我的英语不好。
好吧,我不小心替换了named.conf ..
有什么方法可以再次查看配置...
named 继续运行而不重新启动,
向我显示类似配置运行的内容...
感谢所有
PS。我尝试恢复该文件,但它没有被删除。
Apologies my bad english.
Well, I accidentally replace named.conf ..
is there any way to see the configuration again ...
named continues running without restart
show me something like configurations running ....
Thanks to all
PS. i tried to recover the file but it was not erased.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除非您有某种备份,否则您将不走运。尽管您可能会从 rndc 获得一些模糊的详细信息,但您永远无法恢复实际的文件......
Unless you have a backup of some kind you're going to be out of luck. Although you might get some vague details from rndc you'll never recover the actual file...
您可以在磁盘上查找它。
我通常会在我接触的所有配置文件中添加相同的注释。就像
如果我删除 /etc/inputrc 我可以用 grep 来查找它:
您可以使用相同的技术来查找文件中您知道的内容,例如您正在服务的某些域名。
如果您不确切知道模式将在哪里匹配,则 -B 很有用。
You may grep your disk for it.
I usually add the same comment to all the configuration files i touch. Something like
If i delete /etc/inputrc i can grep for it with:
You may use the same technique looking for something you know is in the file, like some domain name you were serving.
-B is usefull if you don't know exactly where the pattern will match.