0% found this document useful (1 vote)
206 views1 page

IP and DNS Configuration Guide

The document provides instructions for configuring IP addresses, installing and configuring DHCP, DNS, web, and proxy servers on a Linux server. It includes commands to set a static IP address, install DHCP and DNS server software, edit configuration files, copy files to locations, restart services, and install and configure an Apache web server and Squid proxy server. Key steps are configuring IP addresses and interfaces, installing DHCP and DNS servers, editing zone files, copying files to locations, installing Apache and editing the index.html file, and installing and configuring Squid proxy server.

Uploaded by

Redna Ambar Sari
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 (1 vote)
206 views1 page

IP and DNS Configuration Guide

The document provides instructions for configuring IP addresses, installing and configuring DHCP, DNS, web, and proxy servers on a Linux server. It includes commands to set a static IP address, install DHCP and DNS server software, edit configuration files, copy files to locations, restart services, and install and configure an Apache web server and Squid proxy server. Key steps are configuring IP addresses and interfaces, installing DHCP and DNS servers, editing zone files, copying files to locations, installing Apache and editing the index.html file, and installing and configuring Squid proxy server.

Uploaded by

Redna Ambar Sari
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
  • Web and Network Details
  • Administrator and Support Contacts
  • Contact Information and Email Addresses

KONFIGURASI IP ADDRESS apt cups forward pm-utils software-center

root@server:# nano /etc/network/interfaces apt-xapian-index debconf gdm postgresql


root@www:/var/cache# nano reverse
root@www:/var/cache# cd /etc/bind
# the primary network interface root@www:/etc/bind# dir
auto eth0 [Link] [Link] [Link]-zones zones.rfc1918
iface eth0 inet static db.0 [Link] [Link]
address [Link] db.127 [Link] [Link]
db.255 [Link] [Link]
netmask [Link]
root@www:/etc/bind# nano db.255
network [Link] root@www:/etc/bind# cp db.255 /var/cache/forward
broadcast [Link] root@www:/etc/bind# cd /var/cache
gateway [Link] root@www:/var/cache# dir
analog bind dictionaries-common ldconfig reverse
kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)
apache2 binfmts fontconfig man samba
root@server:# /etc/init.d/networking restart apt cups forward pm-utils software-center
root@server:# ifconfig apt-xapian-index debconf gdm postgresql
root@server:# route –n root@www:/var/cache# nano forward
DHCP Server root@www:/var/cache# nano /etc/hostname
root@www:/var/cache# nano /etc/hosts
root@server:# apt-get install dhcp3-server
root@www:/var/cache# cd bind
root@server:# nano /etc/dhcp/[Link] root@www:/var/cache/bind# dir
forward reverse
#... root@www:/var/cache/bind# /etc/init.d/bind9 restart
Stopping domain name service...: bind9 waiting for pid 1323 to die.
Subnet [Link] netmask [Link]
Starting domain name service...: bind9.
range [Link] [Link] root@server:# nslookup www. [Link].
option domain-name “[Link]”; root@server:# nslookup [Link]
option domain-name-servers [Link] root@server:# nslookup mail. [Link].
option routers [Link]
option broadcast-address [Link]
default-lease-time 600; WEB SERVER
max-lease-time 7200;
root@server:# apt-get install apache2
} root@server:# nano /var/www/[Link]
#...
root@server:# nano /etc/default/isc-dhcp-server <html>
INTERFACES=”eth0 eth1” <head>
<title>
root@server:# /etc/init.d/dhcp3-server restart (kalau tidak bisa, ketik yg dibawah ini)
SMK... BISA!!!
root@server:# /etc/init.d/isc-dhcp-server restart </title>
</head>
INSTALL & KONFIGURASI DNS SERVER <body>
root@server:# apt-get install bind9 bind9-doc dnsutils <p align="center">
<font face="verdana" size="5" color="green">
root@server:# nano /etc/bind/[Link]-zones
YAYASAN PONDOK PESANTREN DARUL MA'ARIF
</font>
zone “[Link]” { <br><font face="pristina" size="5" color="#ff0000"><b> SMK DARMA Plus </b></font></br>
type master; <font face="verdana" size="5" color="blue"> Payaman Solokuro Lamongan </font>
file “/var/cache/bind/forward”; </p>
<p><p>
}; <p align="center">
Zone “[Link]” { <img src='[Link]' widht="190" height="190">
type master; <br></br>
file “/var/cache/bind/reverse”; <font face="verdana" size="4">
Nama:Lailatul Magfiroh
};
</font>
#... </body>
Kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar) </html>
root@server:# cp /etc/bind/[Link] /var/cache/bind/forward root@server:#/etc/init.d/apache2 restart
root@server:# nano /var/cache/bind/forward CARA COPYPASTE LOGO
root@www: # cp /home/smkdarmaplus/[Link] /var/www/[Link]
$TTL 604800
@ IN SOA [Link]. root. [Link]. ( root@www: # nano /var/www/[Link]
1 ; Serial hasil <img src='[Link]' widht="190" height="190">
604800 ; Refresh root@www: # cd /
86400 ; Retry
2419200 ; Expire root@www: # cd /var/www
604800 ; Negative Cache TTL root@www: /var/www # ls
; root@www: /var/www # chmod 777 [Link]
@ IN NS server. [Link].
@ IN A [Link]
Server IN A [Link]
www IN CNAME server. [Link]. PROXY SERVER
mail IN CNAME server. [Link]. root@server:# apt-get install squid
root@server:# nano /etc/squid/[Link]
kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)
root@server:# cp /etc/bind/db.127 /var/cache/bind/reverse  ctrl+w: cari dan tambahkn script berikut:
http_port 3128 transparent
root@server:# nano /var/cache/bind/reverse
cache_mem 16 mb
cache_mgr lailatulmagfiroh@[Link]
$TTL 604800 visible_hostname [Link]
@ IN SOA [Link]. [Link]. (  ctrl+w: cari dan tambahkn script berikut:
1 ; Serial acl connect method connect
604800 ; Refresh acl url dstdomain “etc/squid/url”
acl key url_Regex -i “etc/squid/key”
86400 ; Retry
http_access deny url
2419200 ; Expire http_access deny key
604800 ; Negative Cache TTL acl lan src [Link]/26
; http_access allow lan
@ IN NS server. [Link]. http_access allow all
1 IN PTR server. [Link].
1 IN PTR www. [Link]. Kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)
1 IN PTR mail. [Link]. root@server:#/etc/init.d/squid restart
root@server:# nano /etc/squid/url
Periksa kembali file yang terdapat pada folder bind untuk memastikan file sudah tercopy. [Link]
[Link]
root@www:/home/smkdarmaplus# cd /etc/bind root@server:# nano /etc/squid/key
root@www:/etc/bind# dir
[Link] [Link] [Link]-zones zones.rfc1918 google
db.0 [Link] [Link] yahoo
db.127 [Link] [Link] root@server:#/etc/init.d/squid restart
db.255 [Link] [Link]
root@www:/etc/bind# nano db.127
NB: untuk mengecek [Link] bisa muncul EROR
root@www:/etc/bind# cp db.127 /var/cache/reverse
root@www:/etc/bind# cd /var/cache Tekan Alt-tools-options-advanced-network-centang setting-manual proxy configuration
root@www:/var/cache# dir http proxy:[Link] port:3128
analog bind dictionaries-common ldconfig reverse
apache2 binfmts fontconfig man samba

KONFIGURASI IP ADDRESS 
root@server:# nano  /etc/network/interfaces 
 
# the primary network interface 
auto eth0 
iface eth0

You might also like