Following on from a discussion in this thread http://www.howtoforge.com/forums/showthread.php?t=45644 I am interested in improving my DNS template. The starting point I have is this template: Code: [ZONE] origin={DOMAIN}. ns={NS1}. mbox={EMAIL}. refresh=28800 retry=7200 expire=604800 minimum=86400 ttl=86400 [DNS_RECORDS] A||{IP}|0|86400 A|*|{IP}|0|86400 A|mail|{IP}|0|86400 NS||{NS1}.|0|86400 MX||mail|10|86400 TXT||v=spf1 a mx -all|0|86400 with the following fields checked: Domain, IP Address, NS 1, Email But I find that every time I use the wizard I'm having to retype the IP address, nameserver and Email. If I enter hard-coded value in the ZONE section for mbox and ns, those values will be automatically entered on the DNS Zone page, but values in the Records page will not be updated. ie Code: ns=ns.myhostng.co.uk [email protected] How can I enter the NS1 and IP address into the template so that the DNS records automatically show the correct values without having to type them each time?
okay - I know now! After an exhaustive examination of the source code (dns-wizard.php) I now realise that I had made a wrong assupmtion. I had presumed that the values in the DNS_RECORDS section of the template would be replaced with settings from the ZONE section. Actually the placeholders are only replaced with values from the user form (form that is shown when using the DNS Wizard) So my template has now become: Code: [ZONE] origin={DOMAIN}. ns=ns.myhostingdomain.com [email protected] refresh=28800 retry=7200 expire=604800 minimum=86400 ttl=86400 [DNS_RECORDS] A||11.22.33.44|0|86400 A|*|11.22.33.44|0|86400 A|mail|11.22.33.44|0|86400 NS||ns.myhostingdomain.com|0|86400 MX||mail|10|86400 TXT||v=spf1 a mx -all|0|86400 This works well for me: I just have to choose the template, choose the client, enter the domain name and the rest is done! One question: within the DNS_RECORDS section, what purpose does the NS record hold and is it actually neccessary
but this setting still doesn't fill the first page values in form How to make these values in user form filled always with same pre-defined record ? IP Address NS 1 NS 2 Email http://mixx.org/pic/ispc3dnspic1.jpg template is ignoring section ns1=some.ns1.tld n2=some.ns2.tld [email protected] Also, what are these values for? waht should be in it? and should these also be in template? Also Notify - ip address of secondary dns?? Update ACL
Are you sure? If you have those values in your template, they won't appear on the form when you add the record, but they will appear on the record that is generated. (unless you enter some other values on the form)
Yes, if i fill just domain name and IP (i will be happy if also IP can be in templete) then script complains about empty values as here http://mixx.org/pic/ispc3dnspic2.jpg i'd like to have in template everything except domain name my template is allmost same as yours [ZONE] origin={DOMAIN}. ns=ns2.myweb.name ns1=ns2.myweb.name ns2=ns.otherweb.com [email protected] refresh=3600 retry=1800 expire=1814400 minimum=7200 ttl=7200 xfer=7.8.9.0 [DNS_RECORDS] A||1.2.3.4|0|7200 A|*|1.2.3.4|0|7200 A|mail|1.2.3.4|0|7200 NS||ns2.myweb.name.|0|7200 NS||ns.otherweb.com.|0|7200 MX||mail.{DOMAIN}.|10|7200 MX||mxbackup.myweb.name.|100|7200
Oh, now i see those values must be unchecked in template properties - http://mixx.org/pic/ispc3dnspic3.jpg so remaining questions are: - should IP address be also in template? ideally pre-filled in the form, so user doesn't need to remember default server address someting as http://mixx.org/pic/ispc3dnspic4.jpg - what is correct value for these fields: Also Notify Update ACL and should they be in template also ?
I have my ip in my template. Then I can make several templates with differnt IP so I dont need to remember each IP
Code: [ZONE] origin={DOMAIN}. ns=ns1.netopcom.dk. [email protected]. refresh=28800 retry=7200 expire=604800 minimum=86400 ttl=86400 [DNS_RECORDS] A|{DOMAIN}.|86.58.173.15|0|86400 A|www|86.58.173.15|0|86400 A|mysql|86.58.173.15|0|86400 A|mail|86.58.173.15|0|86400 A|webmail|86.58.173.15|0|86400 A|cp|86.58.173.15|0|86400 NS|{DOMAIN}.|ns1.netopcom.dk.|0|86400 NS|{DOMAIN}.|ns2.netopcom.dk.|0|86400 MX|{DOMAIN}.|mail.{DOMAIN}.|10|86400
Well, i don't see any difference,then in first step when adding zone from tepmplate you still ha to input domain name & IP adress, how you namaged anyhow to hide IP address field in first step ?