#!/bin/bash
# This script configure bind on your centos server
wget ftp://download.anisa.co.ir/Course/LPIC-2/named.conf
wget ftp://download.anisa.co.ir/Course/LPIC-2/iran.ir.db
cp -f named.conf  /etc
cp -f iran.ir.db  /var/named
echo "nameserver 127.0.0.1" > /etc/resolv.conf
chattr +i /etc/resolv.conf
systemctl restart named
systemctl enable named 
systemctl stop firewalld
systemctl disable firewalld
dig mx iran.ir
