当前位置: 技术问答>linux和unix
大家帮我看看我的DNS有没配好啊!谢谢~~~~~~~
来源: 互联网 发布时间:2015-03-06
本文导语: 小弟配好了DNS 可是解析不出来。各位大哥帮我看一下。谢谢谢谢 我的主机名是:GBB988 IP地址: 192.168.0.12 Primary nameserver:192.168.0.12 [root@BGG988 root]# nslookup www.arkai.com Note: nslookup is deprecated and may be removed from ...
小弟配好了DNS 可是解析不出来。各位大哥帮我看一下。谢谢谢谢
我的主机名是:GBB988 IP地址: 192.168.0.12 Primary nameserver:192.168.0.12
[root@BGG988 root]# nslookup www.arkai.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.0.12
Address: 192.168.0.12#53
** server can't find www.arkai.com: SERVFAIL
[root@BGG988 root]# nslookup GBB988.arkai.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.0.12
Address: 192.168.0.12#53
** server can't find GBB988.arkai.com: SERVFAIL
[root@BGG988 root]# ping www.arkai.com
ping: unknown host www.arkai.com
[root@BGG988 root]# cd /var/named
[root@BGG988 named]# ls
localhost.zone named.ca named.local
[root@BGG988 named]#
――――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 "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "named.arkai.com";
allow-update { none; };
};
zone "arkai.com" IN {
type master;
file "arkai.com.zone";
allow-update { none; };
};
include "/etc/rndc.key";
――――resolv.conf――――
domain arkai.com
nameserver 192.168.0.12
――――named.local――――
$TTL 86400
IN SOA ocalhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
www IN A 192.168.0.2
ftp IN A 192.168.0.3
mail IN A 192.168.0.5
1 IN PTR localhost.
我的主机名是:GBB988 IP地址: 192.168.0.12 Primary nameserver:192.168.0.12
[root@BGG988 root]# nslookup www.arkai.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.0.12
Address: 192.168.0.12#53
** server can't find www.arkai.com: SERVFAIL
[root@BGG988 root]# nslookup GBB988.arkai.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.0.12
Address: 192.168.0.12#53
** server can't find GBB988.arkai.com: SERVFAIL
[root@BGG988 root]# ping www.arkai.com
ping: unknown host www.arkai.com
[root@BGG988 root]# cd /var/named
[root@BGG988 named]# ls
localhost.zone named.ca named.local
[root@BGG988 named]#
――――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 "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "named.arkai.com";
allow-update { none; };
};
zone "arkai.com" IN {
type master;
file "arkai.com.zone";
allow-update { none; };
};
include "/etc/rndc.key";
――――resolv.conf――――
domain arkai.com
nameserver 192.168.0.12
――――named.local――――
$TTL 86400
IN SOA ocalhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
www IN A 192.168.0.2
ftp IN A 192.168.0.3
mail IN A 192.168.0.5
1 IN PTR localhost.
|
linux下的网络配置有点烦,我配置了很长时间都没配置好。
看了不少资料,自己感觉应该就那样配置的了。而且启动时网卡也正常启动了,但就是上不了网。郁闷。
你查查资料看看FAQ吧,
up
看了不少资料,自己感觉应该就那样配置的了。而且启动时网卡也正常启动了,但就是上不了网。郁闷。
你查查资料看看FAQ吧,
up
|
好象还没配好,我对linux不熟,不过系统回馈说找不到服务器。
|
好象不用加www的