Install Bind dengan perintah
$sudo apt-get install bind9
edit file named.conf.local. Tambahkan sintak berikut
zone “belong.com” {
type master;
file “/etc/bind/db.belong.com”;
};
zone “0.168.192.in-addr.arpa” {
type master;
file “/etc/bind/0.168.192.in-addr.arpa”;
};
Edit file named.conf.options
modifikasi pada baris yang bertuliskan forwarders. ini ditujukan untuk request query yang tidak terdapat di dns kita.
forwarders {
202.134.0.155;
};
Tambahkan file definisi.
buat file yang kita definisikan untuk domain yang telah ditambahkan.
Pada konfigurasi diatas kita membutuhkan file db.belong.com
sudo vi /etc/bind/db.belong.com
Tambahkan sintak yang diinginkan
@ IN SOA ns.belong.com. admin@belong.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.belong.com.
@ IN A 192.168.0.115
@ IN MX 192.168.0.116
ns IN A 192.168.0.118
adm IN A 192.168.0.117
Tambahkan juga file Reverse nya
sudo vi /etc/bind/0.0.168.192.in-addr.arpa
@ IN SOA ns.belong.com. admin@belong.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.admin.belong.com.
115.200 PTR belong.com.
Restart deh bind nya
sudo /etc/init.d/bind9 restart
untuk testing apakah domain yang dibuat sudah jalan apa belum bisa dengan menggunakan nslookup
selamat mencoba
There are severals ways to mount samba share folders into OSMC. the first step is to turn on the SSH Services in your OSMC go to setting OSMC and choose services by default OSMC SSH will use osmc as its default user and osmc as its default password. second step is to share the folder(s) you want to share to osmc to do this just do a share configuration in windows, there are many links to provide this tutorial. third step is to mount the shares folder(s) to the OSMC. forth step is to make sure that the cifs-util module are loaded to the osmc fifth step is to mount them you can use the mount command or you can mapped the samba folders through fstab to do manual mount type in: mount -t cifs -o username=Administrator,password=Password // / /mnt/ or you can edit the /etc/fstab //source_ip/share_folder /target_directory cifs username=YOURUSERNAME,password=YOURPASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777 That's it but when osmc rebooted, you might want to ...
Comments