DNS (using only for internal) not resolving names

Discussion in 'Installation/Configuration' started by binaryrogue, Jul 16, 2009.

  1. binaryrogue

    binaryrogue Member

    I'm trying to setup ispconfig3 as an internal DNS server resolving only server/pc names.

    I created an DNS zone called mydomain.local and created about five 5 A records.

    hostname: server1

    hostname: server2

    If I try to configure one of my PC desktop on the network and set the primary DNS server to the ispconfig3 box, I can't resolve/ping by name:

    [[email protected]]# ping server1
    ping: unknown host server1

    Am I missing something?
    Last edited: Jul 16, 2009
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to use:

    ping server1.mydomain.local and not just server1 as the zone is mydomain.local

    Please try this command on the server:

    dig @localhost server1.mydomain.local

    also make sure that your zone ends with a dot:

  3. Mark_NL

    Mark_NL Member

    [[email protected]]# ping server1

    i that only works if you put
    search mydomain.local
    in your /etc/resolv.conf
  4. binaryrogue

    binaryrogue Member

    DNS was working all this time because I could always ping by the fqdn. I wanted a way just to ping my system name. Putting in "search mydomain.local" in the resolv.conf file did the trick. thanks guys.

Share This Page