我一直在摸索着这一段时间,似乎没有在系统层面上接近任何解决scheme。 我在超级用户问过同样的问题,但到目前为止,答案并没有让我知道。
简要说明:后来,我build立了一个基于OpenBSD的服务器来closures我的网站/仪表板。 服务器位于我公司的本地networking中,无需外部访问 – 所有连接都被防火墙阻止。 最初 – 我根本没有问题; 我安装了操作系统,设置了域名,每个人都可以通过名字访问服务器。 最近,我买了一个小千兆交换机(D-Link,5端口),现在我甚至不能ping通机器的名字(pinging IP工作正常)。
我已经尝试通过添加适当的信息(认为IP已经改变)来编辑/ etc / hosts文件。 我还编辑了/etc/resolv.conf文件。 尽pipe如此,这些变化并没有给我任何回报。 另外,我遵循了SuperUser的大部分build议。
dig命令(当我select一个内部DNS时)只返回AUTHORITY部分,但是没有ANSWER部分,就好像我的服务器名字被删除一样。
我发现唯一可行的解决scheme(尽pipe实现起来会很繁琐)是要求我的所有用户(超过100个,不是所有用户都可以通过cmd执行命令)执行一个添加到/ etc的命令/ hosts文件在每台本地计算机上(在Windows / System32 / drivers文件夹中)。
任何帮助将被真正的赞赏,因为我失去了它。
谢谢,汤姆
区域文件/var/named/etc/named.conf
// $OpenBSD: named-simple.conf,v 1.10 2009/11/02 21:12:56 jakob Exp $ // // Example file for a simple named configuration, processing both // recursive and authoritative queries using one cache. // Update this list to include only the networks for which you want // to execute recursive queries. The default setting allows all hosts // on any IPv4 networks for which the system has an interface, and // the IPv6 localhost address. // acl clients { localnets; ::1; }; options { version ""; // remove this to allow version queries listen-on { any; }; listen-on-v6 { any; }; empty-zones-enable yes; allow-recursion { clients; }; }; logging { category lame-servers { null; }; }; // Standard zones // zone "." { type hint; file "etc/root.hint"; }; zone "localhost" { type master; file "standard/localhost"; allow-transfer { localhost; }; }; zone "127.in-addr.arpa" { type master; file "standard/loopback"; allow-transfer { localhost; }; }; zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" { type master; file "standard/loopback6.arpa"; allow-transfer { localhost; }; }; // Master zones // //zone "myzone.net" { // type master; // file "master/myzone.net"; //}; // Slave zones // //zone "otherzone.net" { // type slave; // file "slave/otherzone.net"; // masters { 192.0.2.1; [...;] }; //};
// Master zones // //zone "myzone.net" { // type master; // file "master/myzone.net"; //}; // Slave zones // //zone "otherzone.net" { // type slave; // file "slave/otherzone.net"; // masters { 192.0.2.1; [...;] }; //};
// Master zones // zone "myzone.net" { type master; file "master/myzone.net"; }; // Slave zones // zone "otherzone.net" { type slave; file "slave/otherzone.net"; masters { 192.0.2.1; [...;] }; };