QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 677|回复: 2

求助 redhat9如何配置dns服务器

[复制链接]
发表于 2003-11-25 10:42:09 | 显示全部楼层 |阅读模式
赔了一个早晨,头都大了

局域网使用
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 "txfdc.com" IN {
        type master;
        file "txfdc.com.zone";
};

zone "0.168.192.in-addr.arpa" IN {
        type master;
        file "named.192.168.0";
};

include "/etc/rndc.key";

/************************************/
txfdc.com.zone

$ TTL 86400
  $ ORLGIN txfdc.com.
  @ 1D IN SOA ns.txfdc.com. root.txfdc.com.
       (42; serial (d.adams)
        3H; refresh
        15M; retry
        1w; expiry
        1D;);minimum
  @ 1D IN NS txfdc.com.
  @ 1D IN MX 10 mail.txfdc.com.
      1D IN A 192.168.0.10
  www 1D IN A 192.168.0.10
  ns 1D IN A 192.168.0.10
  mail 1D IN A 192.168.0.10

/****************************************/
named.192.168.0

TTL
  @ IN SOA ns.txfdc.com. root.txfdc.com.(
    19997022700;serial
    28800; refresh
    14400; retry
    3600000; expire
  @ IN NS txfdc.com.
  10 IN PTR txfdc.com.
  10 IN PRT ns.txfdc.com.


不知道问题处在什么地方,求救
发表于 2003-11-25 11:31:57 | 显示全部楼层
来不及细看你的,你可以参考:

http://shcore.com.cn/gugong/gugong/linux/config/named/
回复

使用道具 举报

 楼主| 发表于 2003-11-25 13:27:56 | 显示全部楼层
thx 搞定了
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-15 13:59 , Processed in 0.071094 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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