I'm trying to config a bind server which could answering queries (at least from 127.0.0.1 and 192.168.18.128) like "dig kia.czj" but I failed to. perhaps my ignorance about match-clients and match-destinations statements failed my attempt, or more likely, "SOA and NS of localhost. seems wrong". It should be localhost.localdomain.And I used to think the $origin statement is not necessary, the idea about the zone name could be got from named.conf. I'll do some testing before come back, thanks.
2011/7/28 Alan Clegg <acl...@isc.org>: > On 7/28/2011 4:16 AM, uifid...@gmail.com wrote: > >> view localhost_resolver { >> match-clients { localhost; }; >> match-destinations { localhost; }; >> recursion yes; >> include "/etc/named.rfc1912.zones"; >> }; >> view czj { >> match-clients { 192.168.18.128; localhost; }; >> match-destinations { 192.168.18.128; localhost; }; >> recursion yes; >> zone "czj" { >> type master; >> file "czj.zone"; >> }; >> }; > >> named-checkzone named-checkconf passed > > These check syntax but not semantics. As someone else pointed out, it > looks like your zone file is messed up a bit. Additionally, the views > above have both match-clients and match-destinations which I doubt you > want, and you have localhost listed in both... > > What is it that you are trying to do and we might be able to help you > out some... > > AlanC > > > _______________________________________________ > Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe > from this list > > bind-users mailing list > bind-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/bind-users > _______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users