DNS BIND完整域的语法?

我创build了区域文件

zone "example.com" { type master; file "/etc/bind/db.example.com"; forwarders{}; }; 

db.example.com

 $TTL 604800 @ IN SOA pgdebian.example.com. contact.example.com. (20881122 604800 86400 2419200 604800 ) NS pgdebian.xxx.com. pgdebian A 192.168.0.49 pgdebian HINFO "PII 233 :-)" "Debian Testing" * A 127.0.0.1 

现在,当我请求http://lol.example.com时 ,BIND9回答127.0.0.1但是如果我尝试nslookup example.com ,nslookup说SERVER FAILED。

我如何将example.comredirect到127.0.0.1?

通配符是匹配example.com的子项,但不是example.com正确的。

添加此logging:

 @ A 127.0.0.1 

添加127.0.0.1作为example.com自身的地址。

维基百科关于通配DNS的文章相当不错。