- 论坛徽章:
- 0
|
我的DNS配置如下:
[root@dns root]# cat /etc/named.conf
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* 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 "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "greatalent.com" IN {
type master;
file "db.greatalent.com";
allow-update{ none;};
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.rev";
allow-update{ none;};
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
include "/etc/rndc.key";
[root@dns root]# cat /etc/resolv.conf
domain greatalent.com
nameserver 192.168.1.106
nameserver 202.106.0.20
反向解析:
[root@dns root]# cat /var/named/192.168.1.rev
$TTL 86400
@ IN SOA greatalent.com. root.greatalent.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS greatalent.com.
111 IN PTR ftp.greatalent.com.
112 IN PTR www.greatalent.com.
正向解析:
[root@dns root]# cat /var/named/db.greatalent.com
$TTL 86400
$ORIGIN greatalent.com.
@ IN SOA greatalent.com. root.greatalent.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS greatalent.com.
IN A 127.0.0.1
ftp IN A 192.168.1.111
www IN A 192.168.1.112
dns IN A 192.168.1.106
[root@dns root]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.106 dns www.greatalent.com
问题是:
1.电脑每次重起!DNS都不自动重起,都还需要我手动起动! 为什么?
2.电脑每次重起"/resolv.conf"总是自动加上(search)项!搞的电脑不能正常上网! 为什么?
还请各位大侠帮我看下!
谢谢先!
谢谢啊! |
|