QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 706|回复: 5

关于DNS配置,晕,怎么也配置不好了,大家帮忙看看,谢谢:(

[复制链接]
发表于 2004-10-18 14:40:25 | 显示全部楼层 |阅读模式
文件/etc/named.conf内容如下:
  // 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 "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "myqmail.com" IN {
type master;
file "myqmail.com.db";
allow-update { none;};
};
zone "0.168.192.in-addr.arpa" IN{
type master;
file "db.192.168.0.198";
allow-update { none;};
};

include "/etc/rndc.key";

文件/var/named/myqmail.com.db内容如下:
$TTL 86400
  @ IN SOA www.myqmail.com. myqmail.com. (
    2002103000 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
  IN NS www.myqmail.com.
  www IN A 192.168.0.198
文件/var/named/db.192.168.0.198 内容如下:
$TTL 86400
  @ IN SOA www.myqmail.com. myqmail.com. (
    2002103000 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
  IN NS www.myqmail.com.
  198 IN PTR www.myqmail.com.
文件/etc/resolv.conf 内容如下:
search myqmail.com
nameserver 192.168.0.198

现在我用nslookup正向反向都不成功?这是为什么?很急,写了
 楼主| 发表于 2004-10-18 14:44:44 | 显示全部楼层
出错提示:
用nslookup监测时,出现如下情况:
>www.myqmail.com
Server: 219.245.179.39
Address: 219.245.179.39#53

* server can't find www.myqmail.com:
回复

使用道具 举报

发表于 2004-10-18 15:43:23 | 显示全部楼层
出错提示:
用nslookup监测时,出现如下情况:
>www.myqmail.com
Server: 219.245.179.39
Address: 219.245.179.39#53

* server can't find www.myqmail.com:

既然自己已经配好了named,怎么在server里会出来219.245.179.39 ?
#nslookup
>server  192.168.0.198
www.myqmail.com
回复

使用道具 举报

 楼主| 发表于 2004-10-18 20:15:19 | 显示全部楼层
我现在可以在本机访问www.myqmail.com了
但是在win客户端为什么不能访问呢?

我把其dns设置成dns地址了
回复

使用道具 举报

发表于 2004-10-18 21:19:31 | 显示全部楼层
同样在win下用nslookup,server用你做好的dns服务器就可以了。
回复

使用道具 举报

发表于 2004-10-18 22:58:31 | 显示全部楼层
$TTL 86400
  myqmail.com. IN SOA www.myqmail.com. myqmail.com. (
    2002103000 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
   mailqmail.com. IN NS www.myqmail.com.
  www IN A 192.168.0.198
换成这样试试?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-7 10:58 , Processed in 0.037491 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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