LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: Linux新手

关于DNS的问题,救火啊

[复制链接]
发表于 2005-6-6 15:31:15 | 显示全部楼层
你贴上来看看呀!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-6 15:38:56 | 显示全部楼层
多谢

################################################################
/etc/hosts
# not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.domain localhost
192.2.3.168     dns.long88.com  dns
~

################################################################
/etc/resolv.conf
nameserver 202.96.103.36
nameserver 192.2.3.168
search localdomain
domain long88.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-6 15:40:34 | 显示全部楼层
这位大哥cngvr帮我看看有问题吗,接下去还有几个文件
回复 支持 反对

使用道具 举报

发表于 2005-6-6 15:56:50 | 显示全部楼层
/etc/resolv.conf
search  long88.com
domain long88.com
nameserver 192.2.3.168
nameserver 202.96.103.36

看看另几个,没有什么错?你改一点 记得要重新启动dns服务,就用nslookup命令ping一下域名。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-6 15:59:58 | 显示全部楼层
万分感激,
################################################################
/etc/named.conf
## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
options {
directory "/var/named";
}
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
                                                                                                                                               
include "/etc/named.custom";
                                                                                                                                               
include "/etc/rndc.key";
                                                                                                                                               
zone "long88.com" {
type master;
file "long88.com.zone";
};
                                                                                                                                               
zone "3.2.192.in-addr.arpa" {
type master;
file "192.2.3.zone";
};
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-6 16:01:35 | 显示全部楼层
################################################################
/var/named/long88.com.zone
$TTL 86400
@       IN      SOA     dns.long88.com.  root.dns.long88.com. (
                        2 ; serial
                        28800 ; refresh
                        7200 ; retry
                        604800 ; expire
                        86400 ; ttl
                        )
                                                                                                                                               
                                                                                                                                               
        IN      NS      dns.long88.com.
        IN      A       192.2.3.168
dns     IN A 192.2.3.168
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-6 16:17:34 | 显示全部楼层
cngvr大哥还在吗
回复 支持 反对

使用道具 举报

发表于 2005-6-6 16:17:59 | 显示全部楼层
// generated by named-bootconf.pl

options {
        directory "/var/named";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
        // query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};
zone "long88.com" IN {
        type master;
        file "long88.com.zone";
        allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};
zone "3.2.192.in-addr.arpa" IN {
        type master;
        file "long88.com.local";
        allow-update { none; };
};

include "/etc/rndc.key";
你的是什么系统?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-6 16:23:06 | 显示全部楼层
谢谢,我的是redhat 9啊
我的ip是192。2。3。168啊,我想用域long88.com,主机dns.long88.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-6 16:34:24 | 显示全部楼层
老大,帮帮我啊
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表