「腾达签名」 - 解决苹果app/ipa/tf/ios企业超级签名下载掉签难题「腾达签名」

专注IOS苹果签名内测
解决APP签名下载难题

RedHat CentOS搭建DNS服务器正向解析

RedHat CentOS搭建DNS服务器正向解析-「腾达签名」

以下是基于RedHat 5或CentOS系统的正向解析(IP192.168.1.2域名为www.shuxun.wang)为保证建设成功请不要错过任何一个步骤,以下所写是详细步骤挨个执行命令也能保证成功!(反向解析步骤请参考下篇)

一.安装相关软件包:为保证顺利进行请按步骤先删除再重新安装所有软件包

[root@server ~]# rpm -qa | grep bind //查看bind相关软件包
[root@server ~]# rpm -e `rpm -qa | grep bind` --nodeps //删除相关软件包
[root@server ~]# mount /dev/cdrom /media/ //将系统光盘挂载到/media/
[root@server media]# cd /media/Server/ //进入/media/Server/目录
[root@server Server]# rpm -vih bind-* //再次安装相关软件包
[root@server Server]# rpm -vih caching-nameserver-9.3.3-7.el5.i386.rpm
[root@server Server]# service named start //重启named服务

二.修改主配置文件

[root@server Server]# cd /var/named/chroot/etc/ //进入/var/named/chroot/etc/目录
[root@server etc]# vim named.caching-nameserver.conf //修改主配置文件
----------------------------------------------------------------------
options {
    listen-on port 53 { any; }; //修改为any
    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";
    query-source port 53;
    query-source-v6 port 53;
    allow-query { any; }; //修改为any
};
logging {
    channel default_debug {
    file "data/named.run";
    severity dynamic;
    };
};
view localhost_resolver {
    match-clients { any; }; //修改为any
    match-destinations { any; }; //修改为any
    recursion yes;
    include "/etc/named.rfc1912.zones";
};
----------------------------------------------------------------------

三.修改主机配置文件的扩展文件

[root@server etc]# vim named.rfc1912.zones //修改主机配置文件的扩展名在最后一行添加
----------------------------------------------------------------------
zone "shuxun.wang" IN { //IN可有可无
    type master; //类型为主域
    file "shuxun.wang"; //域配置文件
};

四.建立shuxun.wang的域配置文件

[root@server etc]# cd /var/named/chroot/var/named/ //进入/var/named/chroot/var/named/目录
[root@server named]# cp named.local shuxun.wang //拷贝域配置文件
[root@server named]# vim shuxun.wang
--------------------------------------------------------------------
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
www IN A 192.168.1.2 //修改最后一行为...(此行)

--------------------------------------------------------------------
[root@server named]# bind-chroot-admin -s //自动设置组和权限
[root@server named]# service named restart //重启named服务

五.测试验证

[root@localhost ~]# nslookup //在本机验证解析成功
> www.shuxun.wang
Server: 192.168.1.2
Address: 192.168.1.2#53

Name: www.shuxun.wang
Address: 192.168.1.2

C:Documents and SettingsAdministrator>nslookup //在远端windows撒谎那个验证成功
*** Can't find server name for address 219.244.93.2: Non-existent domain
*** Default servers are not available
Default Server: UnKnown
Address: 219.244.93.2 //本来DNS为219.244.93.2

> server 192.168.1.2 //更改解析主机
Default Server: [192.168.1.2]
Address: 192.168.1.2

> www.shuxun.wang
Server: [192.168.1.2]
Address: 192.168.1.2

Name: www.shuxun.wang
Address: 192.168.1.2

苹果签名www.nanti.net

企业签名www.nanti.net

超级签名www.nanti.net

TF签名www.nanti.net

RedHat CentOS搭建DNS服务器正向解析-「腾达签名」
本原创文章未经允许不得转载 | 当前页面:「腾达签名」 » RedHat CentOS搭建DNS服务器正向解析

评论