dns

由 szlux 在 05-24-2004 13:07 发表:

dns

cat /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 "lux.net" IN {

type master;

file "lux.net.hosts";

};

zone "20.111.128.in-addr.arpa" IN {

type master;

file "128.111.20.rev";

};

zone "0.0.127.in-addr.arpa" IN {

type master;

file "named.local";

allow-update { none; };

};

include "/etc/rndc.key";

cat /var/named/lux.net.hosts

$TTL 1D

@ IN SOA yj.lux.net. root.yj.lux.net.(

2004052401

3H

15M

1W

1D )

IN NS yj.lux.net.

IN MX 5 yj.lux.net.

yj IN A 128.111.20.69

www IN CNAME yj.lux.net.

cat /var/named/128.111.20.rev

$TTL 1D

@ IN SOA yj.lux.net. root.yj.lux.net.(

2004052411

3H

15M

1W

1D)

IN NS yj.lux.net.

69 IN PTR yj.lux.net.

cat /etc/resolv.conf<

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus