Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 {

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 "" {
        type master;
        file "standard/loopback";
        allow-transfer { localhost; };

zone "" {
        type master;
        file "standard/";
        allow-transfer { localhost; };

// Master zones
//zone "" {
//      type master;
//      file "master/";

// Slave zones
//zone "" {
//      type slave;
//      file "slave/";
//      masters {; [...;] };
share|improve this question
you need to look at the dns configuration on your local name servers. It sounds like something broke with regard to your host and now local computers can't resolve the ip address from the hostname. Maybe paste a copy of your zone file into your question. – user16081-JoeT Jan 24 '14 at 0:40
I was afraid admin of my network might have 'cleaned it up'... I edited the original question by adding the zone file. – TDrabas Jan 24 '14 at 3:57
thats not a zone file but a named config file. It appears you don't have any zones enabled, so that could be the problem. – user16081-JoeT Jan 24 '14 at 18:02
Thanks. I'll try to enable the zones. Any idea why it would work before and not now, though? That one still baffles me... – TDrabas Jan 28 '14 at 23:56
I think something must have changed with your internal DNS config, I don't see how introducing a switch could cause name resolution to break. – user16081-JoeT Jan 29 '14 at 0:02

You've got your zones commented out! Uncomment them.

You need to replace:

// Master zones // //zone "" { // type master; // file "master/"; //}; // Slave zones // //zone "" { // type slave; // file "slave/"; // masters {; [...;] }; //};


// Master zones // zone "" { type master; file "master/"; }; // Slave zones // zone "" { type slave; file "slave/"; masters {; [...;] }; };

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.