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

Ignore network domain suffix in hostname #14

Closed
grtjn opened this issue Jan 6, 2015 · 1 comment
Closed

Ignore network domain suffix in hostname #14

grtjn opened this issue Jan 6, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@grtjn
Copy link
Owner

grtjn commented Jan 6, 2015

ML init/bootstrapping adds the network domain suffix to host names automatically, but that often causes trouble in inter-host communication, as hostname+suffix is not always actually recognized by networks. Either /etc/hosts should include names with suffixes (not sure hostmanager supports that), or hostnames should be fixed from bootstrap scripts after init..

@grtjn grtjn added the bug label Jan 6, 2015
@grtjn
Copy link
Owner Author

grtjn commented Jan 7, 2015

@peetkes found a work-around by changing get_vm_name in Vagrantfile to include domain suffix. A sys-call like cat /etc/resolv.conf | grep domain could determine that dynamically, but that is OS-specific (it runs on the host, not the guest VMs!).

Also, I think there are more benefits from stripping the suffixes from the hostnames inside ML, like when you take your laptop and hook up into a network with a different domain etc. Investigating this route..

@grtjn grtjn self-assigned this Jan 7, 2015
@grtjn grtjn closed this as completed in e48e72d Jan 7, 2015
@grtjn grtjn modified the milestone: 0.0.2 Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant