avatar
怎么合法设置hostname?# Unix - 噫吁兮,危乎高哉
e*t
1
我的机器通过cable上网,在router后面,申请了一个一级域名,比如mydomain.com
想做http和email服务器,但是http的80端口是被isp封了的,所以我的apache改在
8000端口,然后在域名服务商那里把mydomain.com指向http://xxx.xxx.xxx.xxx:8000/
xxx.xxx.xxx.xxx为我的IP。这样http从外面能访问了。但是我如果把我的hostname
设成www.mydomain.com的话,我的email地址就是r**[email protected],能往外发信,
但是外面的信进不来,是不是因为域名被解析成http://xxx.xxx.xxx.xxx:8000的关系?
怎么解决这个问题?难道还要为了邮件服务器重新申请一个不同的域名?
avatar
T*r
2
I don't think it's the problem of xxx:8000. DNS cannot resolve name with a
port number. You should check the config of your mail server to see if it
accept www.mydomain.com as local relay server (in sendmail, it's local-host
-names). Probably your mail server only accept mail to mydomain.com, not
www.mydomain.com.

【在 e********t 的大作中提到】
: 我的机器通过cable上网,在router后面,申请了一个一级域名,比如mydomain.com
: 想做http和email服务器,但是http的80端口是被isp封了的,所以我的apache改在
: 8000端口,然后在域名服务商那里把mydomain.com指向http://xxx.xxx.xxx.xxx:8000/
: xxx.xxx.xxx.xxx为我的IP。这样http从外面能访问了。但是我如果把我的hostname
: 设成www.mydomain.com的话,我的email地址就是r**[email protected],能往外发信,
: 但是外面的信进不来,是不是因为域名被解析成http://xxx.xxx.xxx.xxx:8000的关系?
: 怎么解决这个问题?难道还要为了邮件服务器重新申请一个不同的域名?

avatar
e*t
3
可是如果我用ssh连接www.mydomain.com就不行,只能另用一个免费的二级域名(不带
端口号)来访问。
不知道如果在domain server那里改成指向我的ip(不指定端口),然后在我的机器上
再作一个name server行不行?

【在 T********r 的大作中提到】
: I don't think it's the problem of xxx:8000. DNS cannot resolve name with a
: port number. You should check the config of your mail server to see if it
: accept www.mydomain.com as local relay server (in sendmail, it's local-host
: -names). Probably your mail server only accept mail to mydomain.com, not
: www.mydomain.com.

avatar
T*r
4

This is the best solution. Then you can have your own domain with as
more hosts as you want. :-)

【在 e********t 的大作中提到】
: 可是如果我用ssh连接www.mydomain.com就不行,只能另用一个免费的二级域名(不带
: 端口号)来访问。
: 不知道如果在domain server那里改成指向我的ip(不指定端口),然后在我的机器上
: 再作一个name server行不行?

avatar
q*e
5
Do you know how to set up
hostname ILLEGALLY? :-)

【在 T********r 的大作中提到】
:
: This is the best solution. Then you can have your own domain with as
: more hosts as you want. :-)

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。