- Targetting for a 192.168.1.0/24 network.
- DNS server is 192.168.1.3.
- IPv4 example only.
Feel free to adjust as desired.
Install required modules:
sudo yum install bind bind-utilsPrepare directory to store your DNS zone information:
sudo chmod 755 /etc/namedEdit BIND's root configuration:
sudo mkdir /etc/named/zones
sudo vi /etc/named.confWith the following adjustments:
...
options {
listen-on port 53 { 127.0.0.1; 192.168.1.3; };
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; 192.168.1.0/24; }
...
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.insideSet the following contents:
zone "dns" {
type master;
file "/etc/named/zones/db.inside";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "/etc/named/zones/db.1.168.192";
};
Create your inside zone file:
sudo vi /etc/named/zones/db.insideSet the following contents and add your custom domains:
$TTL 864000Create your inside reverse zone file:
@ 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 192.168.1.3
test1.inside. IN A 192.168.1.10
test2.inside. IN A 192.168.1.11
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 864000Configure BIND for IPv4 only by opening the following file:
@ 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.
3 IN PTR dns.inside.
10 IN PTR test1.inside.
11 IN PTR test2.inside.
sudo vi /etc/sysconfig/namedAnd adding the following line at the bottom:
OPTIONS="-4"Allow DNS through your local firewall:
sudo firewall-cmd --zone=public --add-service=dns --permanentRestart BIND:
sudo firewall-cmd --reload
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 @192.168.1.3
nslookup dns.inside 192.168.1.3
2 comments:
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
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.
Post a Comment