Linuxathome.net

Linux news and help for home broadband internet users
It is currently Fri Mar 29, 2024 8:26 am

All times are UTC + 10 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: named
PostPosted: Wed Jul 31, 2002 4:19 pm 
Offline
Newbie

Joined: Wed Jul 31, 2002 4:10 pm
Posts: 5
Hey all,

I have set up a DNS server and have registered with the top level dns so that ns1.cyberstriker.com is pointing to my IP. I have a PTR for www but I don't seem to be able to ping www.cyberstriker.com.

Here is my named.conf:

acl bogusnets { 0.0.0.0/8; 1.0.0.0/8; 2.0.0.0/8; 192.0.2.0/24; 224.0.0.0/3; 10.0
.0.0/8; 172.16.0.0/12; };
acl slavedns { 144.136.104.46/32; };
acl internals { 192.168.0.0/24; };

options {
directory "/var/named";

allow-query { any; };
allow-transfer { slavedns; };
allow-recursion { any; };
blackhole { bogusnets; };

forward first;
forwarders {
203.2.75.132;
198.142.0.51;
};
};

zone "." {
type hint;
file "root.hints";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "pz/127.0.0";
};

zone "cyberstriker.com" {
type master;
file "pz/cyberstriker.com";
};

zone "16.49.210.in-addr.arpa" {
type master;
notify no;
file "pz/210.49.16";
};

Here is my cyberstriker.com zone file located in /var/named/pz/

$TTL 3D
@ IN SOA ns1.cyberstriker.com. hostmaster.cyberstriker.com. (
2002072601 ; serial, todays date + todays serial
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ; minimum, seconds
)
A 210.49.16.227 ; record for cyberstriker.com. domain
NS ns1 ; Inet Address of name server
NS ns2 ; Inet Address of name server
MX 10 ns1 ; Mail Exchanger

localhost A 127.0.0.1

ns1 A 210.49.16.227
ns2 A 144.136.104.46

www CNAME ns1
mail CNAME ns1

and here is the reverse entry for my ip:

$TTL 3D
@ IN SOA cyberstriker.com. hostmaster.cyberstriker.com. (
1 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS ns1.cyberstriker.com.

227 PTR ns1.cyberstriker.com.

Does anyone spot an error?

Also, I've tried using nslookup and setting the query mode to SOA and the queries work for www.cyberstriker.com etc but how come I can't actually ping it?

Must I allow-transfer to everyone or should I leave it to just my slavedns?

Cheers,

cjhan


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 10 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group