DNS domain name configuration

The first step is to install
yum install bind.x86_64
yum install bind-chroot.x86_64

Step 2: Configuration file
vi /etc/named.conf
listen-on port 53 { any; };
allow - query { any; } ; ; Change the curly brackets to any;
dnssec-enable no; ; Change to this
dnssec-validation no; ;Change to this Step
3 : vi /etc/named.rfc1912.zones
add
zone “cyl.cn” at the end IN{
type master;
file “/var/named/cyl.cn.zone” ;
allow-transfer {192.168.200.2; }; ; This IP address is your own IP address
};

zone “200.168.192.in-addr.arpa” IN {
type master;
file “/var/named/192.168.200.arpa”;
allow-update { none; };
};
第四步:
cd /var/named

vi cyl.cn.zone is entered
in this file

$ TTL 86400
@ IN SOA cyl.cn admin.cyl.cn ( ;change the corresponding cyl.cn to your own
0 ;serial
1D ;refresh
1H ;retry
1W ;expire
3H ;minimun
)
@ IN NS 192.168.200.2. ; Change the ip address to your own IP
IN MX 10 mail.cyl.cn.
ns1 IN A 192.168.200.2
www IN A 192.168.200.2
ftp IN A 192.168.200.2
mail IN A 192.168.200.2
Then:
vi 192.168.200.arpa
inside Enter the following
$TTL 86400
@ IN SOA cyl.cn admin.cyl.cn (
2018043014 ;serial
1D ;refresh
1H ;retry
1W ;expire
3H ;minimun
)
@ IN NS 192.168.200.2.
;ns1 IN A 192.168.200.2
;www IN A 192.168.200.2
;ftp IN A 192.168.200.2
;mail IN A 192.168.200.2
2 IN PTR ns1.cyl.cn.
2 IN PTR www.cyl.cn.
2 IN PTR ftp.cyl.cn.
2 IN PTR mail.cyl.cn.
Next step:
Open Network and Sharing Center in Windows

Click Local Area Connection, click Properties, and then click Internet Protocol Version 4 (TCP/IPv4),
select Use the following DNS service, and enter 192.168.200.2 after the preferred DNS service below (this corresponds to your own linuxIP address)

Finally: enter service named restart in linux (two times in a row)
service vsftpd restart enter ftp://ftp.cyl.cn
in the address bar of my computer on windows (this one enters your own ftp address)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325529819&siteId=291194637