PuTTY SSH: IP:XXX.XXX.XXX.XXX Port:N(8866) Protocol:SSH login as:user(L:admin) admin@XXX.XXX.XXX.XXX’s password:pwd [admin@ServerName admin]$su –l Password:rootpwd [root@ServerName root]#vi /etc/named.conf { options ( directory "/var/named(指定解析文件放置目录)"; ); ... zone "demodns.com(网络域名)" IN { type master; file "demodns(解析文件名 L:/var/named/)"; }; } [root@ServerName root]#ls /var/named [root@ServerName root]#vi /var/named/demodns(要修改的解析文件名) [root@ServerName root]#/etc/rc.d/init.d/named restart (重起生效) [root@ServerName root]#exit Over! Ps:Vi 指令 A:insert :w!:寫入檔案 :wq!:寫入及離開 :指令磨式 :/尋找指令 Dd刪一行
Linux DNS Server 备忘操作
最新推荐文章于 2024-11-06 16:52:36 发布