2015年5月22日 星期五

Ubuntu 14.04.2 Server + BIND DNS Server + SIP DNS SRV settings

step 1.

Download Ubuntu Server 14.04.2 and install this system.
http://www.ubuntu.com/download/server


Installation process
To select the “DNS Server” service function.



step 2.

Install Webmin On Ubuntu 14.04 LTS using official repository
Add the webmin official repository:
Edit file /etc/apt/sources.list,

sudo nano /etc/apt/sources.list
 
Add the following lines:
 
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Add the GPG key:
 
sudo wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc

Update the sources list:
 
sudo apt-get update

Install webmin using the following command:
 
sudo apt-get install webmin

Allow the webmin default port “10000” via firewall, if you want to access the webmin console from a remote system.
 
sudo ufw allow 10000

Access Webmin console

Open up your browser and navigate to the URL https://ip-address:10000/. The following screen should appear. Enter the user name and password to log in to webmin console.


step 3.

使用 Webmin方式來設定DNS Server

設定 Bind 8 可以接受外部連線及轉送查詢的伺服器。
「伺服器」->「BIND 8 DNS 伺服器」->「Edit Config File」->/etc/bind/named.conf.options
在此檔中加入
 
listen-on port 53 { any; };
forwarders {
        163.168.168.59;   //base DNS IP
        8.8.8.8;  //google DNS IP

        };
    allow-query {
        any;
        };




設定區域預設值

「伺服器」->「BIND 8 DNS 伺服器」->「區域預設值」
「預設的區域設定」->「允許從 ... 的查詢」點擊「監聽」及輸入 [any]
 






建立一個新的主控區域-正向
輸入管理網域名稱 test.local

 

建立 Address 紀錄(位址)




 增加 Address 紀錄
 

step 4.

使用nslookup指令查詢

nslookup
server "DNS Server IP"
set type=srv
_sip._udp.test.local
 






沒有留言:

張貼留言

Ubuntu Libreoffice add Chinese language

  sudo apt-get install libreoffice sudo apt-get install libreoffice-l10n-zh-tw libreoffice-help-zh-tw   如要新增簡體中文則輸入下方指令: sudo apt-get instal...