Posts by web-dev-seo

    Hello.
    Explain me please, why /var/cache/bind/domain1.tld.db differ from /etc/imscp/bind/working/domain1.tld.db ?
    Is it normal?
    And /var/cache/bind/domain1.tld.db have not structure according to template in /etc/imscp/bind/parts/db.tpl


    /var/cache/bind/domain1.tld.db

    Code
    1. $ORIGIN .$TTL 10800 ; 3 hoursdomain1.tld IN SOA ns1.domain1.tld. postmaster.domain1.tld. ( 2014072500 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 1209600 ; expire (2 weeks) 3600 ; minimum (1 hour) ) NS ns1.domain1.tld. A xx.xx.xx.xx MX 10 mail.domain1.tld. TXT "v=spf1 a mx -all" SPF "v=spf1 a mx -all"$ORIGIN domain1.tld.ftp CNAME domain1.tld.imap CNAME mailmail A xx.xx.xx.xxns1 A xx.xx.xx.xxpop CNAME mailpop3 CNAME mailrelay CNAME mailsmtp CNAME mailwww CNAME domain1.tld.


    /etc/imscp/bind/parts/db.tpl

    Code
    1. $TTL 3H$ORIGIN {DOMAIN_NAME}.@ IN SOA ns1.{DOMAIN_NAME}. postmaster.{DOMAIN_NAME}. ( {TIMESTAMP}; Serial 3H; Refresh 1H; Retry 2W; Expire 1H; Minimum TTL); dmn NS entry BEGIN@ IN NS ns{NS_NUMBER}; dmn NS entry ENDING@ IN {IP_TYPE} {DOMAIN_IP}; dmn NS A entry BEGINns{NS_NUMBER} IN {NS_IP_TYPE} {NS_IP}; dmn NS A entry ENDINGwww IN CNAME @ftp IN CNAME @; dmn MAIL entry BEGIN@ IN MX 10 mail@ IN TXT "v=spf1 a mx -all"@ IN SPF "v=spf1 a mx -all"mail IN {BASE_SERVER_IP_TYPE} {BASE_SERVER_IP}imap IN CNAME mailpop IN CNAME mailpop3 IN CNAME mailrelay IN CNAME mailsmtp IN CNAME mail; dmn MAIL entry ENDING; sub [{SUBDOMAIN_NAME}] entry BEGIN; sub [{SUBDOMAIN_NAME}] entry ENDING$ORIGIN {DOMAIN_NAME}.; custom DNS entries BEGIN; custom DNS entries ENDING; ctm als entries BEGIN; ctm als entries ENDING


    /etc/imscp/bind/working/domain1.tld.db


    Debian Wheezy (7.6)
    i-MSCP 1.1.13
    Bind9 without secondary DNS and with secondary DNS mode either.


    My question is appear, because I want add a custom secondary DNS server name by editing bind template file in /etc/imscp/bind/parts/db.tpl
    Help me, please, in that.


    Thanks for your explanation to beginner admin and sorry for my beginner english ?(