Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[Oracle Database] Oracle RAC (2): DNS

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

[root@wallet03 ~] # yum install-y bind [root@wallet03 ~] # vi / etc/named.confoptions {listen-on port 53 {192.168.40.36;}; / * listen-on-v6 port 53 {:: 1;}; * / 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"; allow-query {any;}; recursion yes; dnssec-enable yes; dnssec-validation yes; / * Path to ISC DLV key * / bindkeys-file "/ etc/named.iscdlv.key" Managed-keys-directory "/ var/named/dynamic";}; zone "." IN {type hint; file "named.ca";}; zone "gscaifu.com" IN {type master; file "gscaifu.com.zone";}; include "/ etc/named.rfc1912.zones"; include "/ etc/named.root.key"; [root@wallet03 ~] # cd / var/named [root@wallet03 named] # cp-p named.localhost gscaifu.com.zone [root@wallet03 named] # vi gscaifu.com.zone$TTL 1D @ IN SOA @ rname.invalid. (0; serial 1D; refresh 1H; retry 1W; expire 3H) Minimum NS @ IN A 192.168.40.36wallet IN A 192.168.40.101wallet IN A 192.168.40.102wallet IN A 192.168.40.103 [root@wallet03 ~] # service named startGenerating / etc/rndc.key: [OK] Starting named: [OK] [root@wallet03 ~] # netstat-tunlp | grep namedtcp 0 0192.168.40.36 grep namedtcp 53 0.0.0.0 * LISTEN 2755/named tcp 0 0127.0.0.1 netstat 953 0.0.0.0 * LISTEN 2755/named Tcp 0 0:: 1 vi 953: * LISTEN 2755/named udp 0 0 192.168.40.36 2755/named [root@wallet01] # vi / etc/resolv.conf search gscaifu.comnameserver 192.168. 40.36 [root@wallet01 ~] # nslookup wallet.gscaifu.comServer: 192.168.40.36Address: 192.168.40.36#53Name: wallet.gscaifu.comAddress: 192.168.40.101Name: wallet.gscaifu.comAddress: 192.168.40.102Name: wallet.gscaifu.comAddress: 192.168.40.103 [root@wallet02 ~] # vi / etc/resolv.conf search gscaifu.comnameserver 192.168.40.36 [root@wallet02 ~] # nslookup Wallet.gscaifu.comServer: 192.168.40.36Address: 192.168.40.36#53Name: wallet.gscaifu.comAddress: 192.168.40.102Name: wallet.gscaifu.comAddress: 192.168.40.103Name: wallet.gscaifu.comAddress: 192.168.40.101

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report