- 论坛徽章:
- 0
|
Linux v9 上配DNS问题。
the setup of /etc/resolv.conf
domain linix.com
search linix.com
nameserver 192.168.192.5
[root@linux named]# more linux.com.zone
$TTL 86400
@ IN SOA linux.com. root.localhost (
5 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
IN NS linux.com.
IN NS pop3.linux.com.
linux.com. IN NS pop3.linux.com.
192.168.192.5 IN MX linux.com.
IN NS 192.168.192.5.
[root@linux named]# more 192.168.192.in-addr.arpa
$TTL 86400
@ IN SOA linux.com. root.linux.com. (
2003090901 ; Serial
28800 ; Refresh
14400 ; Retry
604800 ; Expire
86400 ) ; Minimum
@ IN NS linux.com.
192.168.192.5 IN PTR linux.com.
5 IN PTR linux.com.
[root@linux named]#
[root@linux named]# more /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
#
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/named.custom";
include "/etc/rndc.key";
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "192.168.192.in-addr.arpa" {
type master;
file "192.168.192.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "linux.com" {
type master;
file "linux.com.zone";
};
server 192.168.192.254 {
bogus yes;
};
[root@linux named]# service named restart
named rndc: connect failed: connection refused
[root@linux named]# ]
[root@linux named]# nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
>; linux.com
;; connection timed out; no servers could be reached
>;
please give directions!! tks ! |
|