Question

Using Ubuntu, what are the commands for the following: Installing and running a DNS server (BIND9)...

Using Ubuntu, what are the commands for the following:

  1. Installing and running a DNS server (BIND9) in a chroot jail on your server with a non-root user.

  1. Configure your DNS server to be able to answer queries for the following FQDNs.  
    1. server.cis415.edu (Your Ubuntu Server’s IP)
    2. client1.cis415.edu (Client1’s IP)
    3. client2.cis415.edu (Client2’s IP)

Homework Answers

Answer #1
  • Bind is the most popular software and the most widely used Domain Name System (DNS) software on the Internet for providing DNS services. The name BIND stands for “Berkeley Internet Name Domain” and it’s an implementation of the DNS protocols.
  • A "jail" is a software mechanism for limiting the ability of a process to access resources outside a very limited area, and it's done with security in mind.A jail is created using the chroot() system call (named for "change root"), and it's given a directory name as a parameter. Once this call is made, the root - the top of the directory tree - for this process is changed from / to the directory given, and there is no way for the process to get outside this area.

1. Install Bind9 :

                      ehowstuff@ehowstuff:~$ sudo apt-get install bind9 -y

2. Setup and configure zone with the name of ehowstuff.local

          ehowstuff@ehowstuff:~$ sudo vim /etc/bind/named.conf.local

Add a DNS zone to BIND9. Edit named.conf.local as below :

          //include "/etc/bind/zones.rfc1918";
           zone "ehowstuff.local" {
             type master;
             file "/etc/bind/db.ehowstuff.local";
            };
      ~

3. Copy and Use an existing zone file as a template:

    ehowstuff@ehowstuff:/etc/bind$ sudo cp /etc/bind/db.local /etc/bind/db.ehow

Edit the new zone file db.ehowstuff.local.

   ehowstuff@ehowstuff:~$ sudo vim /etc/bind/db.ehowstuff.local

Change configuration as below :

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns.ehowstuff.local. root.ehowstuff.local. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      ns.ehowstuff.local.
ns      IN      A       192.168.1.49
box     IN      A       192.168.1.49

4. Any changes that you’ve made to the zone file BIND9 will need to be restarted before it to take effect:

   ehowstuff@ehowstuff:~$ sudo /etc/init.d/bind9 restart
 * Stopping domain name service... bind9                                            [ OK ]
 * Starting domain name service... bind9                                            [ OK ]

5. Make sure you own workstation or server pointing to dns server. In this case, this Ubuntu server pointed to itself since it’s running bind9.

      ehowstuff@ehowstuff:~$ sudo vim /etc/resolv.conf
      nameserver 127.0.0.1

6. Test bind9 server :

     ehowstuff@ehowstuff:~$ nslookup
     > set type=ns
     > ehowstuff.local
    Server:         127.0.0.1
    Address:        127.0.0.1#53
    ehowstuff.local nameserver = ns.ehowstuff.local.
 
ehowstuff.local nameserver = ns.ehowstuff.local.
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Create a very simple TCP Application in JAVA. You will create a client and a server....
Create a very simple TCP Application in JAVA. You will create a client and a server. The client must execute after you start the server. Here is what they will do. The client will read from the console a string that the users enters. This string will be the name of the user, let's say Bob. The client then sends the name, Bob, in an Object Stream, to the server. The server will receive this Object Stream and send to...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following commands do: dd, y3, p, :set cindent (1 pt) VIM exercises These exercises on the computer need to be repeated by each student in the pair. This is to ensure that both students understand how to get around in Linux!!! For this part of the lab, you will create a .vimrc file that will help you develop your C++ programs using VIM. First, we...
please can you make it simple. For example using scanner or hard coding when it is...
please can you make it simple. For example using scanner or hard coding when it is a good idea instead of arrays and that stuff.Please just make one program (or class) and explain step by step. Also it was given to me a txt.htm 1.- Write a client program and a server program to implement the following simplified HTTP protocol based on TCP service. Please make sure your program supports multiple clients. The webpage file CS3700.htm is provided. You may...
Using C# and Windows Forms (WinForms), design and implement a standalone desktop application that fulfils the...
Using C# and Windows Forms (WinForms), design and implement a standalone desktop application that fulfils the following requirements: 1. The user shall be able to enter the following values: a. Gross monthly income (before deductions). b. Estimated monthly tax deducted. c. Estimated monthly expenditures in each of the following categories: i. Groceries ii. Water and lights iii. Travel costs (including petrol) iv. Cell phoneand& telephone v. Other expenses 2. The user shall be able to choose between renting accommodation or...
Using the table provided below, what is the entropy change if 4.5 g of CaCO3(s) is...
Using the table provided below, what is the entropy change if 4.5 g of CaCO3(s) is placed in a container and allowed to decompose to CaO(s) and CO2(g) according to the following reaction? CaCO3(s) ⇔ CaO(s) + CO2(g) Substance S° (J/mol × K) CaCO3(s) 92.88 CaO(s) 39.75 CO2(g) 213.6 in J/K Note: Report your final answer to the correct number of significant figures and include the sign (+/-).
Create a 99% confidence interval for the mean using following data. Explain/show what you did to...
Create a 99% confidence interval for the mean using following data. Explain/show what you did to arrive are your answer. x 10 20 90 50 20 30 40 10 80 10
Using the following table what quantity of output should be the firm produce? explain your answer...
Using the following table what quantity of output should be the firm produce? explain your answer Q. TR. TC 1. $100. $50 2. 200. 110 3. 300. 180. 4. 400. 260 5. 500. 360 6. 600. 480
At 57.0 ∘C , what is the maximum value of Q needed to produce a non-negative...
At 57.0 ∘C , what is the maximum value of Q needed to produce a non-negative E value for the reaction SO42−(aq)+4H+(aq)+2Br−(aq)⇌Br2(aq)+SO2(g)+2H2O(l) In other words, what is Q when E=0 at this temperature? Express your answer numerically using two significant figures. 2)Calculate the pK=−log(K) at 25∘C for each of the following reactions (K is equilibrium constant). Pb(s)+2H+(aq)→Pb2+(aq)+H2(g) Cl2(g)+Sn2+(aq)→Sn4+(aq)+2Cl
1.) Perform the following multiplication using Booth’s algorithm: (You will receive full credit only if you...
1.) Perform the following multiplication using Booth’s algorithm: (You will receive full credit only if you show all your work)      13 x -13 (a) 27/4 Using paper pencil approach and (b) simulate how a machine does this job 2.)Perform the following division as directed: (a) 27/4 using non-restoring division algorithm // we need 4 quotient bits. (b) Using Newton-Raphson algorithm find 1/d when d=0.84 // show the results of the first 3 iterations 3.) A real-time computer system has...
Consider a harmonic wave with the following wave function: y=(12cm)cos(?4.5cmx??16st). What is the least amount of...
Consider a harmonic wave with the following wave function: y=(12cm)cos(?4.5cmx??16st). What is the least amount of time required for a given point on this wave to move from y = 0 to y = 12cm? Express your answer using two significant figures. t = s   
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT