Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could relays resolve names when adding faces? #219

Open
Wojtek242 opened this issue Mar 17, 2018 · 5 comments
Open

Could relays resolve names when adding faces? #219

Wojtek242 opened this issue Mar 17, 2018 · 5 comments

Comments

@Wojtek242
Copy link

I am trying to get ccn-lite working in docker containers and I am using docker-compose to network them at the moment. One convenient thing about docker-compose is that it allows the containers to access each other via their container names instead of an IP address. The way it works is that DNS requests for names that match container names will get correctly resolved by the network setup by docker-compose.

I noticed that this name resolution did not happen when adding a face to a relay. Would it make sense to add this capability?

This way I could set up a docker-compose file with nodeA, nodeB, nodeC, ... and add faces using their names rather than IP addresses.

@mfrey mfrey added the question label Mar 20, 2018
@mfrey
Copy link
Collaborator

mfrey commented Mar 20, 2018

I noticed that this name resolution did not happen when adding a face to a relay. Would it make sense to add this capability?

Short answer: It might make sense, depending on the use case (e.g. it eases your docker setup) and the implications for the face generation process.

Slightly longer answer: A face is not necessarily a network interface. It could be a IPC channel to an application (pipes, shared memory, etc.) , it could be an interface directly to hardware (IEEE 802.15.4 radio, bluetooth adapter, etc.) or an inter-node channel (such as tunnels, etc.) or even something completely else. But maybe, I'm missing the point?

@blacksheeep
Copy link
Contributor

But I think for udp sockets that should be possible?

@mfrey
Copy link
Collaborator

mfrey commented Mar 21, 2018

But I think for udp sockets that should be possible?

Absolutely, but do you really need it (except for something like docker)?

@blacksheeep
Copy link
Contributor

blacksheeep commented Mar 21, 2018

I think for IP sockets, it should be possible to add a DNS lookup without affecting the others or changing a lot of code. So if somebody wants to write a patch for that... :-)
It should even be possible to do the name lookup on the client side (in the control utility).

@Wojtek242
Copy link
Author

I guess this and the previous issue I raised could both be solved by using UDP sockets, but admittedly it does confine you to the IP/UDP stack. Perhaps this could be an option, but I understand the reasons now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants