Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, October 13, 2019 11:21 PM
Gday Guys,
I have put going on a forum for 5 years now to avoid being a public nuisance. Sorry I finally had to ask stupid questions now.
My issue is around doing a simple powershell line. I am not trained and sadly its hard to get my head around.
If I do Resolve-dnsname -name "http://inranetname/subname/pages/subname%20.aspx", on an intranet site, it complains of an invalid DNS name containing invalid characters. Sadly I cant put in the website names in, as its for a business, but "intranetname" and "subname" are just English lexicon, no special characters there.
I tried doing quotations, and without, also simply Resolve-dnsname "http://inranetname/subname/pages/subname%20.aspx" but they all say the same thing.
All i want to do an nslookup but I don't have CMD prompt in our environment and I'm finally taking the plunge into PS.
All replies (5)
Monday, October 14, 2019 10:03 AM ✅Answered | 1 vote
Hi,
>>I tried doing quotations, and without, also simply Resolve-dnsname "http://inranetname/subname/pages/subname%20.aspx" but they all say the same thing.
The Resolve-DnsName cmdlet performs a DNS query for the specified name.
“http: …”, this is not a specified name. This is a URL.
You can refer this picture:
To resolve DNS name, you need to enter FQDN or DNS records.
For example, FQDN: www.google.com.
For more details, you can refer the following article:
FQDN: https://docs.microsoft.com/en-us/windows/win32/dns/naming-conventions
Name resolution: https://docs.microsoft.com/en-us/windows/win32/dns/name-resolution
Hope this can help you, if you have anything unclear, please let me know.
Best Regards,
Ellen
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Wednesday, October 16, 2019 2:46 AM
Hi,
Just checking in to see if the information provided was helpful.
Please let us know if you would like further assistance.
Best Regards,
Ellen
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Friday, October 18, 2019 2:31 AM
Hi,
As this thread has been quiet for a while, we will propose it as ‘Answered’ as the information provided should be helpful.
If you need further help, please feel free to reply this post directly so we will be notified to follow it up. You can also choose to unmark the answer as you wish.
Best regards,
Ellen
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Monday, October 21, 2019 12:44 AM
Hey Ellen,
Sorry last week i wasnt able to get back onto this. Thats perfect, thank you for your help.
Monday, October 21, 2019 5:39 AM
Hi,
You‘re welcome!
If there is anything else we can do for you, please feel free to post in our forum.
Have a nice day!
Ellen
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].