雞媽媽的媽媽-freedns系統

話說~midphase(Anhosting)只能用addon domain
必須要借助外部dns server
而….freedns就是本次實驗的目標~
但是這個目標讓我在申請pp.ru域名時~吃盡苦頭

Bind 8 / Bind 9兩個不同版本的DNS解析對設定造成嚴重的問題
我在RISN中設定的DNS server 只有2個
ns1.afraid.org ns2.afraid.org
因為根據DNS的規範~DNS只要設定2個就好
相說~設到4個就比較沒有意思~反正全球DNS Server同部完
2個和4個DNS Server並不會影響解析
但是~好笑的是~
freeedns 回報給RISN的DNS Server是4個
也就是說上下游的DNS Server並不相同
造成Lame Server(跛腳)

就會收到通知信~
主旨:xxx.PP.RU: zone check failed
————————– english ———————————
Dear Madam/Sir, We are sorry to notify that the check of ‘xxx.PP.RU’
DNS-servers has failed with the following error(s):

1. NS records list for xxx.PP.RU. provided in the domain template
is different from the one contained at ns2.afraid.org.(66.252.1.255, 66.252.1.255)

ns2.afraid.org. – ‘ns1.afraid.org. ns2.afraid.org. ns3.afraid.org. ns4.afraid.org.’
domain template – ‘ns1.afraid.org. ns2.afraid.org.’

2. NS records list for xxx.PP.RU. provided in the domain template
is different from the one contained at ns1.afraid.org.(67.19.72.206, 67.19.72.206)

ns1.afraid.org. – ‘ns1.afraid.org. ns2.afraid.org. ns3.afraid.org. ns4.afraid.org.’
domain template – ‘ns1.afraid.org. ns2.afraid.org.’

Please try to correct the problems before the next check retry in 3 hours.

See the DNS recommendations at http://www.ripn.net/nic/rfc/rfc1912.txt
if you need help.

Thank you,
RIPN mail processor.
Sat Mar 14 08:06:49 2009 Moscow, Russia.

阿不就把伺服器設回去就好~
因為~DNS還沒有確認完成~
這個域名並不能算是我已經申請完成的~
所以~並不能登入RISN後台去改設定~
怎麼辦咧…..弄了一天~
每次都要等3個小時~
連進去~freedns 狀態一直是Broken
想說~是新加入會員的關係~
所以~帳號還沒有開通
但是~到昨天中午就滿48小時了
我直接去讀ns1.afraid.org的設定資料
已經是正確的~但是看到的DNS資料是4筆
後來~今天早上四點~我找到設定的方式~

用寄信的方式來設定
收件人:[email protected]
主址:空白
內容:
action: update
passwd:登入RISN的密碼
#[DOMAIN TEMPLATE]#
domain:xxx.pp.ru
type:CORPORATE
descr:Descirpt of your site
comp-d:subdomain1
comp-d:subdomain2
admin-o:ZZZ-ORG-RIPN
bill-o:ZZZ-ORG-RIPN
nserver:ns1.afraid.org.
nserver:ns2.afraid.org.
nserver:ns3.afraid.org.
nserver:ns4.afraid.org.

mnt-by:ZZZ-MNT-RIPN
source: RIPN
#[TEMPLATES END]#

寄信出去之後~沒有多久~就會收到變更的通知信~

Dear Madam/Sir,

Here are results of processing your request:

> From: 你的信箱
> Subject:
> Date: Sun, 15 Mar 2009 03:49:59 +0800
> Msg-Id: <[email protected]>

> action: update
> password: XXXXX
> #[DOMAIN TEMPLATE]#
> domain:xxx.pp.ru
> type:CORPORATE
> descr:personal test domain
> comp-d:www
> comp-d:ftp
> admin-o:ZZZ-ORG-RIPN
> bill-o:ZZZ-ORG-RIPN
> nserver:ns1.afraid.org.
> nserver:ns2.afraid.org.
> nserver:ns3.afraid.org.
> nserver:ns4.afraid.org.

> mnt-by:ZZZ-MNT-RIPN
> source: RIPN
Read-Only fields ‘source’,’domain’,’type’,’admin-o’ are not updated now.

PREVIOUS OBJECT:

domain: xxx.PP.RU
type: CORPORATE
* descr: e-business online
* comp-d: dns
* comp-d: www
* comp-d: ftp
admin-o: ZZZ-ORG-RIPN
bill-o: ZZZ-ORG-RIPN
nserver: ns1.afraid.org.
nserver: ns2.afraid.org.
* new-nserver: ns1.afraid.org.
* new-nserver: ns2.afraid.org.
mnt-by: ZZZ-MNT-RIPN
created: 2009.03.13
changed: 2009.03.14
state: Not delegated
source: RIPN

REPLACED BY:

domain: xxx.PP.RU
type: CORPORATE
* descr: personal test domain
* comp-d: www
* comp-d: ftp
admin-o: ZZZ-ORG-RIPN
bill-o: ZZZ-ORG-RIPN
nserver: ns1.afraid.org.
nserver: ns2.afraid.org.
* new-nserver: ns1.afraid.org.
* new-nserver: ns2.afraid.org.
* new-nserver: ns3.afraid.org.
* new-nserver: ns4.afraid.org.
mnt-by: ZZZ-MNT-RIPN
created: 2009.03.13
changed: 2009.03.14
state: Not delegated
source: RIPN

*******************************************************
*** actual change of nameservers will be performed ***
*** only after the zone checking is complete ***
*** (current DNS-servers are in field ‘nserver’ ***
*** new DNS-servers are in field ‘new-nserver’) ***
*** ***
*** In case of empty field ‘new-nserver’ ***
*** zone checking will not be performed, ***
*** domain delegation may be suspended ***
*******************************************************

Domain will be delegated after zone checking is complete.

> #[TEMPLATES END]#

Your current request counter: 1.
You may send us 119 in this hour.

Thank you,
RIPN mail processor.
Sat Mar 14 22:51:02 MSK 2009
Moscow, Russia.

成功的變更了 DNS
也就在剛才…收到通知信
DNS確認完成~
這個域名到手了~
跟我重新申請的域名同時到手….
哇咧….這是的…花了快三天才進來
這個雞婆的freedns還真的讓我吃盡苦頭
(RISN 太多俄文了~丟給Google翻譯…無法確定是不是翻對)

Anyway 這個經驗…代價不小

唉~有一好沒兩好的hosting

之前都在說~startlogic和ipower不好~
現在玩域名寄存之後~
Anhosting(midphase)卻不是這麼順利
話最~最近我去弄了一堆域名回來~
startlogic和ipower都提供了park domain的功能
而且~也有custom dns的設定
所以~在申請DNS設定的時候~
只要指向startlogc或是ipower提供的dns server就好

而Anhosting卻沒有提供park domain的功能(也許我買的package沒有)
都只能加addon domain addon domain只能新增60個也就算了
DNS解析的部份要自己做~
使用Freedns來設定DNS是可行的,但是更新速度
真的慢到讓人會怕~我睡一個覺起來~還判定我的域名是broken

broken意思是說~全球12台的DNS root server還沒有我所設定的資料
一天才檢查一次,正確之後~狀態才會正常
真的蠻不順的

最近玩了鯊魚網/co.cc/freedns/twbbs.org….都是各有優缺
慢是最主要的一個原因

另外~google webmaster的DNS更新也很慢
中華電信/台灣固網的DNS都更新了~
連YAHOO的站長工具都能用了
他還找不到…..鳥鳥的google

兩天後~他終於找到那個subdomain了….

網域名稱的實驗~免費二級域名

照了網路上的說明~
去申請了俄羅斯的免費域名
第一次申請的時候~沒有注意到時間
超過配額~
第二次再申請的時候~就在兩個小時後收到認証信~申請通過

烏克蘭的二級域名~是申請憑證~再寄送憑證申請
之前我有申請過一次~失敗

次這 把google翻譯搬出來~申請第一次就成功
不過~DNS卻在6個小時候後work

會用到的資源網址有2個
第1個 google 翻譯
第2個 郵政總局的地址翻譯

網路上的說明 寫的沒有很清楚
電話號碼的格式是

+886 空格 區碼 空格 號碼
網路上的說明也是舊的 現在申請烏克蘭的憑証
Email中就有超連結了~可以直接認證
當然 原來回信認證的方式一樣可以用

哈哈~多了俄羅斯和烏克蘭的域名……
還不知道~要放什麼東西才好咧…

PS. 1.com.ru 公司型的俄羅斯域名,目前已經停止提供申請…
PS. 2.不要用Google直接對網路翻譯,這樣會造成網頁運作異常

用mysql的trigger完成ping service

因為進行wordpress的二次開發
無法自動進行PING的動作
所以~花了時間去研究一下 mysql 的trigger要怎麼做
目前可以做到的~
在新增文章~或是更新文章的時候~
會自動新增(修改)另一個資料表
只要一個小程式~就可以判斷哪些文章還沒有PING過~
或是那一篇文章~修改過了~待PING

玩起來~還蠻有趣的~
今天~晚上算是玩樂~
而不是工作~哈哈

joomla 測試~

看到它的架構~
感覺起來~真的蠻不錯的~
但是….這個CMS級的系統~
拿來當Blog~功能卻不怎麼樣….
xml-rpc上傳圖片會失敗….
中文化…其實還好…
後台管理蠻複雜的~
不適合給一般使用者使用
倒是很多學校~大型公司使用
小公司哦….那就算了唄…

中文化小組說~他唸起來像「君啦」
可是~唸起來應該像~「豬母啦」~
哈哈~以後就叫他豬母系統好了….

wordpress 二次開發

外面一堆文章說wordpress的使用者編碼是MD5
其實~測試的結果是~他可以接受2種編碼
第一種編碼~我不確定是什麼編碼方式~
長的像這樣 $P$BU2RGPBzC0ITA918rljQxn.EYW3ul5/
第二種編碼~MD5 hash
長的像這樣 481ab5322e207670008856dafdb74bda
假設~我們使用MD5編碼去改「忘記」的密碼(mysql/phpmyadmin)
是可以登入的~但是….登入之後~MD5編碼會被改掉
所以…..再用原來的password登入之後~
就會登入失敗~
所以…如果要做二次發的時候
……..怎麼辦咧
還是有可能前台後來進進出出…
只好蠻幹~登入之前這麼做
查看看這個使用者在不在~不在的話~就insert這個使用者
如果在的話….就去更新密碼
但是….問題又來了~
wordpress的使用者權限是記在wp_usermeta中~該不會又要再塞一次值吧!
實在給他#$%^&*()(*&^%$……..遜到爆

DOM-XML issue of PHP

I use a package to generor the rss feed, but it show the message as below.

Warning: require_once(class.DomDocument.inc.php) [function.require-once]: failed to open stream: No such file or directory in…

The it will show me the fatal erro, It could not load file ‘class.DomDocument.inc.php’.
But the file does not include in the package.
And I could run these file in another server, so I guest the question made from a addon of php.

I modify the code to get the debug message:
class.RSSItemList.inc.php
class.ObjectList.inc.php
class.RSSItem.inc.php
class.RSS_V_200.inc.php
class.RSS_V_abstract.inc.php
class.DomDocument.inc.php <—-it does not include this file in the package.

I research the data in the google, someone says that , it need the libxml2 library.
But in the default ver. of apache in the linux platform, it include already.
And I research the others file about the XML and DOM.
Finaly, I got the answer, It need php-domxml addon.
Just install it through yum, and don’t forget restart apache.
Let the apache reload the php.ini , and it will load the addon for php.

command as below.
yum install php-domxml
service httpd restart