DNS问题!

由 zhawuxi 在 07-29-2004 15:49 发表:

DNS问题!

我配置DNS时的问题.请问我的named.conf,named.ming.com,named.192.168.0,named.home.com有没有问题!

/etc/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 "ming.com" IN {

type master;

file "named.ming.com";

allow-update { none; };

};

zone "0.168.192.in-addr.arpa" IN {

type master;

file "named.192.168.0";

allow-update { none; };

};

zone "home.com" IN {

type master;

file "named.home.com";

allow-update { none; };

};

include "/etc/rndc.key";

/var/namedname.ming.com

$TTL 86400

@ IN SOA redhat.ming.com. root.redhat.ming.com. (

2004072400 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ; Minimum

)

@ IN NS redhat

redhat IN A 192.168.0.21

www IN A 192.168.0.21

ftp IN CNAME redhat

mail IN A 192.168.0.21

@ IN MX 10 mail

/var/named/named.192.168.0

$TTL 86400

@ IN SOA redhat.ming.com. root.redhat.ming.com (

2004072400 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ; Minimum

)

@ IN NS redhat.ming.com.

1 IN PTR redhat.ming.com.

/var/named/named.home.com

$TTL 86400

@ IN SOA redhat.ming.com. root.redhat.ming.com. (

2004072400 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ; Minimum

)

@ IN NS redhat

@ IN MX 10 mail

我用nslookup解析

如图:

问题:

1.为什么server:后面不是redhat.ming.com而是192.168.0.21

2.home.com是我想设的虚拟域,想用mail.ming.com转发它的邮件,为什么MX记录的主机是mail.home.com而不是mail.ming.com

3.我想把邮件地址设成[email protected]怎么做(因为我在设邮件时是[email protected])

谢谢!

因为我要考NCSE二级,这是实验.


由 dancingpig 在 07-29-2004 17:25 发表:


问题:

1.为什么server:后面不是redhat.ming.com而是192.168.0.21

这个是你dns的ip,在/etc/resolve.co

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus