歡迎來到小豬圈!

Showing posts with label DNS. Show all posts
Showing posts with label DNS. Show all posts

2009-12-03

DNS 查詢除了走 UDP 外,還有 TCP 協定!

  • 如題,寫這篇是因為我用的 COMODO Firewall 裡,預設的規則是僅限走 UDP 的 DNS 查詢。

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

標籤分類

Labels

Google Analytics Tracking Code

About Me

My photo
Keelung, R.O.C, Taiwan
一個不學無術、混吃等死的傢伙…