ispCP - Board - Support
About DNS server configuration. - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: About DNS server configuration. (/thread-7469.html)

Pages: 1 2


About DNS server configuration. - koko92_national - 08-12-2009 09:09 AM

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.


RE: About DNS server configuration. - kilburn - 08-12-2009 04:40 PM

And what do you want for the others? NS's are required records for all domains...


RE: About DNS server configuration. - joximu - 08-12-2009 07:20 PM

@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


RE: About DNS server configuration. - kilburn - 08-12-2009 07:44 PM

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".


RE: About DNS server configuration. - koko92_national - 08-12-2009 08:58 PM

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?


RE: About DNS server configuration. - koko92_national - 08-13-2009 10:27 AM

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?


RE: About DNS server configuration. - kilburn - 08-13-2009 04:01 PM

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.


RE: About DNS server configuration. - koko92_national - 08-13-2009 09:12 PM

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.


RE: About DNS server configuration. - joximu - 08-13-2009 09:36 PM

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


RE: About DNS server configuration. - kilburn - 08-13-2009 09:37 PM

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!)