Current time: 12-24-2024, 04:03 AM Hello There, Guest! (LoginRegister)


Post Reply 
DNS Question
Author Message
Jockas Offline
Newbie
*

Posts: 7
Joined: Apr 2009
Reputation: 0
Post: #1
DNS Question
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
09-07-2009 08:00 PM
Find all posts by this user Quote this message in a reply
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #2
RE: DNS Question
(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...ate_config
(This post was last modified: 09-07-2009 08:12 PM by theprincy.)
09-07-2009 08:12 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: DNS Question
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
09-07-2009 08:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Jockas Offline
Newbie
*

Posts: 7
Joined: Apr 2009
Reputation: 0
Post: #4
RE: DNS Question
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
09-07-2009 09:10 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: #5
RE: DNS Question
I'd try the same in the db_e.tpl file instead of db_master_e.tpl

/J
09-07-2009 09:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Jockas Offline
Newbie
*

Posts: 7
Joined: Apr 2009
Reputation: 0
Post: #6
RE: DNS Question
(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 ?
09-07-2009 09:43 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: #7
RE: DNS Question
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
09-07-2009 09:48 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: 1 Guest(s)