Hi Rathna1,
It’s not supported to use cmdlets for PowerShell to update DNS records. To update DNS records, you can perform the operation on Office 365 Admin Page or your domain’s hosting provider.
Thanks for your understanding.
Spike
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
As the question states above, I am looking for a way to update the A Record and CNAME to update through powershell. essentially leverage this feature so I can update my static IP for certain sub domains I use. Thanks for your insights in advance,
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Hi Rathna1,
It’s not supported to use cmdlets for PowerShell to update DNS records. To update DNS records, you can perform the operation on Office 365 Admin Page or your domain’s hosting provider.
Thanks for your understanding.
Spike
so you cannot use cmdlets just for this? I see there is cmdlets for update, adding domains.
Hi Rathna1,
Actually, PowerShell provides another way to manage domains, just like you do it using interface buttons. However, it requires you to modify the related DNS records in your DNS hosting provider to complete the whole steps. We suggest you ask your DNS host support for further assistance.
Regards,
Fraser
I just need a way to do this programmatically. what would be the other interface you are referring to? I can try that as well.
hi rathna1,
if you haven’t changed your domain's ns (nameserver) records at your domain registrar to point to office 365 nameservers, please modify your dns records (in your scenario are the a and cname records) there.
if you have done that, since you can’t edit the default dns record which office 365 has set for you and add new a one through powershell, i suggest you perform the steps below:
1.sign in to the office 365 portal.
2.go to admin center.
3.click domains in the right navigation.
4.select the domain for which you want to add a new dns record.
5.click domain setting.
7.choose the dns record you want to add.
8.fill in the information required and click save.
please note that we can only add the a record, aaaa record, txt record and cname record at office 365. if you want to add other kinds of dns records, you might need host your dns at a 3rd party dns hosting provider.
regards,
fraser