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

Week 12

This document provides a step-by-step guide for setting up a Domain Name System (DNS) server and a File Transfer Protocol (FTP) server. It includes instructions for installing server software, configuring settings, creating zone files and users, and testing the servers. Proper configuration and security measures are emphasized for reliable operation.

Uploaded by

tejas.j.h8055
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)
4 views3 pages

Week 12

This document provides a step-by-step guide for setting up a Domain Name System (DNS) server and a File Transfer Protocol (FTP) server. It includes instructions for installing server software, configuring settings, creating zone files and users, and testing the servers. Proper configuration and security measures are emphasized for reliable operation.

Uploaded by

tejas.j.h8055
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
You are on page 1/ 3

ACTIVITY – 12

Steps in DNS and FTP Server Setup

1. Introduction

Setting up a Domain Name System (DNS) server and File Transfer Protocol (FTP) server
is essential for managing domain resolution and file transfers in a network. This report
provides a brief step-by-step guide to setting up both servers.

2. Steps to Set Up a DNS Server

2.1 Install DNS Server Software

Most DNS servers use BIND (Berkeley Internet Name Domain) on Linux or Windows
DNS Server on Windows.

 Linux:
 sudo apt update
 sudo apt install bind9
 Windows: Install DNS Server role via Server Manager.

2.2 Configure DNS Server

 Modify the BIND configuration file (/etc/bind/named.conf.options).


 Set up forwarders to external DNS (e.g., Google’s 8.8.8.8).

2.3 Create a Zone File

 Define the domain name and map it to an IP address.


 Example zone file (/etc/bind/db.example.com):
 $TTL 86400
 @ IN SOA ns1.example.com. admin.example.com. (
 2024021001 ; Serial
 3600 ; Refresh
 1800 ; Retry
 604800 ; Expire
 86400 ; Minimum TTL
 )
 @ IN NS ns1.example.com.
 ns1 IN A 192.168.1.1
 www IN A 192.168.1.2

2.4 Restart and Test DNS Server

 Restart the DNS service:


 sudo systemctl restart bind9
 Test using:
 nslookup www.example.com 127.0.0.1
 dig example.com

3. Steps to Set Up an FTP Server

3.1 Install FTP Server Software

Common FTP server software includes vsftpd (Linux) and FileZilla Server (Windows).

 Linux:
 sudo apt update
 sudo apt install vsftpd
 Windows: Download and install FileZilla Server.

3.2 Configure FTP Server

 Edit the FTP configuration file (/etc/vsftpd.conf for vsftpd):


 sudo nano /etc/vsftpd.conf

Key configurations:

o Enable anonymous access (optional): anonymous_enable=NO


o Enable local user access: local_enable=YES
o Allow write access: write_enable=YES
o Set chroot for security: chroot_local_user=YES
3.3 Create FTP Users and Set Permissions

 Add an FTP user:


 sudo useradd -m ftpuser -s /sbin/nologin
 sudo passwd ftpuser
 Set appropriate permissions:
 sudo chown ftpuser:ftpuser /home/ftpuser/

3.4 Restart and Test FTP Server

 Restart FTP service:


 sudo systemctl restart vsftpd
 Test using:
 ftp localhost

4. Conclusion

Setting up a DNS server enables domain name resolution, while an FTP server facilitates file
transfers. Both services require careful configuration and security measures to ensure smooth
operation. Regular testing and monitoring help maintain their reliability.

You might also like