Hello,
I've read many how-to's about Bind configuration in last two days. I've installed and configured bind but I can't get correct answer from it.
I get the following answer when I "dig somedomain.net @192.168.97.100" from any machine on local network.
Code:
# dig somedomain.net @192.168.97.100
; <<>> DiG 9.4.2-P2 <<>> somedomain.net @192.168.97.100
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 63224
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;somedomain.net. IN A
;; Query time: 0 msec
;; SERVER: 192.168.97.100#53(192.168.97.100)
;; WHEN: Wed Nov 26 10:17:44 2008
;; MSG SIZE rcvd: 36
Code:
# nslookup somedomain.net.
Server: 192.168.97.100
Address: 192.168.97.100#53
** server can't find somedomain.net: SERVFAIL
What am I doing wrong here?
Here are my configuration files;
Code:
# cat /etc/bind/zones/somedomain.net.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
somedomain.net. IN SOA stargate.somedomain.net. admin.somedomain.net. (
// 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
somedomain.net. IN NS stargate.somedomain.net.
#somedomain.net. IN MX 10 mail.somedomain.net.
// Replace the IP address with the right IP addresses.
www IN A 192.168.97.112
mail IN A 192.168.97.115
stargate IN A 192.168.97.100
galactica IN A 192.168.97.112
caprica IN A 192.168.97.113
pegasus IN A 192.168.97.114
celestra IN A 192.168.97.116
zimbra IN A 192.168.97.115
Code:
# cat /etc/bind/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 "somedomain.net" {
type master;
file "/etc/bind/zones/somedomain.net.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
# Bizim adres 192.168.97.100 buna göre 97.168.192 olacak herhalde.
zone "97.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.97.168.192.in-addr.arpa";
};
Thanks in advance for any/all suggestions/information...