Setup of DNS for hindi records

[root@podman html]# yum install bind bind-devel idn

[root@podman html]# vim /etc/named.conf 

[root@podman html]# idn2  राजू.com

xn--81b3b1br.com


[root@podman html]# cat  /etc/named.conf 

options {

listen-on port 53 { 127.0.0.1;192.168.122.71; };

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";

recursing-file  "/var/named/data/named.recursing";

secroots-file   "/var/named/data/named.secroots";

allow-query     { localhost;any; };

recursion yes;

dnssec-enable yes;

dnssec-validation yes;

bindkeys-file "/etc/named.root.key";

managed-keys-directory "/var/named/dynamic";

pid-file "/run/named/named.pid";

session-keyfile "/run/named/session.key";

};


logging {

        channel default_debug {

                file "data/named.run";

                severity dynamic;

        };

};


zone "." IN {

type hint;

file "named.ca";

};


zone "xn--81b3b1br.com" {

    type master;

    file "xn--example.com";

};



include "/etc/named.rfc1912.zones";

include "/etc/named.root.key";


[root@podman ~]# cd /var/named/

[root@podman named]# cp named.localhost  xn--example.com

[root@podman named]# cat xn--example.com 
$TTL 1D
@ IN SOA root.xn--81b3b1br.com. root.xn--81b3b1br.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS xn--81b3b1br.com.
A 192.168.122.71
AAAA ::1

xn--81b3b1br.com IN A 192.168.122.71

[root@podman named]# systemctl  restart named

[root@podman named]# cat  /etc/resolv.conf 
# Generated by NetworkManager
search example.com
nameserver 192.168.122.71
nameserver 8.8.8.8


[root@podman ~]# yum install httpd -y

[root@podman ~]# cat  /var/www/html/index.html 
मेरी वेबसाइट हिंदी में
[root@podman ~]# cat /etc/httpd/conf.d/raju.conf 
<VirtualHost *:80>
    ServerName xn--81b3b1br.com
    ServerAlias xn--81b3b1br.com
    DocumentRoot /var/www/html/
    ErrorLog /var/log/httpd/error.log
    CustomLog /var/log/httpd/access_log common
</VirtualHost>


[root@podman ~]# systemctl  restart httpd

open you web browser and test 



Comments

Popular posts from this blog

PCS Corosync Pacemaker Cluster Mariadb using NFS

How to install and configure node js and PM2 in rhel7

How to Create or Configure iSCSI Server and Clinet