Your question isn't very clear. And your config files are very sloppy. Here is a some pastes of what your config files and zones SHOULD look like. If you clean it up and understand what you are writing, 99% chance that you would solve your own problem.
Assuming you have already downloaded, and compiled Bind the following sample configuration files should make the setup a snap.
######################################
# Sample -- named.conf (Usual location /etc/named.conf)
######################################
Code:
options {
directory "/var/named";
version "This information is not available";
recursion no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};
key "rndc_key" {
algorithm hmac-md5;
secret "a2ffbh5lIGVubBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
zone "." IN {
type hint;
file "root.hints";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "local.host";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "lan.host";
};
zone "example.com" {
type master;
notify yes;
allow-query { any; };
file "zones/example.com.db";
};
zone "slave-example.com" {
type slave;
notify yes;
allow-query { any; };
masters { 255.255.255.255; };
file "zones/70sshowirc.com.db";
};
########################################
# Sample -- root.hints (Usual location /var/named/root.hints)
########################################
Code:
; last update: Apr 22, 2003
; related version of root zone: 1997082200
;
;
. 6D IN NS A.ROOT-SERVERS.NET.
. 6D IN NS B.ROOT-SERVERS.NET.
. 6D IN NS C.ROOT-SERVERS.NET.
. 6D IN NS D.ROOT-SERVERS.NET.
. 6D IN NS E.ROOT-SERVERS.NET.
. 6D IN NS F.ROOT-SERVERS.NET.
. 6D IN NS G.ROOT-SERVERS.NET.
. 6D IN NS H.ROOT-SERVERS.NET.
. 6D IN NS I.ROOT-SERVERS.NET.
. 6D IN NS J.ROOT-SERVERS.NET.
. 6D IN NS K.ROOT-SERVERS.NET.
. 6D IN NS L.ROOT-SERVERS.NET.
. 6D IN NS M.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 6D IN A 198.41.0.4
B.ROOT-SERVERS.NET. 6D IN A 128.9.0.107
C.ROOT-SERVERS.NET. 6D IN A 192.33.4.12
D.ROOT-SERVERS.NET. 6D IN A 128.8.10.90
E.ROOT-SERVERS.NET. 6D IN A 192.203.230.10
F.ROOT-SERVERS.NET. 6D IN A 192.5.5.241
G.ROOT-SERVERS.NET. 6D IN A 192.112.36.4
H.ROOT-SERVERS.NET. 6D IN A 128.63.2.53
I.ROOT-SERVERS.NET. 6D IN A 192.36.148.17
J.ROOT-SERVERS.NET. 6D IN A 198.41.0.10
K.ROOT-SERVERS.NET. 6D IN A 193.0.14.129
L.ROOT-SERVERS.NET. 6D IN A 198.32.64.12
M.ROOT-SERVERS.NET. 6D IN A 202.12.27.33
; End of File
########################################
# Sample -- local.host (Usual location /var/named/local.host)
########################################
Code:
;Zone for 127.0.0.1 (LocalHost)
;
$TTL 6H
@ IN SOA @ root (
2004060801 ; Serial
28820 ; Refresh
7200 ; Retry
604800 ; Expire
86400) ; Minimum TTL
IN NS @
IN A 127.0.0.1
######################################
# Sample -- lan.host (Usual location /var/named/lan.host)
######################################
Code:
;Zone for LAN (Local Area Network)
;
$TTL 3600
1.168.192.in-addr.arpa. IN SOA ns1.example.com. admin.example.com. (
2004091701 ; Serial
3600 ; Refresh
600 ; Retry
1209600 ; Expire
3600 ; Minimum TTL
)
IN NS ns1.example.com.
IN NS ns2.example.com.
0 1H PTR server0.example.com.
1 1H PTR server1.example.com.
2 1H PTR server2.example.com.
################################################
# Sample -- Zone File (Usual location /var/named/zones/domain.com.db)
################################################
Code:
; Zone for Example.Com
;
$TTL 1H
@ IN SOA ns1.example.com. admin.example.com. (
2004100405 ; serial
3600 ; refresh (4 hours)
600 ; retry (2 hours)
1209600 ; expire (5 weeks 6 days 16 hours)
3600 ) ; minimum (1 day)
IN NS ns1.example.com.
IN NS ns2.example.com.
IN NS ns3.example.com.
IN MX 10 smtp.mailserver.com.
IN MX 50 alternate.mailserver.com.
IN TXT "v=spf1 a mx -all"
;;;;;;;;;;;;;;;;;
;; Example.Com ;;
;;;;;;;;;;;;;;;;;
example.com. 1H A 25.25.25.25
www 1H CNAME example.com.
ns1 1H A 25.25.25.25
ns2 1H A 26.26.26.26
ns3 1H A 27.27.27.27
ipv6 1H AAAA 3ffe:bc1:f01::1
These of course are just examples. There is quite a bit of information that must be changed to suit your individual needs. Hopefully though these examples will help make your setup time much faster.
If you have any other questions about these config files, or the information contained in them, please just post a reply and I will do my best to help you solve your problems!