On Wed, Oct 10, 2012 at 7:21 PM, Eelco Dolstra <eelco.dols...@logicblox.com> wrote: > Hi, > > On 10/10/12 12:00, Mathijs Kwik wrote: > >> I ran into an issue. >> >> mongodb seems to connect to itself, but does so by hostname. > > Can't you configure it to connect to localhost?
Nope, it will always use the hostname. This is not as stupid as it seems, because this connection is used for replication. So it wants to make sure it is able to connect to itself through the same means as its peers would, so this is quite acceptable. You would think I should just open up the firewall for replication stuff, but in my case (development laptop, mimicking production env) these are all on the local machine and I don't want others to connect to it. So I guess this is a bit of an edge-case. Clearly, using the external interface is what mongo should do here. It's just my strange everything-local setup and firewalling needs that get me in trouble. I just added 127.0.0.2 as my hostname to networking.extraHosts for now to get the old behaviour back, as I can't think of any other solution. > > -- > Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/ > _______________________________________________ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev