{"id":407,"date":"2013-09-23T00:59:29","date_gmt":"2013-09-22T21:59:29","guid":{"rendered":"http:\/\/www.linux-destek.com\/?p=407"},"modified":"2013-09-23T00:59:29","modified_gmt":"2013-09-22T21:59:29","slug":"linux-pleskte-dns-zone-dosyalarini-yeniden-olusturma","status":"publish","type":"post","link":"https:\/\/www.48k.com.tr\/linux-pleskte-dns-zone-dosyalarini-yeniden-olusturma\/","title":{"rendered":"Linux Pleskte dns zone dosyalar\u0131n\u0131 yeniden olu\u015fturma"},"content":{"rendered":"
Plesk 9.x versiyonunda dns zone dosyalar\u0131n\u0131 tekrar olu\u015fturma scripti<\/p>\n
#!\/bin\/sh<\/p>\n
ADMIN_PASS=`cat \/etc\/psa\/.psa.shadow`
\nMYSQL_BIN_D=`grep MYSQL_BIN_D \/etc\/psa\/psa.conf | awk ‘{print $2}’`
\nPRODUCT_ROOT_D=`grep PRODUCT_ROOT_D \/etc\/psa\/psa.conf | awk ‘{print $2}’`
\nmysql=”${MYSQL_BIN_D}\/mysql -N -uadmin -p${ADMIN_PASS} psa”<\/p>\n
query=”select name from domains;”
\ndomains=`echo $query | $mysql `<\/p>\n
for i in ${domains}; do
\necho “echo $i”
\n$PRODUCT_ROOT_D\/admin\/sbin\/dnsmng update $i
\ndone<\/p>\n","protected":false},"excerpt":{"rendered":"
Plesk 9.x versiyonunda dns zone dosyalar\u0131n\u0131 tekrar olu\u015fturma scripti #!\/bin\/sh ADMIN_PASS=`cat \/etc\/psa\/.psa.shadow` MYSQL_BIN_D=`grep MYSQL_BIN_D \/etc\/psa\/psa.conf | awk ‘{print $2}’` PRODUCT_ROOT_D=`grep PRODUCT_ROOT_D \/etc\/psa\/psa.conf | awk ‘{print $2}’` mysql=”${MYSQL_BIN_D}\/mysql -N -uadmin -p${ADMIN_PASS} psa” query=”select name from domains;” domains=`echo $query | $mysql ` for i in ${domains}; do echo “echo $i” $PRODUCT_ROOT_D\/admin\/sbin\/dnsmng update $i done<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[356,358],"tags":[443,444,397],"class_list":["post-407","post","type-post","status-publish","format-standard","hentry","category-plesk-kucuk-ipuclari","category-web-sunuculari","tag-dns-zone","tag-kayip-dns-zone-dosyalari","tag-plesk"],"_links":{"self":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts\/407"}],"collection":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/comments?post=407"}],"version-history":[{"count":0,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts\/407\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/media?parent=407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/categories?post=407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/tags?post=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}