Changes

Jump to: navigation, search

SRT210 Lab 4

1,856 bytes added, 00:42, 29 January 2019
Configuration
directory "/var/named/";
allow-query {any;};
forwarders { 142208.20467.1222.2222; };
};
The "ls -lZ" command lists the file context.
=== Zone file ===
Now edit '''/var/named/mydb-for-yoursenecaid-ops''' and enter the following:
 
<pre>
$TTL 3D
@ IN SOA host.yoursenecaid.ops. hostmaster.yoursenecaid.ops.(
2018042901 ; Serial
8H ; Refresh
2H Retry
1W ; Expire
1D ; Negative Cache TTL
);
@ IN NS host.yoursenecaid.ops.
c7host IN A 192.168.210.1
</pre>
 
Again, here's the [http://www.zytrax.com/books/dns/ch8/ reference documentation] for records in this file. Specifically pay attention to:
 
* '''A''' records
* '''NS''' records
* '''SOA''' records
 
Now that your DNS server (bind, a.k.a. named) is configured:
 
# Start the '''named''' service with the '''systemctl''' command.
# Check that the ''named'' service is running using the '''ps ax''' command (perhaps combined with '''grep'''), and separately, the '''systemctl''' command (if necessary), or check the '''/var/log/messages''' file for troubleshooting purposes.
# Once you are certain that the ''named'' service had started and runs without errors, then set it to '''start automatically''' (i.e. enable the named service) when this virtual machine boots.
# Configure c7host to use lin2 as the DNS server. You can always change that back if you need internet access and your DNS server is broken:
#* Edit the ifcfg file for your interface on c7host (/etc/sysconfig/network-scripts/ifcfg-ens33) and add <code>PEERDNS=NO</code> and <code>DNS1=192.168.210.12</code>
#* Bring your interface down and back up using the ifdown and ifup commands.
# Now that you know the service works, '''add the resource records necessary for it to provide forward lookups of the other machines in your virtual network''' (hint: You should only need two more records) and restart the service.
= Lab completion =

Navigation menu