- 论坛徽章:
- 1
|
linux 8.0 DNS 配置问题
[root@linux19 etc]# nslookup 192.168.1.19
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.1
Address: 192.168.1.1#53
** server can't find 19.1.168.192.in-addr.arpa: NXDOMAIN
[root@linux19 etc]# nslookup thj.mycompany.com
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.19
Address: 192.168.1.19#53
** server can't find thj.mycompany.com: SERVFAIL
[root@linux19 etc]# cat 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 "mycompany.com" IN {
type master;
file "name2ip.conf";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "ip2name.conf";
allow-update { none; };
};
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; };
};
include "/etc/rndc.key";
[root@linux19 etc]# cat /var/named/named2ip.conf
cat: /var/named/named2ip.conf: 没有那个文件或目录
[root@linux19 etc]# cat /var/named/name2ip.conf
$TTL 86400
$ORIGIN thj.mycompany.com.
@ IN SOA thj.mycompany.com.root.thj.mycompayn.com. (
2000062900 ;serial
28800 ;refresh
14400 ;retry
3600000 ;expire
86400 );minuum
IN NS thj.mycompany.com.
IN MX 10 thj.mycompany.com.
localhost IN A 127.0.0.1
thj IN A 192.168.1.19
www CNAME thj
mail CNAME thj
[root@linux19 etc]# cat /var/named/ip2name.conf
$TTL 86400
@ IN SOA thj.mycompany.com.root.thj.mycompany.com. (
2000062900 ;serial
28800 ;refresh
14400 ;retry
3600000 ;expire
86400 );minuum
IN NS thj.mycompany.com.
IN MX 10 thj.mycompany.com.
19 IN PTR thj.mycompany.com.
[root@linux19 etc]#
[root@linux19 etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 linux19 localhost.localdomain localhost
192.168.1.19 thj.mycompany.com thj
[root@linux19 etc]# cat hosts.conf
order hosts,bind
multi on
[root@linux19 etc]# cat resolv.conf
nameserver 192.168.1.1
nameserver 192.168.1.19
search mycompany.com
nameserver 202.99.192.68
[root@linux19 etc]# |
|