Hello! I have installed bind9 and for now I have trouble configuring it. I have done all steps discribed in some tuts. Digging google for exapmle works pretty good (forwarders are ok I think) but digging example.com fails.
dig example.com ; <<>> DiG 9.3.2 <<>> example.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 18363 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;example.com. IN A ;; Query time: 1 msec ;; SERVER: 192.168.0.51#53(192.168.0.51) ;; WHEN: Wed Jan 3 15:10:55 2007 ;; MSG SIZE rcvd: 29 I would be really happy if someone can help me, I played around several hours but it still does not work. Thanks Christian Maier PS here are my config Files: names.conf.local ------------------------- [EMAIL PROTECTED]:/etc/bind# cat named.conf.local // // Do any local configuration here // // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918"; //# This is the zone definition. replace example.com with your domain name zone "example.com" { type master; file "/etc/bind/zones/example.com.db"; }; //# This is the zone definition for reverse DNS. replace 0.168.192 with your network address in reverse notation - e.g my network address is 192.168.0 zone "0.168.192.in-addr.arpa" { type master; file "/etc/bind/zones/rev.0.168.192.in-addr.arpa"; }; example.com.db ------------------------ [EMAIL PROTECTED]:/etc/bind/zones# cat example.com.db // replace example.com with your domain name. do not forget the . after the domain name! // Also, replace ns1 with the name of your DNS server example.com. IN SOA localhost. ( // Do not modify the following lines! 2006081401 28800 3600 604800 38400 ) // Replace the following line as necessary: // ns1 = DNS Server name // mta = mail server name // example.com = domain name example.com. IN NS localhost. //example.com. IN MX 10 chef. // Replace the IP address with the right IP addresses. www IN A 192.168.0.51 mta IN A 192.168.0.51 ns1 IN A 192.168.0.51 //* IN A 192.168.0.51 //@ IN A 192.168.0.51 rev.0.168.192.in-addr.arpa ------------------------------------- [EMAIL PROTECTED]:/etc/bind/zones# cat rev.0.168.192.in-addr.arpa //replace example.com with yoour domain name, ns1 with your DNS server name. // The number before IN PTR example.com is the machine address of the DNS server. in my case, it's 1, as my IP address is 192.168.0.1. @ IN SOA localhost. ( 2006081401; 28800; 604800; 604800; 86400 ) IN NS localhost. 1 IN PTR example.com [EMAIL PROTECTED]:/etc/bind/zones# tcpdump port 53 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 15:14:07.808170 IP 192.168.0.86.4857 > barney.domain: 11912+ A? example.com. (29) 15:14:07.810669 IP barney.domain > 192.168.0.86.4857: 11912 ServFail 0/0/0 (29) 15:14:07.812010 IP 192.168.0.86.4857 > barney.domain: 2952+ A? example.com.CI_BHG. (36) 15:14:07.830662 IP barney.32968 > 192.168.0.1.domain: 37035+ [1au] A? example.com.CI_BHG. (47) 15:14:08.207976 IP 192.168.0.1.domain > barney.32968: 37035 NXDomain 0/1/1 (122) 15:14:08.209026 IP barney.domain > 192.168.0.86.4857: 2952 NXDomain 0/1/0 (111 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]