Issues with DNS (master) server configuration

Discussion in 'General' started by Sil68, Jun 13, 2014.

  1. Sil68

    Sil68 New Member

    Hi,

    I'm about setting up a local-only DNS on my LAN, which is servicing all the devices on the LAN (including tablets and phones), as well as forwarding any relevant requests to a DNS on the public internet (WAN).

    I've got three domains (mydom1.org, mydom2.org, mydom3.org), which are being used both on the LAN as well as on the WAN. The latter is also sporting three websites under the very same names, namely mydom1.org (WordPress site, mail server), mydom2.org (osCommerce site, mail server), mydom3.org (SugarCRM, Piwik, mail server).

    (For various reasons the domain names have to be identical on the LAN and the WAN sides.)

    The local DNS server is running as a service on a Synology DiskStation (armv7l GNU/Linux with bind 9.9.5), and currently I've configured the forwarding zones on my local DNS master server only (zone #1: mydom1.org; zone #2: mydom2.org; zone #3: mydom3.org).

    All the internal nodes/hosts/devices are working like a charm, even most of the nodes on the WAN can be reached perfectly fine.

    Still there are a few glitches:

    :: mail.mydom1.org is all peachy, though whne trying to resolve mail.mydom2.org I'm receiving an unknown host error message;
    :: sites mydom2.org, mydom3.org cannot be reached at all (bad address mydom2.org/mydom3.org).

    I've started out with the zone definition for mydom1.org and replicated this then to the other two zones, replacing the relevant parts accordingly

    zone #01 (mydom1.org):

    Code:
    zone "mydom1.org" {
    	type master;
    	file "/etc/zone/master/mydom1.org";
    	allow-transfer {192.168.0.0/16;};
    	allow-query {192.168.0.0/16;};
    };
    $ORIGIN mydom1.org.
    $TTL 86400
    mydom1.org. IN SOA dns.mydom1.org. Admin.mydom1.org. (
    	59
    	43200
    	180
    	1209600
    	10800
    )
    mail.mydom1.org.	86400	MX	10 mail.mydom1.org.
    mail.mydom1.org.	86400	A	a.b.c.d
    kdc.mydom1.org.	86400	CNAME	dns.mydom1.org.
    localhost.mydom1.org.	86400	A	127.0.0.1
    printer01.mydom1.org.	86400	A	192.168.5.200
    host02.mydom1.org.	86400	A	192.168.191.212
    host01.mydom1.org.	86400	A	192.168.5.100
    nas01.mydom1.org.	86400	A	192.168.5.81
    nas02.mydom1.org.	86400	A	192.168.5.80
    mydom1.org.	86400	NS	dns.mydom1.org.
    gw.mydom1.org.	86400	A	192.168.5.1
    
    zone #02 (mydom2.org):

    Code:
    zone "mydom2.org" {
    	type master;
    	file "/etc/zone/master/mydom2.org";
    	allow-transfer {192.168.0.0/16;};
    	allow-query {192.168.0.0/16;};
    };
    $ORIGIN mydom2.org.
    $TTL 86400
    mydom2.org. IN SOA dns.mydom2.org. Admin.mydom2.org. (
    	59
    	43200
    	180
    	1209600
    	10800
    )
    mail.mydom2.org.	86400	MX	10 mail.mydom2.org.
    mail.mydom2.org.	86400	A	a.b.c.d
    kdc.mydom2.org.	86400	CNAME	dns.mydom2.org.
    localhost.mydom2.org.	86400	A	127.0.0.1
    printer01.mydom2.org.	86400	A	192.168.5.220
    host02.mydom2.org.	86400	A	192.168.191.232
    host01.mydom2.org.	86400	A	192.168.5.240
    nas01.mydom2.org.	86400	A	192.168.5.81
    nas02.mydom2.org.	86400	A	192.168.5.80
    mydom2.org.	86400	NS	dns.mydom2.org.
    gw.mydom2.org.	86400	A	192.168.5.1
    
    zone #03 (mydom3.org):

    Code:
    zone "mydom3.org" {
    	type master;
    	file "/etc/zone/master/mydom3.org";
    	allow-transfer {192.168.0.0/16;};
    	allow-query {192.168.0.0/16;};
    };
    $ORIGIN mydom3.org.
    $TTL 86400
    mydom3.org. IN SOA dns.mydom3.org. Admin.mydom3.org. (
    	59
    	43200
    	180
    	1209600
    	10800
    )
    mail.mydom3.org.	86400	MX	10 mail.mydom3.org.
    mail.mydom3.org.	86400	A	a.b.c.d
    kdc.mydom3.org.	86400	CNAME	dns.mydom3.org.
    localhost.mydom3.org.	86400	A	127.0.0.1
    printer01.mydom3.org.	86400	A	192.168.5.150
    host02.mydom3.org.	86400	A	192.168.191.170
    host01.mydom3.org.	86400	A	192.168.5.160
    nas01.mydom3.org.	86400	A	192.168.5.81
    nas02.mydom3.org.	86400	A	192.168.5.80
    mydom3.org.	86400	NS	dns.mydom3.org.
    gw.mydom3.org.	86400	A	192.168.5.1
    
    What would I have to change in order to get this working?

    - Sil
     
  2. Ryan Rajpoot

    Ryan Rajpoot New Member

    Everyday i receive mail regarding dns failure, how to solve it.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Are you sure that you are using the Software "MyDNSConfig", a control panel for the MySQL based DNS Server "MyDNS"? This software has been discontinued many years ago and it will not even work on recent Linux Distributions, so I really doubt that you use it. Beside that. MyDDNSconfig has no email notification, so it could not have sent you an email on DNS failure.
     

Share This Page