当前位置: 技术问答>linux和unix
请教DNS配置的问题
来源: 互联网 发布时间:2016-06-07
本文导语: 各位前辈,请教一个DNS的问题。 我配置的DNS解析有问题,IP和域名能解析,但是我输入主机名称就不行。 不知道什么原因,请各位指点一下。 具体配置如下: 主机名:Eryou.hnnc.com IP : 192.168.1.58588 正...
各位前辈,请教一个DNS的问题。
我配置的DNS解析有问题,IP和域名能解析,但是我输入主机名称就不行。
不知道什么原因,请各位指点一下。
具体配置如下:
主机名:Eryou.hnnc.com
IP : 192.168.1.58588
正向解析文件:
$TTL 86400
@ IN SOA hnnc.com. root.localhost. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS Eryou.hnnc.com.
@ IN MX 10 mail.hnnc.com.
@ IN A 192.168.1.58
mail IN A 192.168.1.58
反向解析文件:
$TTL 86400
@ IN SOA hnnc.com. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS Eryou.hnnc.com.
58 IN PTR hnnc.com.
/etc/resolv.conf文件:
search hnnc.com
nameserver 192.168.1.58
/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.68.1.58 Eryuo.hnnc.com Eryuo
测试结果:
[root@Eryuo named]# nslookup
> hnnc.com
Server: 192.168.1.58
Address: 192.168.1.58#53
Name: hnnc.com
Address: 192.168.1.58
> 192.168.1.58
Server: 192.168.1.58
Address: 192.168.1.58#53
58.1.168.192.in-addr.arpa name = hnnc.com.
> Eryou.hnnc.com
Server: 192.168.1.58
Address: 192.168.1.58#53
** server can't find Eryou.hnnc.com: NXDOMAIN
请各位帮忙看看有什么问题,该怎么修改,我是准备用来配置邮件服务器的。
请各位指正。谢谢!!
我配置的DNS解析有问题,IP和域名能解析,但是我输入主机名称就不行。
不知道什么原因,请各位指点一下。
具体配置如下:
主机名:Eryou.hnnc.com
IP : 192.168.1.58588
正向解析文件:
$TTL 86400
@ IN SOA hnnc.com. root.localhost. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS Eryou.hnnc.com.
@ IN MX 10 mail.hnnc.com.
@ IN A 192.168.1.58
mail IN A 192.168.1.58
反向解析文件:
$TTL 86400
@ IN SOA hnnc.com. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS Eryou.hnnc.com.
58 IN PTR hnnc.com.
/etc/resolv.conf文件:
search hnnc.com
nameserver 192.168.1.58
/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.68.1.58 Eryuo.hnnc.com Eryuo
测试结果:
[root@Eryuo named]# nslookup
> hnnc.com
Server: 192.168.1.58
Address: 192.168.1.58#53
Name: hnnc.com
Address: 192.168.1.58
> 192.168.1.58
Server: 192.168.1.58
Address: 192.168.1.58#53
58.1.168.192.in-addr.arpa name = hnnc.com.
> Eryou.hnnc.com
Server: 192.168.1.58
Address: 192.168.1.58#53
** server can't find Eryou.hnnc.com: NXDOMAIN
请各位帮忙看看有什么问题,该怎么修改,我是准备用来配置邮件服务器的。
请各位指正。谢谢!!
|
[root@Eryuo named]# nslookup
> hnnc.com
Server: 192.168.1.58
Address: 192.168.1.58#53
Name: hnnc.com
Address: 192.168.1.58
> 192.168.1.58
Server: 192.168.1.58
Address: 192.168.1.58#53
这个看似成功了...
> hnnc.com
Server: 192.168.1.58
Address: 192.168.1.58#53
Name: hnnc.com
Address: 192.168.1.58
> 192.168.1.58
Server: 192.168.1.58
Address: 192.168.1.58#53
这个看似成功了...
|
试试改这个
58 IN PTR Eryou.hnnc.com
58 IN PTR Eryou.hnnc.com