0% found this document useful (0 votes)
32 views3 pages

DNS and Apache Setup for bisa.com

The document details the configuration of a DNS, web, and file server on a single machine using Bind9, Apache2, and Filezilla. Key steps include configuring the network interface, installing and configuring Bind9 to serve the DNS zone for bisa.com, editing Apache2 configuration to serve the 'uiux' folder content on the domain, and using Filezilla to transfer the folder to the server.

Uploaded by

yudabbatari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views3 pages

DNS and Apache Setup for bisa.com

The document details the configuration of a DNS, web, and file server on a single machine using Bind9, Apache2, and Filezilla. Key steps include configuring the network interface, installing and configuring Bind9 to serve the DNS zone for bisa.com, editing Apache2 configuration to serve the 'uiux' folder content on the domain, and using Filezilla to transfer the folder to the server.

Uploaded by

yudabbatari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

nano /etc/netplan/00-instaler-

config.yaml Ctrl + x
Y
network:
ethernets:
Enter
apt-get install bind9 ufw allow 53 enp0s3:
dhcp: false
addresses: [192.168.23.4] netplan apply
gateway4: 192.168.23.1
nameservers:
Ip a
search: [bisa.com]
addresses: [192.168.23.4, 192.168.23.1]
version: 2
nano /etc/bind/named.conf.local

zone “bisa.com” {
nano /etc/resolv.conf nano /etc/hosts
type master;
file “/etc/bind/db.bisa”; cp /etc/bind/db.local /etc/bind/db.bisa
nameserver 192.168.23.4 127.0.0.1 localhost
};
nameserver 192.168.23.1 127.0.1.1 yuda cp /etc/bind/db.127 /etc/bind/db.192
option edns0 192.168.23.4 bisa.com
zone “23.168.192.in-addr.arpa” {
search bisa.com
type master;
file”/etc/bind/db.192”;
};
nano /etc/bind/db.bisa nano /etc/bind/db.192

@ IN SOA ns.bisa.com. root.bisa.com. @ IN SOA ns.bisa.com. root.bisa.com.

@ IN NS ns.bisa.com. @ IN NS ns.bisa.com.
@ IN A 192.168.23.4 4 IN PTR ns.bisa.com.
@ IN MX 10 mail.bisa.com. 4 IN PTR www.bisa.com
ns IN A 192.168.23.4 4 IN PTR mail.bisa.com
www IN CNAME ns
mail IN A 192.168.23.4

nano /etc/bind/named.conf.options
nslookup bisa.com
forwarders { nslookup www.bisa.com
systemctl restart bind9.service Domain Name System (DNS)
192.168.1.1; nslookup mail.bisa.com
8.8.8.8; nslookup 192.168.23.4
};
ls

cp 000-default.conf bisa.conf
apt-get install apache2 ufw allow http cd /etc/apache2/sites-available
ls

Cari dan sesuaikan menjadi seperti ini


nano bisa.conf

<VirtualHost *:80>
ServerName bisa.com a2ensite bisa.conf cd
ServerALias www.bisa.com
ServerAdmin [email protected] /etc/init.d/apache2 restart enter
DocumentRoot /var/www/html/uiux
</VirtualHost>

testing pada computer


local terlebih dahulu
dengan cara :
network host-only adapte
Gunakan filezilla untuk memindahkan
Setelah berhasil masuk
Folder uiux sejeniskan ip
Via ssh on filezilla cd /nama_user
Ls
Masukan host : 192.168.23.4 address 192.168.23.5
Drag n drop folder ui ux ke
Username : nama_user_server subnet 255.255.255.0
Dalam folder cp –r uiux /var/www/html
Password : xxxxxx gateway 192.178.23.1
user
Port : 22 dns 192.168.23.4

panggil melalui
google chrome
bisa.com

Web Server (apache2)

You might also like