简体   繁体   中英

Does Mongodb bindIp option accept dns name instead of ip with a port foward?

I have a structure like this: 在此处输入图片说明

I want to enable B to accept connection from A . How can i configure it? I have this configuration in mongodb:

systemLog:
    destination: file
    path: C:\Program Files\MongoDB\Server\3.2\logs\mongod.log
storage:
    dbPath: D:\db
net:
    bindIp: 127.0.0.1,192.168.1.100, <can i mydomain1.com here??>
security:
    authorization: enabled
    keyFile: C:\Program Files\MongoDB\Server\3.2\keyfile-rs0.key
replication:
    replSetName: rs0

My firewalls are enabled in both of servers and router.

I think that's a bind name problem!

Somebody have a solution?

我已经解决了这个问题,在路由器mydomain1.com中添加了一条规则,可以从公用端口的网络外部进行访问!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM