- 论坛徽章:
- 0
|
linux 8.0 DNS 配置问题
我试了一下,可以解析的
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 "dns.domain" IN {
type master;
file "domain.zone";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.rev";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
include "/etc/rndc.key";
domain.zone:
$TTL 86400
$ORIGIN dns.domain.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS dns.domain.
dns 1D IN A 192.168.1.29
www 1D IN A 192.168.1.51
ftp 1D IN A 192.168.1.19
192.168.1.rev:
$TTL 86400
@ IN SOA dns.domain. root.dns.domain. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns.domain.
29 IN PTR dns.domain.
51 IN PTR www.domain.
19 IN PTR ftp.domain.
[root@mylinux named]# nslookup dns.dns.domain
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.
Server: 192.168.1.29
Address: 192.168.1.29#53
Name: dns.dns.domain
Address: 192.168.1.29
[root@mylinux named]# nslookup www.dns.domain
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.
Server: 192.168.1.29
Address: 192.168.1.29#53
Name: www.dns.domain
Address: 192.168.1.51
[root@mylinux named]# nslookup 192.168.1.29
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.
Server: 192.168.1.29
Address: 192.168.1.29#53
29.1.168.192.in-addr.arpa name = dns.domain. |
|