[SOLVED] DNS works for all but one (main) site on test server

Discussion in 'Installation/Configuration' started by Nap, Feb 27, 2016.

  1. Nap

    Nap Member

    I have a test server with ISPConfig etc, running on my private LAN. The server runs Bind9 and I have configured the zones for all the sites I have on the server. I have my dev computer setup to use the DNS server of my test server in addition to my ISP's DNS. All the sites work except the main one, and I don't understand why.

    The server name is host.abc.int.
    The main website is abc.int, and belongs to Client0 (which is the admin/owner)
    All the other sites (eg. amta.int) belong to a single client; Client1.

    amta.int and its subdomains work fine, but when I try to browse abc.int I get a "Server Not Found" error. Ping tells me that it can't find the host.
    Could this be due to a circular reference issue? ns1.abc.int being on abc.int?
    Any ideas on what could be causing the problem? (Or is this just due to propogation delays of DNS records?)


    The DNS record (pri file) for the main site (abc.int) is;
    $TTL  3600
    @  IN  SOA  ns1.abc.int. webmaster.abc.int. (
      2016022806  ; serial, todays date + todays serial #
      7200  ; refresh, seconds
      540  ; retry, seconds
      604800  ; expire, seconds
      86400 )  ; minimum, seconds
    abc.int. 3600 A
    mail 3600 A
    www 3600 A
    forum 300  CNAME  abc.int.
    abc.int. 3600  MX  10  mail.abc.int.
    abc.int. 3600  NS  ns2.abc.int.
    abc.int. 3600  NS  ns1.abc.int.
    mail.abc.int 86400  TXT  "v=spf1 a mx -all"
    The DNS record (pri file) for one of the other sites (amta.int) is;
    $TTL  300
    @  IN  SOA  ns1.abc.int. webmaster.amta.int. (
      2016022801  ; serial, todays date + todays serial #
      300  ; refresh, seconds
      300  ; retry, seconds
      300  ; expire, seconds
      300 )  ; minimum, seconds
    amta.int. 3600 A
    mail 3600 A
    www 3600 A
    forum 300  CNAME  amta.int.
    test 300  CNAME  amta.int.
    amta.int. 3600  MX  10  mail.amta.int.
    amta.int. 3600  NS  ns1.abc.int.
    amta.int. 3600  NS  ns2.abc.int.
  2. Nap

    Nap Member

    The problem was that I did not have an "A" record for either of the ns1/ns2 hosts in the abc.int record.
    Fixed by adding:
    ns1 3600 A
    ns2 3600 A

Share This Page