Current time: 11-17-2024, 11:38 PM Hello There, Guest! (LoginRegister)


Post Reply 
About DNS server configuration.
Author Message
koko92_national Offline
Junior Member
*

Posts: 70
Joined: Jul 2008
Reputation: 0
Post: #1
About DNS server configuration.
If i have 1 domain dom.com and i want to create a zone lets say ns1.dom.com and ns2.dom.com how can i do this in debian lenny because when i looked at dom.com.db i found that thereis ns1 and ns2 but if i add a new domain its the same. The new domain also have ns1 and ns2. I want only dom.com to have ns1 and ns2.
08-12-2009 09:09 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: About DNS server configuration.
And what do you want for the others? NS's are required records for all domains...
08-12-2009 04:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: About DNS server configuration.
@killburn
Well - it's possible to use the ns1/2.dom.com for dom2.com too:

eg: IN NS ns1.dom.com.

a domain needs "NS records" but does not need ns1 or ns2 "hosts"...

@koko92...
you can change the templates in /etc/ispcp/bind/parts

you should know what you do...

/J
08-12-2009 07:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: About DNS server configuration.
Oh, I misunderstood the question. In fact, I'm using a modified template that implements this "only master has ns.domain.tld A records, while others use them as NS records".
08-12-2009 07:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
koko92_national Offline
Junior Member
*

Posts: 70
Joined: Jul 2008
Reputation: 0
Post: #5
RE: About DNS server configuration.
I'm stil new in this and i'm learning. Let say i have a master domain dom.com and if i want to register DNS zone server all i have to do is to register ns1/2.dom.com i dont have to make any changes?
08-12-2009 08:58 PM
Find all posts by this user Quote this message in a reply
koko92_national Offline
Junior Member
*

Posts: 70
Joined: Jul 2008
Reputation: 0
Post: #6
RE: About DNS server configuration.
Now i'm hosting 3 domains and everything is Ok but every domain have ns1 and ns2 zones. I want only one domain to have ns1 and ns2 zones and to be master and every other to be slave. If my first domain is dom.com and the admin panel of Omega is admin.dom.com i want only this one to have ns1 and ns2. Got it? Another question why every domain have ns1 and ns2?
08-13-2009 10:27 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: About DNS server configuration.
I think you're mixing the zones and records concepts, read about it in the wikipedia. That said, I suppose that you don't want the ns1 and ns2 records on the hosted domains, so you can remove them from all the templates in /etc/ispcp/bind/parts except the "master" ones.
08-13-2009 04:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
koko92_national Offline
Junior Member
*

Posts: 70
Joined: Jul 2008
Reputation: 0
Post: #8
RE: About DNS server configuration.
This is one of the domains that i dont want to have ns1 and ns2
PHP Code:
$TTL 12H
$ORIGIN gamblenook
.com.
@               
IN              SOA             ns1.gamblenook.compostmaster.gamblenook.com. (
dmn [gamblenook.comtimestamp entry BEGIN.
                
2009073000     Serial
dmn [gamblenook.comtimestamp entry END.
                
8H              Refresh
                30M             
Retry
                4W              
Expire
                3H              
Minimum TTL
)
                
IN              NS              ns1.gamblenook.com.
                
IN              NS              ns2.gamblenook.com.
                
IN              MX      10      mail.gamblenook.com.

gamblenook.com.     IN              A               85.187.32.205
www             IN              A               85.187.32.205
gamblenook
.com.     IN              TXT             "v=spf1 a mx ip4:85.187.32.205 ~all"
localhost       IN              A               127.0.0.1
mail            IN              A               85.187.32.205
ns1             IN              A               85.187.32.205
ns2             IN              A               85.187.32.205
CNAME for VHCS compatibility
ns              IN              CNAME           ns1
CNAME for mail transfer
imap            IN              CNAME           mail
pop             IN              CNAME           mail
pop3            IN              CNAME           mail
relay           IN              CNAME           mail
smtp            IN              CNAME           mail
CNAME for web transfer
ftp             IN              CNAME           www
sub [{SUB_NAME}] entry BEGIN.
sub [{SUB_NAME}] entry END

And i have to remove only

ns1.gamblenook.com in this line
PHP Code:
@               IN              SOA             ns1.gamblenook.compostmaster.gamblenook.com. ( 

and these two lines
PHP Code:
IN              NS              ns1.gamblenook.com.
                
IN              NS              ns2.gamblenook.com
I hope i'm right.
08-13-2009 09:12 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: About DNS server configuration.
no!

not remove - replace!

the soa block needs the first ns entry.
and the zone also needs the NS Entries (lines)

You may replace theese two things with ns1.yourdom.com (soa) and IN NS ns1.yourdom.com, IN NS ns2.yourdom.com (the 2 NS lines) - and then you can remove the
ns1 IN A ... and ns2 IN A ... lines.

You need to replace this in the bind templates as stated above...

Better do nothing if you don't want to risk any errors.

/J
08-13-2009 09:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #10
RE: About DNS server configuration.
Almost right. You cannot simply remove "ns1.gamblenook.com." from the SOA record, because that would render it incorrect. Replace it with the real primary name server for this domain (and don't forget the dot "." at the end!)
08-13-2009 09:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 5 Guest(s)