配置DNS解析SCANIP手册
来源:互联网 发布:java开发常用工具 编辑:程序博客网 时间:2024/05/16 13:07
配置DNS解析SCANIP手册
1 hosts 配置
# public192.168.154.168 orarac1 orarac1.tops.com192.168.154.169 orarac2 orarac2.tops.com#private192.168.10.11 orarac1-priv orarac1-priv.tops.com192.168.10.21 orarac2-priv orarac2-priv.tops.com$vitual192.168.154.111 orarac1-vip orarac1-vip.tops.com192.168.154.121 orarac2-vip orarac2-vip.tops.com
2 编辑文件[root@orarac1 ~]# vi /etc/named.conf
添加DNS服务器实际IP
添加代码块
附上代码
zone "tops.com" IN {type master;file "tops.zone";allow-update {none;};};
3 在var/named 新建文件tops.zone,内容如下
[root@orarac1 named]# cat tops.zone
$TTL 86400@ IN SOA orarac1.tops.com. root.tops.com.(2013042201 ;Serial3600 ;Refresh1800 ;Retry604800 ;Expire86400 ;Minimum TTL)@ IN NS ora-scan.tops.com.ora-scan IN A 192.168.154.68ora-scan IN A 192.168.154.88ora-scan IN A 192.168.154.98
4 [root@orarac1 named]# vi /etc/resolv.conf
5 DNS测试功能
6 常用维护命令
[root@momdb1 named]# chkconfig named on
[root@momdb1 named]# service named restart
Stopping named: [ OK ]
Generating /etc/rndc.key: [ OK ]
Starting named: [ OK ]
[root@momdb1 named]# nslookup ora-scan.tops.com
Server: 10.10.12.161
Address: 10.10.12.161#53
Name: ora-scan.tops.com
Address: 10.10.12.88
Name: ora-scan.tops.com
Address: 10.10.12.98
Name: ora-scan.tops.com
Address: 10.10.12.68
7如果加上反向解析
[root@chd-db01 etc]# vi /etc/named.conf
zone "12.10.10.in-addr.arpa" IN { type master; file "fanxiang.zone"; allow-update { none; };};
注意 allow-query参数,要改成any,否则客户端解析报错
8 在/var/named 新增fanxiang.zone,参考下面文件。
$TTL 86400@ IN SOA chd-db01.tops.com. root.tops.com.(2013042201 ;Serial3600 ;Refresh1800 ;Retry604800 ;Expire86400 ;Minimum TTL)@ IN NS momdb-scan.tops.com.165 IN PTR momdb-scan.tops.com.166 IN PTR momdb-scan.tops.com.167 IN PTR momdb-scan.tops.com.161 IN PTR momdb1.tops.com.162 IN PTR momdb1.tops.com.
~
9 重启DNS服务,验证系统功能。
[root@momdb2 ~]# nslookup momdb-scan.tops.com
Server: 10.10.12.158
Address: 10.10.12.158#53
Name: momdb-scan.tops.com
Address: 10.10.12.165
Name: momdb-scan.tops.com
Address: 10.10.12.166
Name: momdb-scan.tops.com
Address: 10.10.12.167
[root@momdb2 ~]# nslookup 10.10.12.165
Server: 10.10.12.158
Address: 10.10.12.158#53
165.12.10.10.in-addr.arpa name = momdb-scan.tops.com.
10 客户端配置
[root@momdb2 ~]# vi /etc/resolv.conf
>Generated by NetworkManager >No nameservers found; try putting DNS servers into your> ifcfg files in /etc/sysconfig/network-scripts like so: >DNS1=xxx.xxx.xxx.xxx> DNS2=xxx.xxx.xxx.xxx >DOMAIN=lab.foo.com bar.foo.com*---- search tops.com #不加,可能无法解析域名nameserver 10.10.12.158
- 配置DNS解析SCANIP手册
- 搭建RAC时配置scanip的DNS环境
- 配置动态解析DNS
- 本机DNS解析配置
- DNS正向解析与反向解析配置
- DNS BIND 搭建域名智能解析DNS服务器之配置
- 配置RedHat Linux 5 DNS解析
- DNS具体配置(截图解析)
- Ubuntu中dns泛解析的配置
- DNS智能解析的搭建与配置
- linux dns正反向解析配置
- dns服务器的配置和解析
- Apache的配置,DNS解析,虚拟主机
- vsftpd的配置dns反向解析问题
- DNS主从服务器配置及案例解析
- 高速缓存DNS,配置DNS,域名规范,DNS更新,多向及反向解析配置
- DNS服务器的配置、DNS反解、主从DNS、动态域名解析
- DNS以及DNS解析
- request方法大全
- DOS命令大全---了解
- 测试
- WordPress 教程:在 WordPress 后台使用 ThickBox 制作弹出层
- 为什么要用 Node.js
- 配置DNS解析SCANIP手册
- Scala Cookbook读书笔记 Chapter 3.Control Structures 第二部分
- (WEB.JS)React离线(预)编译JSX
- Arm处理器与Linux的完美结合
- 通过egrep切割ifconfig后的IP地址
- response常用方法
- 从操作系统内核看Java非阻塞IO事件检测
- 数据库----(MySQL基本常见sql)
- 我读Batch Normalization