-
Notifications
You must be signed in to change notification settings - Fork 2
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
Exception calling "GetHostAddresses" with "1" argument(s): "No such host is known" #4
Comments
It should be solved in version 2.0.5 |
Great work. I will test it asap.
Regards,
Op vr 23 mrt. 2018 15:58 schreef Mario Majcica <[email protected]>:
… It should be solved in version 2.0.5
Unfortunately, in case of reverse lookup not being possible in DNS, the
code in 2.0.2 would fail. Now it is fixed by simply doing only a forward
lookup.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXbkuzrXFMESa0TeSWjQvDQbHCQg6TbAks5thQ2ggaJpZM4S425R>
.
|
@rfontijn thanks! |
Same problem in 2.0.6 with function Resolve-HostNameOrAddress
|
Hi @rerime , I do not see this being an issue. Can you provide some more information? If I run the following on one of my machines:
DNS name of the host is resolved correctly. Is that your host entry can't be resolved? Aside of this, I was thinking of getting rid of it completely and imply the machine name or ipaddress as for all other standard MS tasks. I introduced that because I was trying to reach one of my servers via CNAME entry, but since the day one it just gave issues. |
@mmajcica If $ComputerName is IP address, why you try to connect by dns name?
With your current realization you convert IP to DNS, then try to connect. It fails if PTR doesn't exist. |
You are right, I'll take care of this issue later in the day. Expect to have a new version of the task ready for tomorrow. |
@mmajcica |
@mmajcica
I guess better just return IP address like in my first pull request. |
@rerime I'm not an expert on the matter, What you are suggesting sounds valid, but I have no chance to test it. I'll trust you on this one. Can you make another PR and also bump up the task version and try it? |
Also MS task originally support only a IP address or FQDN: And it doesn't perform any check or resolution on it. If then mounting the New-PSDrive succeeds (and it's verification over the provided name succeeds) For him it is all good. So I would be keen to get rid of all of this name resolution. |
@rerime Done, the new version is on the Marketplace. Thank you for your contribution. |
When executing version 2.0.2 of this task. The error is raised: Exception calling "GetHostAddresses" with "1" argument(s): "No such host is known"
Back to 2.0.0 everything is normal.
The text was updated successfully, but these errors were encountered: