<html>
  <head>
    <meta content="text/html; charset=GB2312" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFCC" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 13/12/12 9:46, Feng He wrote:<br>
    </div>
    <blockquote cite="mid:50C995CC.20201@nsbeta.info" type="cite">
      <pre wrap="">Hello Mark,

My named.conf looks as:

acl "NAMESVR" { 74.81.81.82; };</pre>
    </blockquote>
    NAMESVR is an acl, it could look like {74.81.0.0/16} or {any}<br>
    <br>
    Essentially it is a kind of bitmask, not a list of IPs.<br>
    <blockquote cite="mid:50C995CC.20201@nsbeta.info" type="cite">
      <pre wrap="">

options {
      directory "/var/cache/bind";
      recursion no;
      version "unknown";
      allow-transfer { NAMESVR; };
      also-notify { NAMESVR; };</pre>
    </blockquote>
    All notifys must have a list of IPs, if the acl was any, you would
    have to notify the full internet. The mechanism is designed to
    accept only a list of IPs. It can not accept an acl.<br>
    <blockquote cite="mid:50C995CC.20201@nsbeta.info" type="cite">
      <pre wrap="">
      allow-update { 127.0.0.1; };
};


# zone begins
zone "test.com" {
      type master;
      file "/var/cache/bind/test.com.db";
      allow-transfer { NAMESVR; 74.81.81.81; };
      also-notify { NAMESVR; 74.81.81.81; };
};


When I run named-checkconf I got the error:

# named-checkconf
/etc/bind/named.conf:8: expected IP address near 'NAMESVR'

Please help. Thanks.




ÓÚ 2012-12-13 15:23, Mark Andrews Ð´µÀ:
</pre>
      <blockquote type="cite">
        <pre wrap="">In message <a class="moz-txt-link-rfc2396E" href="mailto:50C9818E.2060303@nsbeta.info"><50C9818E.2060303@nsbeta.info></a>, Feng He writes:
</pre>
        <blockquote type="cite">
          <pre wrap="">Hello,

I have the allow-transfer{} section in the global options{} block.

But for a special zone, I want to include another IP to allow transfer
besides the global IPs.

Is there a also-allow-transfer option in BIND?
If not how to control this?
</pre>
        </blockquote>
        <pre wrap="">
acl xxx { };

options {
        allow-transfer { xxx; };
};

zone "yyy" {
        allow-transfer { xxx; extra; };
};

</pre>
        <blockquote type="cite">
          <pre wrap="">
Thanks.
_______________________________________________
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 l
ist

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>
      </blockquote>
      <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>
    <pre class="moz-signature" cols="72">-- 
Best regards

Sten Carlsen

No improvements come from shouting:
       "MALE BOVINE MANURE!!!"
</pre>
  </body>
</html>