Basic DNS Setup

Discussion in 'Installation/Configuration' started by icemannz, May 25, 2010.

  1. icemannz

    icemannz New Member

    Hi all, this is probably a very easy one but after spending some time looking ?

    I have setup the latest ISPConfig on debian as per the instructions.
    I have added a DNS Zone for my domain name.

    Now for any A records I have created, they work ok except for the server name part eg: if I do a
    *** Can't find server name for address Query refused
    Server: UnKnown
    The rest of the reply will work for the

    And the 2nd part is - I cannot querry any domain outside of the zones I have created, eg I cannot do a nslookup
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Make sure that you have working external dns servers listed in the /etc/resolv.conf file for external lookups. the mydns server itself answers only requests for local domains.
    Last edited: May 26, 2010
  3. icemannz

    icemannz New Member

    Ok so would it be best then to install dnscache to run along side MyDNS ?
    The reason I want a dns cache is that I could have over 1000 customers using my servers as DNS servers and therefore it would need to be able to answer any querry for any domain.
    Do you think that dnscache would be the best way to go under these circumstances ?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    dnscache should be fine. to be able to run dnscache beside mydns, configure dnscache to listen only on and then reconfigure mydns to listen only on your external IP addresses except of
  5. icemannz

    icemannz New Member

    Hi, thanks for your replies.

    I have read in the forum that both MyDNS and Bind are supported in ISPConfig3.0.2.
    I am running 3.0.2 so I am thinking that I should remove MyDNS and install Bind, so that I will have a DNS Cache and resolver.

    If I do this will the DNS tab in ISPConfig still work so I can add names and ip's etc...

    Is there a doc somewhere that I should follow, or do I just lookup how to install Bind and go for it ?
  6. till

    till Super Moderator Staff Member ISPConfig Developer


    Download the ispconfig tar.gz, inside there is a docs folder which contains some guides that include the setup of BIND.
  7. icemannz

    icemannz New Member

    Hi, ok so I have build a new box and this time I am using Bind.
    The Bind dns querries ok to anything on the internet but if I make a new dns zone in the gui of ispconfig3 it ignores it and goes straight to the web.
    I have looked into the files and it is creating the files ok but doesn't seem to be using them.
    I created a test domain as per Till's examples in another post.
    They create ok and the file appears in the /etc/bind/pri.mydoman.tld,
    the file is referenced in /etc/named.conf.local.
    All seems ok but when I run
    dig @ mydomain.tld
    ns2:~# dig @ mydomain.tld

    ; <<>> DiG 9.5.1-P3 <<>> @ mydomain.tld
    ; (1 server found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 28003
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

    ;mydomain.tld. IN A

    . 10283 IN SOA 2010052901 1800 900 604800 86400

    ;; Query time: 1 msec
    ;; SERVER:
    ;; WHEN: Sun May 30 14:07:36 2010
    ;; MSG SIZE rcvd: 105

    and also
    nslookup mydomain.tld.
    ns2:~# nslookup mydomain.tld.

    ** server can't find mydomain.tld.: NXDOMAIN

    And here is a look for an external domian
    ns2:~# nslookup

    Non-authoritative answer:

    Any help would be appreciated, been trying now for some time.
    Last edited: May 30, 2010
  8. icemannz

    icemannz New Member

    Hi all, ignore my last message - I had a typo in the name and it is now all working.
    I have a cache dns server and a master server in one (Bind9)
    Last edited: May 31, 2010

Share This Page