I've been scratching my head with this for a while and don't seem to be getting any closer to a solution at the system level. I have asked the same question at SuperUser but so far the answers didn't get me anywhere.
Brief note: A while back I set up an OpenBSD based server to run my websites/dashboard off. The server sits within my company's local network with no external access -- all the connections are blocked by a firewall. Initially -- I had no problems at all; I installed the OS, set up the domain name and everybody could access the server by the name. Recently, I bought a small gigabit switch (D-Link, 5-port) and now I cannot even ping the machine by the name (pinging IP works fine).
I've already tried editing the /etc/hosts file by adding the appropriate information (thought the IP has changed). I also edited the /etc/resolv.conf file. Still, these changes gave me nothing in return. In addition, I followed most of the suggestions from SuperUser.
The dig command (when I select one of the internal DNSs) returns only the AUTHORITY section but no ANSWER section as if my server name was deleted.
The only solution that I found to be working (although it would be really tedious to implement) is to ask all my users (over 100, not all of them can execute a command through cmd) to execute a command that adds to the /etc/hosts file on each local machine (within Windows/System32/drivers folder).
Any help would be truly appreciated as I'm losing it.
Thanks, -Tom
Zone file /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; [...;] }; //};