Saturday, September 12, 2015

BIND Example for a Local Network with CentOS 7

Steps to setup a DNS server with BIND on CentOS 7. These steps assume you already have a CentOS 7 server up-and-running. Other notes about this example:
  • Targetting for a network.
  • DNS server is
  • IPv4 example only.
Feel free to adjust as desired.

Install required modules:
sudo yum install bind bind-utils
Prepare directory to store your DNS zone information:
sudo chmod 755 /etc/named
sudo mkdir /etc/named/zones
Edit BIND's root configuration:
sudo vi /etc/named.conf
 With the following adjustments:
options {
        listen-on port 53 {;; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { localhost;; } 
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
include "/etc/named/named.conf.inside";
Create your new custom named configuration file:
sudo vi /etc/named/named.conf.inside
 Set the following contents:
zone "dns" {
    type master;
    file "/etc/named/zones/db.inside";
zone "" IN {
    type master;
    file "/etc/named/zones/db.1.168.192";
Create your inside zone file:
sudo vi /etc/named/zones/db.inside
Set the following contents and add your custom domains:
$TTL  864000
@   N  SOA  dns.inside. root.inside (
        3       ; Serial
        864000  ; Refresh
        86400   ; Retry
        2592000 ; Expire
        864000  ; Negative Cache TTL
; Name servers (NS).
@             IN  NS dns.inside.

; Local servers.
dns.inside.   IN  A
test1.inside. IN  A
test2.inside. IN  A
Create your inside reverse zone file:
sudo vi /etc/named/zones/db.1.168.192
Set the following contents (adjust accordingly based on settings set in your db.inside file):
$TTL  864000
@   N  SOA  dns.inside. root.inside (
        3       ; Serial
        864000  ; Refresh
        86400   ; Retry
        2592000 ; Expire
        864000  ; Negative Cache TTL

; Name servers (NS).
@          NS dns.inside.

; Local servers.
   IN  PTR  dns.inside.
10   IN  PTR  test1.inside.
11   IN  PTR  test2.inside.
 Configure BIND for IPv4 only by opening the following file:
sudo vi /etc/sysconfig/named
And adding the following line at the bottom:
Allow DNS through your local firewall:
sudo firewall-cmd --zone=public --add-service=dns --permanent
sudo firewall-cmd --reload
 Restart BIND:
sudo systemctl restart named
(optional) Troubleshoot by invoking the following:
sudo tail -f /var/log/messages
Test by invoking the any of the following commands:
dig dns.inside @ 
nslookup dns.inside


nannykaigler said...

Casinos Near Casinos & Casinos - Mapyro
Casinos with 경상북도 출장마사지 Casinos 포항 출장안마 Near Casinos Near Casinos in Illinois Casinos 상주 출장안마 Near Me · 1. Barstool Casino | Near Me · 2. Hollywood 안산 출장샵 Casino in 고양 출장마사지 Joliet | Near Me · 3. Horseshoe Casino

Anonymous said...

Skill activities may embrace darts, bowling and pool tournaments. However, "on line casino nights" don't normally embrace activities based on the result result} of a player's talent, however quite the luck of the draw or another chance event. Each state determines sort of|what kind of} gambling it permits inside its borders, where the gambling can be situated, and who may gamble. Each state has enacted totally different laws pertaining to these matters. The states even have differing authorized gambling ages, with some states requiring the same minimal age each type|for all sorts} of gambling, while for others, it is dependent upon by} the exercise. For example, in New Jersey, an 18-year-old should buy a lottery ticket or guess on a horse race, however can't enter a 바카라사이트 on line casino till age 21.

sifv9p2xbh said...

In fabrication, abrasion is done in a controlled manner which gradually removes excess material Aquarium Heater from the workpiece. Planing is a machining course of that removes excess material by moving a cutting device in opposition to a stationary stock in a reciprocating movement. This course of is used for flattening or creating straight contours on the surface of a large workpiece. This course of removes material utilizing a rotating cutting device with multiple of} cutting tips. Face milling has the cutting tips oriented on one aspect of the cutter. Peripheral milling, the opposite hand|however|then again}, has the cutting tips oriented radially outward alongside the round fringe of the cutter.

tzogmhw4kq said...

At the eleventh hour of a marathon session, lawmakers handed Massachusetts sports betting in August 2022. The law permits online sports betting and retail betting within the state, however doesn't designate a launch day. Reports 퍼스트카지노 point out late 2022 or even early 2023 most likely going} for MA sports betting websites to go live. By licensing varied casinos and sportsbooks, the KGC generates nice deal of|quite so much of|a substantial amount of} income for the Mohawk community of Kahnawake. The KGC was heavily opposed to any attempts to legalize single-game betting outcome of} their worry of being cut out of the image if provinces decided to manage and license sportsbooks. Canada’s fifth-most populous province added single-game wagering to its online choices on August 27, 2021.