Package Name: bind
Service Name: named
IP Address : 192.168.1.4
Port: 53
Configuration File: /etc/named.conf
Directory: /var/named
DNS Name: ritesh.local
Computer Name: computer-1.ritesh.local
Example: computer-1.ritesh.local - FQDN
- Install Package
[root@computer-1 ~]# yum install bind
[root@computer-1 ~]# hostnamectl set-hostname computer-1.ritesh.local
[root@computer-1 ~]# cat /etc/hosts
192.168.1.4 computer-1.devopsservice.local computer-1
[root@computer-1 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search ritesh.local
nameserver 192.168.1.4
[root@computer-1 ~]#
[root@computer-1 ~]# vi /etc/named.conf
listen-on port 53 { 192.168.1.4; };
allow-query { any; };
[root@computer-1 ~]# vi /etc/named.rfc1912.zones
zone "devopsservice.local" IN {
type master;
file "ritesh.local.forward";
allow-update { none; };
};
[root@computer-1 ~]# cd /var/named/
[root@computer-1 ~]# vi ritesh.local.forward
$TTL 1D
@ IN SOA computer-1.ritesh.local. root.ritesh.local. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
IN NS computer-1.ritesh.local.
computer-1 IN A 192.168.1.4
windows IN A 192.168.1.3
[root@computer-1 ~]# chown root:named ritesh.local.forward
[root@computer-1 ~]# systemctl start named
No comments:
Post a Comment