Ok myhostname is the hostname of my computer and domain.cxm is the domain name i am trying have as the nameserver. Example.com is another domain name which has nothing to do with my nameserver. I just put it there to check if my nameserver works but it obviously does not. The name of the file is on the top and what is in it is below the # sign. Thanks alot everyone especially mcleod. I did not include named.ca but i can if you need to see the contents of it
. And the ip numbers and everything else is made up.
IN 0.0.127.in-addr.arpa.zone
########################################################
$TTL 86400
@ IN SOA localhost. root.localhost(
1 ;serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS localhost.
1 IN PTR localhost.
IN 158.35.25.in-addr.arpa.zone
############################################################
$TTL 86400
@ IN SOA myhostname.domain.cxm. root.domain.cxm(
8 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
IN NS myhostname.domain.cxm. <~~?
198 IN PTR myhostname.domain.cxm. <~~~?
IN domain.cxm
########################################################
$TTL 86400
@ IN SOA @ root.domain.cxm (
4 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS myhostname.domain.cxm.
@ IN MX 0 myhostname
www.myhostname.domain.cxm IN A 25.35.158.198
www.domain.cxm IN A 25.35.158.198
localhost IN A 127.0.0.1
www IN A 25.35.158.198
mail IN A 25.35.158.198
myhostname IN A 25.35.158.198
domain.cxm IN A 25.35.158.198
@ IN A 25.35.158.198
in myhostname.zone
#############################################################
$TTL 86400
@ IN SOA @ root.myhostname(
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS myhostname.
www.myhostname.domain.cxm IN A 25.35.158.198
@ IN A 25.35.158.198
in example.com.zone
###########################################################
$TTL 86400
@ IN SOA @ fish.example.com (
6 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS myhostname.domain.cxm.
www IN A 25.35.158.198
ftp IN A 25.35.158.198
@ IN A 25.35.158.198
in localhost.zone
############################################################
$TTL 86400
@ IN SOA @ root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS localhost.
@ IN A 127.0.0.1
in named.conf
####################################################################
// generated by named-bootconf.pl
options {
directory "/var/named/";
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa"{
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "158.35.25.in-addr.arpa"{
type master;
file "158.35.25.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "domain.cxm"{
type master;
file "domain.cxm.zone";
};
zone "myhostname"{
type master;
file "myhostname.zone";
};
zone "example.com"{
type master;
file "example.com.zone";
};
in resolv.conf
##############################################
order hosts, bind
nameserver 25.35.158.198
nameserver myhostname.domain.cxm
#if i take out anything below this line i cannot connect to internet. I think thats the nameserver for my isp or #something.
search rochester.rr.com rr.com
nameserver 65.46.244.215