<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">The original server servers as primary
      DNS for our AD infrastructure. This could be one explanation about
      these peculiarities. But since the source DNS is tuned no to
      complain about strange names I prefer to have a similar
      configuration on the clone.<br>
      <br>
      On 04/29/2014 04:17 PM, Sten Carlsen wrote:<br>
    </div>
    <blockquote cite="mid:535FA670.6050102@s-carlsen.dk" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      You might want to look at the output of:<br>
      dig axfr example.com<br>
      <br>
      This gives also the contents of the zone, nicely sorted but with
      an added SOA at the end.<br>
      <br>
      I would suggest to use it for comparison with the files to look
      for some of those interesting endings (~~.com\032.) Those really
      look odd to me.<br>
      <br>
      <br>
      <div class="moz-cite-prefix">On 29/04/14 14.22, Theodotos Andreou
        wrote:<br>
      </div>
      <blockquote cite="mid:535F9988.3060106@theo-andreou.org"
        type="cite">Thanks for the tip Mark. Now all the zone files are
        cached as text. <br>
        <br>
        Now I have a different problem. After converting alll the zones
        to master many zones failed to load because of this: <br>
        <br>
        # grep example.com /var/log/syslog <br>
        29-Apr-2014 11:21:32.613 dns_rdata_fromtext:
        db.0.210.10.in-addr.arpa:26: near
        'android_b2b2b8cdeedf92d3.example.com.': bad name (check-names)
        <br>
        29-Apr-2014 11:21:32.629 dns_rdata_fromtext:
        db.0.255.10.in-addr.arpa:16: near 'lim_iptgw1.example.com.': bad
        name (check-names) <br>
        29-Apr-2014 11:21:32.636 dns_rdata_fromtext:
        db.8.211.10.in-addr.arpa:45: near 'tl-wr641g/642g.example.com.':
        bad name (check-names) <br>
        29-Apr-2014 11:21:32.646 dns_rdata_fromtext:
        db.2.255.10.in-addr.arpa:22: near 'dc3-l2.example.com\032.': bad
        name (check-names) <br>
        29-Apr-2014 11:21:32.648 dns_rdata_fromtext:
        db.16.212.10.in-addr.arpa:28: near 'android__sx.example.com.':
        bad name (check-names) <br>
        29-Apr-2014 11:21:32.664 dns_rdata_fromtext:
        db.254.255.10.in-addr.arpa:44: near
        'cs1-6509-ktim2.example.com\032.': bad name (check-names) <br>
        29-Apr-2014 11:21:32.673 dns_rdata_fromtext:
        db.204.25.10.in-addr.arpa:21: near 'ictlab_ls.example.com.': bad
        name (check-names) <br>
        29-Apr-2014 11:21:32.692 db.example.com:25:
        -----------pc.example.com: bad owner name (check-names) <br>
        29-Apr-2014 11:21:32.692 zone example.com/IN: loading from
        master file db.example.com failed: bad owner name (check-names)
        <br>
        29-Apr-2014 11:21:32.692 zone example.com/IN: not loaded due to
        errors. <br>
        <br>
        Any idea why? Is there a configuration setting to ignore these
        errors? <br>
        <br>
        On 04/29/2014 09:53 AM, Mark Andrews wrote: <br>
        <blockquote type="cite">    Set the masterfile-format.  Slaves
          default to raw, <br>
              masters default to text. <br>
          <br>
              masterfile-format ( text | raw ); <br>
          <br>
              Mark <br>
          <br>
          In message <a moz-do-not-send="true"
            class="moz-txt-link-rfc2396E"
            href="mailto:535F4BB2.6000307@theo-andreou.org"><535F4BB2.6000307@theo-andreou.org></a>,
          Theodotos Andreou writes: <br>
          <blockquote type="cite">Hello to all, <br>
            <br>
            I have a task to clone a black box IPAM to a bind DNS
            server. Actually <br>
            the black box is using bind in the backend but the
            manufacturer does not <br>
            provide any shell access. Only a crappy GUI. So I do not
            have access to <br>
            the text zone files. Just the GUI. <br>
            <br>
            In order to clone all the zones from the original DNS to the
            clone, I <br>
            setup a bind in slave config and allowed zone transfers for
            it. This is <br>
            a sample config: <br>
            <br>
            /etc/bind/named.conf.local: <br>
            <br>
            ... Output omitted ... <br>
            <br>
            zone "16.2.10.in-addr.arpa" { <br>
                      type slave; <br>
                      file "db.16.2.10.in-addr.arpa"; <br>
                      masters { 10.1.12.61; }; <br>
            }; <br>
            <br>
            zone "24.3.10.in-addr.arpa" { <br>
                      type slave; <br>
                      file "db.24.3.10.in-addr.arpa"; <br>
                       masters { 10.1.12.61; }; <br>
            }; <br>
            <br>
            ... Output omitted ... <br>
            <br>
            After bind restart, the zone transfers an all zones are
            completed <br>
            successfully. The resultant files are some sort of binary: <br>
            <br>
            # file /var/cache/bind/db.24.3.10.in-addr.arpa <br>
            /var/cache/bind/db.24.3.10.in-addr.arpa: data <br>
            <br>
            Now to promote the server to master I changed the
            configuration to: <br>
            <br>
            /etc/bind/named.conf.local: <br>
            <br>
            ... Output omitted ... <br>
            <br>
            zone "16.2.10.in-addr.arpa" { <br>
                      type master; <br>
                      file "db.16.2.10.in-addr.arpa"; <br>
            }; <br>
            <br>
            zone "24.3.10.in-addr.arpa" { <br>
                      type master; <br>
                      file "db.24.3.10.in-addr.arpa"; <br>
            }; <br>
            <br>
            ... Output omitted ... <br>
            <br>
            But when I restart bind I get a lot of errors like this: <br>
            <br>
               named[19773]: dns_master_load: db.24.3.10.in-addr.arpa:1:
            syntax error <br>
               named[19773]: zone 24.3.10.in-addr.arpa/IN: loading from
            master file db.24.3 <br>
            .10.in-addr.arpa failed: syntax error <br>
               named[19773]: zone 24.3.10.in-addr.arpa/IN: not loaded
            due to errors. <br>
            <br>
            Apparently the systems expects to see a zone file in text
            format but <br>
            because it's in binary it fails. I also tested it with: <br>
            <br>
            # named-checkzone 24.3.10.in-addr.arpa
            /var/cache/bind/db.24.3.10.in-addr.arp <br>
            ... Output omitted ... <br>
            dns_master_load: /var/cache/bind/db.24.3.10.in-addr.arpa:16:
            syntax error <br>
            dns_master_load: /var/cache/bind/db.24.3.10.in-addr.arpa:16:
            syntax error <br>
            dns_master_load: /var/cache/bind/db.24.3.10.in-addr.arpa:16:
            syntax error <br>
            dns_master_load: /var/cache/bind/db.24.3.10.in-addr.arpa:16:
            syntax error <br>
            dns_master_load: /var/cache/bind/db.24.3.10.in-addr.arpa:16:
            syntax error <br>
            dns_master_load: /var/cache/bind/db.24.3.10.in-addr.arpa:16:
            syntax error <br>
            dns_master_load: /var/cache/bind/db.24.3.10.in-addr.arpa:17:
            syntax error <br>
            /var/cache/bind/db.24.3.10.in-addr.arpa: file does not end
            with newline <br>
            zone 24.3.10.in-addr.arpa/IN: loading from master file
            /var/cache/bind/db.24.3 <br>
            .10.in-addr.arpa failed: syntax error <br>
            zone 24.3.10.in-addr.arpa/IN: not loaded due to errors. <br>
            <br>
            I know I must be doing something fundamentally wrong here
            but I couldn't <br>
            find a guide how to do this properly. Any ideas? <br>
            <br>
            I am using bind version 9.9.5-3-Ubuntu ( the stock binary
            that comes <br>
            with Ubuntu 14.04 64 bit) and the compiled parameters are: <br>
            named[7817]: built with '--prefix=/usr'
            '--mandir=/usr/share/man' <br>
            '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' <br>
            '--localstatedir=/var' '--enable-threads'
            '--enable-largefile' <br>
            '--with-libtool' '--enable-shared' '--enable-static' <br>
            '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' <br>
            '--with-geoip=/usr' '--with-atf=no' '--enable-ipv6'
            '--enable-rrl' <br>
            '--enable-filter-aaaa' 'CFLAGS=-fno-strict-aliasing
            -DDIG_SIGCHASE -O2' <br>
            <br>
            _______________________________________________ <br>
            Please visit <a moz-do-not-send="true"
              class="moz-txt-link-freetext"
              href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a>
            to unsubscribe <br>
            from this list <br>
            <br>
            bind-users mailing list <br>
            <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
              href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>
            <br>
            <a moz-do-not-send="true" class="moz-txt-link-freetext"
              href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a>
            <br>
          </blockquote>
        </blockquote>
        <br>
        _______________________________________________ <br>
        Please visit <a moz-do-not-send="true"
          class="moz-txt-link-freetext"
          href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a>
        to unsubscribe from this list <br>
        <br>
        bind-users mailing list <br>
        <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
          href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>
        <br>
        <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a>
        <br>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Please visit <a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list

bind-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>