- 如題,寫這篇是因為我用的 COMODO Firewall 裡,預設的規則是僅限走 UDP 的 DNS 查詢。
歡迎來到小豬圈!
Showing posts with label DNS. Show all posts
Showing posts with label DNS. Show all posts
2009-12-03
2008-10-13
Apache 子網域對應
- 以下是使用 Apache HTTP Server 的 mod_vhost_alias 模組。
- 假設擁有的網域和 IP 是: example.com 與 256.256.256.256 。
- 在 DNS 新增一筆泛解“*”:
* IN A 256.256.256.256
- 泛解“*”是標準語法,而且不會覆蓋已設定的域名。參見 Wildcard DNS record - Wikipedia, the free encyclopedia 。
- 意思是指 example.com 的子網域 (像 www.example.com 或 ftp.example.com 之類的) 全部對應到 256.256.256.256 。
- 在 Apache httpd.conf 加入:
LoadModule vhost_alias_module modules/mod_vhost_alias.so UseCanonicalName Off VirtualDocumentRoot "C:/web/%-1/%-2/%-3"
- 上述設定會使 www.example.com 對應到 C:/web/com/example/www ,或 abc.example.com 對應到 C:/web/com/example/abc …之類的效果,這樣新增子網域只要增加子目錄即可,不需重開 Server。
- Apache 還有其它對應網域/網址的方法。參見 Mapping URLs to Filesystem Locations - Apache HTTP Server
2008-09-26
申請一個泛英網域
- 下午在 Hinet 網域名稱申請服務申請了一個泛英網域,下午一點填表,兩點匯款,五點就收到 e-mail 說開通了。
- 在 Hinet 申請的泛英網域沒有提供網域代管,原本想用 ISC BIND 自行架設 DNS Server,但指定 DNS 時一直出現 637 的錯誤,改用 EveryDNS 馬上就成功了。
- 以下是 EveryDNS 提供的四組 DNS Server Name / IP():
- ns1.everydns.net / 208.76.56.56
- ns2.everydns.net / 204.152.184.150
- ns3.everydns.net / 89.188.0.57
- ns4.everydns.net / 208.96.6.134
Subscribe to:
Posts (Atom)
個人常用鏈結
Labels
- .NET (1)
- Accessibility (3)
- ADSL (1)
- Apache (9)
- ASP.NET (1)
- Babyer (1)
- Browser (1)
- Canon MX700 (1)
- CAPTCHA (1)
- CentOS (1)
- CSS (7)
- DB:SQL (1)
- DB:SQLite (2)
- DNS (3)
- English (1)
- EXIF (1)
- filename.ext (1)
- Firefox (4)
- Firewall (1)
- Flash (4)
- Game 遊戲 (28)
- Game:PC (6)
- Game:PS3 (4)
- Game:Xbox360 (3)
- GNU (1)
- Google (6)
- Google:Android (8)
- Google:Blogger (2)
- Google:Chrome (1)
- Google:Code (2)
- GoogleAppEngine (2)
- GoogleMaps (1)
- GPG (1)
- Hinet (1)
- HTML (2)
- HTTP (1)
- i18n (1)
- IE (3)
- Java (2)
- Javascript (2)
- Linux (1)
- Microsoft (2)
- MIME (1)
- MySQL (7)
- NexusOne (2)
- OAuth (1)
- Open source 開放原始碼 (1)
- OpenID (1)
- OS (1)
- OS:Windows (33)
- PHP (49)
- PHP:GTK (2)
- PHP:PEAR (1)
- PHP:PECL (3)
- PHP:ZendFramework (4)
- PostgreSQL (1)
- PPPoE (1)
- RegularExpressions (2)
- Security (11)
- Sphinx (2)
- SQLite (1)
- TCP (1)
- Ubuntu (1)
- UDP (1)
- Usability (2)
- Virtaul PC (1)
- Wii (2)
- XML (1)
- Yahoo (2)
- Yahoo:BBAuth (1)
- Yahoo:YUI (1)
- Youtube (1)
- 不如賣雞排 (2)
- 不願役 (33)
- 中文處理 (1)
- 圖 (5)
- 媒體 (2)
- 影片 (1)
- 影音 (19)
- 思 (8)
- 攝 (9)
- 政 (7)
- 敗 (2)
- 漫畫 (5)
- 生活 (34)
- 硬體設備 (13)
- 網站開發 (16)
- 網路 (8)
- 英文 (3)
- 貓 (2)
- 資安 (1)
- 趣 (29)
- 軟體 (12)
- 遊記 (8)
- 運動 (2)
- 關於我 (1)
- 電影 (10)