網頁

2020年1月27日 星期一

How to Install and Configure DNS on RHEL 8

DNS-Domain Name Service(Domain Name Server),用於管理與解析域名與IP位址對應關係的技術,將域名(FQDN,Fully Qualified Domain Name,FQDN=Hostname+DomainName)解析為IP位址,稱為正向解析;將IP位址解析為域名,稱為反向解析。

DNS域名解析服務採用類似階層式(Hierarchy)結構來記錄域名與IP位址之間的對應關係,進而形成一個分佈式或分散式的資料庫。

基本上常見的DNS Server有三種類型:
  • Master,管理維護被授權區域(Zones)記錄與域名查詢請求。
  • Slave,複製來自Master被授權區域(Zones)記錄副本與分散域名查詢請求。
  • Cache-Only,域名查詢請求。
Master DNS Server安裝DNS套件(使用yum)


確認安裝完成無誤


設定/etc/named.conf主配置檔案


變更前內容


變更後內容


啟動named服務與確認狀態


設定/etc/named.rfc1912.zones配置內容




本例假設域名為infocloud.com,新增正向解析區域(Zone)
IP網段為192.168.10.0,新增反向解析區域(Zone)


於/var/named/下新增與配置正向及反向解析配置檔案內容


配置infocloud.com.zone正向解析配置檔案內容


請務必留意句點(.)位置


配置192.16.10.arpa反向解析配置檔案內容


請務必留意句點(.)位置


使用nslookup工具測試正向及反向解析結果


2020年1月18日 星期六

如何使用RHEL8 DVD(ISO檔案)創建本地YUM Repository

因為Local YUM Repository存放著rpm套件,可以做為RedHat或CentOS進行軟體安裝及系統更新的來源。同時也能節省從Internet下載的等待時間及頻寬消耗。

RHEL 8由兩個主要部分構成:BaseOS及AppStream。

  • BaseOS
Content in the BaseOS repository is intended to provide the core set of the underlying OS functionality that provides the foundation for all installations. This content is available in the RPM format and is subject to support terms similar to those in previous releases of Red Hat Enterprise Linux.
  • AppStream
Content in the AppStream repository includes additional user-space applications, runtime languages, and databases in support of the varied workloads and use cases. Content in AppStream is available in one of two formats - the familiar RPM format and an extension to the RPM format called modules.

新增來源並掛載



確認掛載內容



新增*.repo檔案,檔名可自行命名



baseurl須提供正確完整路徑(留意大小寫),gpgcheck可為0或1,若為1時,須提供gpgkey檔案正確完整路徑,0時可忽略。






清除與建立YUM快取



確認repo檔案是否正確



安裝示範

2020年1月6日 星期一

輕鬆開啟Windows 10上帝模式(God Mode)

開啟Windows 10上帝模式(God Mode):


1. 確認使用者帳戶具有管理員相等權限,若無建議切換至系統管理員。

2. Windows 10桌面空白處執行滑鼠右鍵並點擊新增>資料夾。

 

3. 將新資料夾命名為GodMode.{ED7BA470-8E54-465E-825C-99712043E01C},然後按下enter/return鍵確認。當然名稱亦可隨喜好自行命名。



4. 部分內容顯示。