How to Make DNS Server and FTP Server on Linux Ubuntu 10.04 or Debian Linux

How to Make DNS Server and FTP Server on Linux Ubuntu 10.04 or Debian Linux is very easy as below :

How to Make DNS Server and FTP Server on Linux Ubuntu 10.04 or Debian Linux New

A. DNS SERVER

1 . The first step Install Bind DNS Server
sudo apt-get install bind9

2 . Upon entry into direkt bind installed in the directory /etc
cd /etc /bind

3 . Copies db.local be db.ekso.net (adjust with the domain that you create )
cp db.local db.ekso.net

4 . The Edit files via terminal
sudo nano db.ekso.net

5 . Change its contents into (adjust your server's IP address and the domain name that you create ) :
$ TTL 604800
@ IN SOA ns.ekso.net. root.ekso.net. (
210 911 ; serial
604800 ; refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.ekso.net .
@ IN A 192.168.2.1
ns IN A 192.168.2.1
@ IN AAAA :: 1
www IN CNAME ns
ftp IN CNAME ns

6 . Copy db.ekso.net be db.ip_ekso.net
cp db.ekso.net db.ip_ekso.net

7 . Edit using a text editor
sudo nano db.ip_ekso.net
8 . Change it be ( IP and domain adjust according to your needs ) :
$ TTL 604800
@ IN SOA ns.ekso.net. root.ekso.net. (
2 ; serial
604800 ; refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.ekso.net .
100 IN PTR ns.ekso.net .
ns IN A 192.168.2.1
@ IN AAAA :: 1
www IN CNAME ns
ftp IN CNAME ns

9 . Open and browse the list of DNS in the resolv.conf file
sudo nano /etc /resolv.conf
Change contents:
search ekso.net
nameserver 192.168.2.1

10 .  open and edit files Named.conf.local in the folder /etc/bind
sudo nano /etc/bind/named.conf.local
change it and save it :
zone " ekso.net " {
type master ;
file "/etc/bind /db.ekso.net" ;
} ;
zone "2.168.192.in-addr.arpa" {
type master ;
file "/etc/bind/db.ip_ekso.net " ;
} ;

11 . The Edit hosts
sudo nano /etc /hosts file , add it as below
127.0.0.1 localhost
192.168.2.1 ekso.net

12 . Configuring IP Domain Forwarders
sudo nano /etc/bind /named.conf.options
uncheck the double slash ( / / ) in the forwarders , it functions to activate .

            forwarders {
     192.168.2.1 ;/ / IP address that we make
     } ;
13 . Restarting service that actively bind
   sudo /etc/init.d/bind9 restart

14 . When finished trying to do checks on domains created ping
   ping www.ekso.net

15 . If successful will appear REPLY .... TTL .


B. FTP SERVER

1 . Setting FTP Server
· Install package ftp with vsftpd package name
# Apt-get install vsftpd
· Configure the package vsftpd.conf
# Nano /etc/vsftpd.conf
· Add at the bottom of its own configuration
anonymous_enable = NO
local_enable = YES
write_enable = YES
anon_upload_enable = yes
anon_mkdir_write_enable = yes
· Run the configuration by restarting
# /etc/init.d/vsftpd restart

2 . To try typing in the browser client
ftp.ekso.net