DNS 將 Domain 分成內外部不同解析(view)

DNS 的設定, 最好將內外部的 DNS 分開,

不然被人 dig 一下, 就跟把整個架構都公開也一樣意思了....

正好看到一篇不錯的文章, 來介紹 DNS View setting.

閱讀全文〈DNS 將 Domain 分成內外部不同解析(view)〉

Unix 基本指令操作

IO Redirection: File Descriptors
file descriptor 0 is associated with STDIN, 1 with STDOUT, and 2 with STDERR.
ex: 2>&1 將 錯誤訊息(STDERR) 直接導向 標準輸出(STDOUT)
ex: 2>& > /tmp/output
ex: >& > /tmp/output (標準輸出 輸入都一起導到 /tmp/output file)

< input file : read standard input from file
> output file : write standard output to file
>> output file: append standard output to file
>& error file : write error message to file
| command2 : pipe output as input for command2

ex: ls 2>/dev/null 1>/tmp/output
& => 指定到 &1 的變數(不然會變成 1 的 file)

閱讀全文〈Unix 基本指令操作〉