nslookup 答案中的欺骗 CNAME(DNS 伪装)
有没有办法使用自定义 CNAME 答案发送自定义回复,例如 livejournal 的 nslookup 请求?
例子: livejournal 将 nslookup 请求类型 CNAME 发送到 site.com; site.com 以某种方式只回答带有“CNAME livejournal.com”的 livejournals 请求; 但其他服务器尝试使用 CNAME 类型的请求nslookup
site.com,但没有得到“CNAME livejournal.com”答案。
我需要这个,就像示例中一样。
如果可能的话,请帮助我%)
UPD:好的。上下文中还有另一个问题。 Livejournal 使用工具将博客重定向到自己的域:在 lj-blog 设置页面的表单字段中写入您的域名,然后获取域并为 livejournal.com 制作 CNAME 记录。 它为您提供从实时期刊页面到您自己的域名的直接链接,但搜索引擎不知道您的域名是您博客的主要域名。此外,来自您域的所有链接都会返回 livejournal。此外,您仍然无法动态更改页面的来源。 最简单的方法是不创建 CNAME 记录,只需将域附加到托管并创建小 .htaccess 版本并创建 index.php 文件,该文件从您的 lj-blog 获取内容并从您的域呈现。 .htaccess 中的版本使所有链接在您自己的域内工作。但是您无法通过这种方式从 lj-pages 获得直接链接:(
您能给我什么建议来进行正确的重定向,但可以在域内和源代码渲染中工作链接。只需遵循 LJ 建议以及我的替代方式 . htaccess 和index.php 以及其他东西?
Is there a way to send custom reply to, for example, livejournal's nslookup request with custom CNAME answer?
Example:
livejournal sends nslookup request type CNAME to site.com;
site.com somehow answers only to livejournals request with "CNAME livejournal.com";
but other server tries to nslookup
site.com with CNAME type of request and gets no "CNAME livejournal.com" answer.
I need this just like in example.
Please, help me if it possible at all %)
UPD: Okay. There is another question in context.
Livejournal takes tool to redirect blog to own domain: Write your domain name in form field in lj-blog settings page then take domain and make CNAME record for livejournal.com.
It gives you direct link to your own domain from livejournal pages but search engines didn't understaning that your domain name is primary for your blog. Also all links from your domain follows back to livejournal. Also you still can't change source of your pages dynamically.
Simplest way to do this is to don't make the CNAME record and simply attach domain to hosting and make little .htaccess editions and make index.php file that gets contents from your lj-blog and render from your domain. Editions in .htaccess makes all links working inside your own domain. BUT you can't get direct links from lj-pages this way :(
What advice can you give me to do right redirection but working links inside domain and source code rendering. Simply to follow LJ recommendations plus my alternative way with .htaccess and index.php and other things?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在寻找“Split-horizon DNS”。
是否支持以及如何配置它取决于您的 DNS 服务器软件的详细信息。
You are looking for "Split-horizon DNS".
Whether it is supported, and how to configure it, depends on the details of your DNS servers software.