{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/2510","labels_url":"https://api.github.com/repos/docker/machine/issues/2510/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/2510/comments","events_url":"https://api.github.com/repos/docker/machine/issues/2510/events","html_url":"https://github.com/docker/machine/issues/2510","id":120769722,"number":2510,"title":"Should we be able to register a generic host by dns name","user":{"login":"dgageot","id":153495,"avatar_url":"https://avatars.githubusercontent.com/u/153495?v=3","gravatar_id":"","url":"https://api.github.com/users/dgageot","html_url":"https://github.com/dgageot","followers_url":"https://api.github.com/users/dgageot/followers","following_url":"https://api.github.com/users/dgageot/following{/other_user}","gists_url":"https://api.github.com/users/dgageot/gists{/gist_id}","starred_url":"https://api.github.com/users/dgageot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgageot/subscriptions","organizations_url":"https://api.github.com/users/dgageot/orgs","repos_url":"https://api.github.com/users/dgageot/repos","events_url":"https://api.github.com/users/dgageot/events{/privacy}","received_events_url":"https://api.github.com/users/dgageot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-07T13:06:14Z","updated_at":"2015-12-07T19:58:39Z","closed_at":null,"body":"I'm trying to register a machine using the `generic` driver. It fails after a timeout because I used the machine dns name, not the IP address to register the machine.\r\n\r\nWhen I run the `create` command in debug mode, I get the root cause:\r\n\r\n```\r\n$ ./bin/docker-machine -D create -d generic --generic-ip-address foo.42craft.com --generic-ssh-user root --generic-ssh-key ~/.ssh/id_rsa foo\r\n...\r\nMachine is running, waiting for SSH to be available...\r\nGetting to WaitForSSH function...\r\n(foo) Calling .GetSSHHostname\r\nError getting ssh command 'exit 0' : IP address is invalid: foo.42craft.com\r\nGetting to WaitForSSH function...\r\n(foo) Calling .GetSSHHostname\r\nError getting ssh command 'exit 0' : IP address is invalid: foo.42craft.com\r\n```\r\n\r\nShould we fix the code to accept a host name or is there a reason to accept only IPs?\r\nIn any case, the address should be checked in `PreCreateCheck` to avoid creating a non-functional machine."},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/162642723","html_url":"https://github.com/docker/machine/issues/2510#issuecomment-162642723","issue_url":"https://api.github.com/repos/docker/machine/issues/2510","id":162642723,"user":{"login":"nathanleclaire","id":1476820,"avatar_url":"https://avatars.githubusercontent.com/u/1476820?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanleclaire","html_url":"https://github.com/nathanleclaire","followers_url":"https://api.github.com/users/nathanleclaire/followers","following_url":"https://api.github.com/users/nathanleclaire/following{/other_user}","gists_url":"https://api.github.com/users/nathanleclaire/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanleclaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanleclaire/subscriptions","organizations_url":"https://api.github.com/users/nathanleclaire/orgs","repos_url":"https://api.github.com/users/nathanleclaire/repos","events_url":"https://api.github.com/users/nathanleclaire/events{/privacy}","received_events_url":"https://api.github.com/users/nathanleclaire/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T19:58:39Z","updated_at":"2015-12-07T19:58:39Z","body":"Yes, I think this should work."}}