ispCP - Board - Support
DNS Question - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: DNS Question (/thread-7792.html)



DNS Question - Jockas - 09-07-2009 08:00 PM

Hi,

Excuse my english, to start with :-)

I have a question about DNS.
When i generate a new domain in ispCP, it generates the nameservers with
the syntax ns1.somedomain.net, and ns2.somedomain.net.

But my primary nameserver is ns1.mynameserver.net and the secondary is
ns2.mynameserver.net

Why is it this way, when i use dnscheck.iis.se the test doesnt
get an OK !

Shouldnt all domains on my server use the primary and secondary nameservers ?

Regards

Joakim Ask, Sweden


RE: DNS Question - theprincy - 09-07-2009 08:12 PM

(09-07-2009 08:00 PM)Jockas Wrote:  Hi,

Excuse my english, to start with :-)

I have a question about DNS.
When i generate a new domain in ispCP, it generates the nameservers with
the syntax ns1.somedomain.net, and ns2.somedomain.net.

But my primary nameserver is ns1.mynameserver.net and the secondary is
ns2.mynameserver.net

Why is it this way, when i use dnscheck.iis.se the test doesnt
get an OK !

Shouldnt all domains on my server use the primary and secondary nameservers ?

Regards

Joakim Ask, Sweden
change
/var/cache/bind/somedomain.net

or change

/etc/ispc/bind/parts/db_e.tpl and /etc/ispcp/bind/parts/db_master_e.tpl

from
Code:
$ORIGIN {DMN_NAME}.
@               IN              SOA             ns1.{DMN_NAME}. postmaster.{DMN_NAME}. (
; dmn [{DMN_NAME}] timestamp entry BEGIN.
                {TIMESTAMP}     ; Serial
; dmn [{DMN_NAME}] timestamp entry END.
                8H              ; Refresh
                15M             ; Retry
                4W              ; Expire
                3H              ; Minimum TTL
)
                IN              NS              ns1.{DMN_NAME}.
                IN              NS              ns2.{DMN_NAME}.
                IN              MX      10      mail.{DMN_NAME}.

to

Code:
$ORIGIN {DMN_NAME}.
@               IN              SOA             ns1.mynameserver.net. postmaster.{DMN_NAME}. (
; dmn [{DMN_NAME}] timestamp entry BEGIN.
                {TIMESTAMP}     ; Serial
; dmn [{DMN_NAME}] timestamp entry END.
                8H              ; Refresh
                15M             ; Retry
                4W              ; Expire
                3H              ; Minimum TTL
)
                IN              NS              ns2.mynameserver.net.
                IN              NS              ns1.mynameserver.net
                IN              MX      10      mail.{DMN_NAME}.

and regenerate the config file

http://www.isp-control.net/documentation/doku.php?id=howto:ispcp:regenerate_config


RE: DNS Question - joximu - 09-07-2009 08:15 PM

You also should have entries in your zone file:

ns1 IN A [ip of your primary dns]
ns2 IN A [ip of your secondary dns]


May this is a topic we should discuss what's the better way.

you can change it if you change the template in /etc/ispcp/bind/parts/db_e.tpl

/J


RE: DNS Question - Jockas - 09-07-2009 09:10 PM

Hi,

Tnx for the quick reply.

I have changed this in the template files, i just
wondered why.

One other thing that comes to mind now.
When i have changed the template files and if i rebuild the
configs. Then ispCP skips to insert the master-part in the
named.config file.
Dont know if this is becuse i have changed in the templates?

/ Joakim Ask


RE: DNS Question - joximu - 09-07-2009 09:20 PM

I'd try the same in the db_e.tpl file instead of db_master_e.tpl

/J


RE: DNS Question - Jockas - 09-07-2009 09:43 PM

(09-07-2009 09:20 PM)joximu Wrote:  I'd try the same in the db_e.tpl file instead of db_master_e.tpl

/J

Its the db_e.tpl file i have changed.
Any idea why master info not gets added in
named.config ?


RE: DNS Question - joximu - 09-07-2009 09:48 PM

the db_master_e.tpl is only needed during the setup of ispcp. Later it's not used for updates...

maybe this is also the reason why the master-domain is not added again to the named.conf

/J