SunQuest
           DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 4th, 2004, 03:56 PM
dkkopp dkkopp is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 dkkopp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Need help with making myself top level domain

I am going crazy trying to figure out how to make the DNS server on our isolated network work.

I am trying to make my own domain called avengers.comic, with the machine running bind being captainamerica.avengers.comic as well as ns1.avengers.comic and ns2.avengers.comic.

I have attached all of the related files.

Please help.



I'm stumped.


David Kopp

Reply With Quote
  #2  
Old February 4th, 2004, 05:53 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
Sounds like you need to create the "avengers.comic" zone in named.conf and the appropriate information in the zone file. This is done exactly the same way as normal domains. So what's the problem?
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old February 5th, 2004, 08:04 AM
dkkopp dkkopp is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 dkkopp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The problem is that I don't know how to do it. Here is my named.conf:

# Try yet again

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; } ;
};

include "/etc/named.custom";

include "/etc/rndc.key";

options {
directory "/var/named";
};

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

zone "0.16.172.in-addr.arpa" {
type master;
file "0.16.172.in-addr.arpa.zone";
};

zone "." {
type master;
file "root.zone";
};

zone "comic." {
type master;
file "comic.zone";
};

zone "avengers.comic." {
type master;
file "avengers.comic.zone";
};


And here is avengers.comic.zone:

$TTL 864000
avengers.comic. IN SOA avengers.comic. steve.avengers.comic. (
2004020501 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum

; Name Servers

avengers.comic. IN NS ns1.avengers.comic.
avengers.comic. IN NS ns2.avengers.comic.

; Mail server for domain
avengers.comic. IN MX 10 captainamerica.avengers.comic.

; Public servers
ns1.avengers.comic. IN A 172.16.89.1
ns2.avengers.comic. IN A 172.16.89.1
captainamerica.avengers.comic. IN A 172.16.89.1


The statis IP address of the server machine is 172.16.89.1

I'm just so confused....

David

Reply With Quote
  #4  
Old February 5th, 2004, 08:28 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
remove the following zone. It's redundant. Either put everything in the comic zone or the avengers.comic zone.

zone "comic." {
type master;
file "comic.zone";
};

Reply With Quote
  #5  
Old February 5th, 2004, 09:36 AM
dkkopp dkkopp is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 dkkopp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
OK, I removed the comic zone. This is what I now have.

named.conf:

# Try yet again

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; } ;
};

include "/etc/named.custom";

include "/etc/rndc.key";

options {
directory "/var/named";
};

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

zone "0.16.172.in-addr.arpa" {
type master;
file "0.16.172.in-addr.arpa.zone";
};

zone "." {
type master;
file "root.zone";
};

zone "avengers.comic." {
type master;
file "avengers.comic.zone";
};


root.zone:

$TTL 864000
. IN SOA . steve. (
20040205 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum


; Name Servers

. IN NS ns1.
. IN NS ns2.

; Public servers
ns1. IN A 172.16.89.1
ns2. IN A 172.16.89.1


avengers.comic.zone:

$TTL 864000
avengers.comic. IN SOA avengers.comic. steve.avengers.comic. (
2004020501 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum

; Name Servers

avengers.comic. IN NS ns1.avengers.comic.
avengers.comic. IN NS ns2.avengers.comic.

; Mail server for domain
avengers.comic. IN MX 10 captainamerica.avengers.comic.

; Public servers
ns1.avengers.comic. IN A 172.16.89.1
ns2.avengers.comic. IN A 172.16.89.1
captainamerica.avengers.comic. IN A 172.16.89.1

0.0.127.in-addr-arpa.zone:

$TTL 864000
@ IN SOA localhost. steve.localhost. (
2003040701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum



@ IN NS localhost.

1 IN PTR localhost.


0.16.172.in-addr.arpa.zone:

$TTL 864000
@ IN SOA ns1.avengers.comic. steve.avengers.comic. (
2003040701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum



@ IN NS ns1.avengers.comic.
@ IN NS ns2.avengers.comic.

250 IN PTR captainamerica.avengers.comic.


I can restart BIND by invoking:

/etc/init.d/named restart

BIND says it starts and stops OK.

I then go to another maching on the network and type:

dig ns1.avengers.comic

Dig says no servers could be reached.

I also tried:

dig

Dig again said no servers could be reached. So, I tried

dig @172.16.89.1

Dig again said no servers could be reached.

What am I missing?

BTW, thanks for all of your help so far.

David

Reply With Quote
  #6  
Old February 5th, 2004, 05:10 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
I want the exactly pasted response from these commands at the server:

First stop the server. Then do this:

named -u named -g

Then start the server and do this:

dig @172.16.89.1 avengers.comic any

Reply With Quote
  #7  
Old February 9th, 2004, 08:38 AM
dkkopp dkkopp is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 dkkopp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well, that worked. Here is what I got:

[koppdk@scarletwitch koppdk]$ dig @172.16.89.1 avengers.comic any

; <<>> DiG 9.2.2-P3 <<>> @172.16.89.1 avengers.comic any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27374
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 3

;; QUESTION SECTION:
;avengers.comic. IN ANY

;; ANSWER SECTION:
avengers.comic. 864000 IN SOA avengers.comic. steve.avengers.comic. 2004020501 28800 14400 3600000 86400
avengers.comic. 864000 IN NS ns2.avengers.comic.
avengers.comic. 864000 IN NS ns1.avengers.comic.
avengers.comic. 864000 IN MX 10 captainamerica.avengers.comic.

;; ADDITIONAL SECTION:
ns1.avengers.comic. 864000 IN A 172.16.89.1
ns2.avengers.comic. 864000 IN A 172.16.89.1
captainamerica.avengers.comic. 864000 IN A 172.16.89.1

;; Query time: 16 msec
;; SERVER: 172.16.89.1#53(172.16.89.1)
;; WHEN: Mon Feb 9 08:18:11 2004
;; MSG SIZE rcvd: 189

So, I took a look at the /etc/init.d/named script. It turns out that they were running:

named -u named -t /var/named/chroot

For some reason this won't work. I even changed the owner on /var/named/chroot and all of its children to named. Still no joy.

So, I removed the -t option from the script, and now everything works fine.

Thank you, thank you, thank you.

SilentRage, you truly ARE a DNS/BIND Guru.

Thanks again,

David Kopp

Reply With Quote
  #8  
Old February 9th, 2004, 08:46 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
The -t option helps make your server more secure. It sticks your BIND process under a new root so that if a new exploit is found for BIND and you are compromised you aren't giving anybody any love. It's an added line of defense, but completely optional.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Need help with making myself top level domain


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway