question

BiswajeetKumar-7106 avatar image
0 Votes"
BiswajeetKumar-7106 asked CandyLuo-MSFT commented

Create CNAME in DNS without DNS manager

Hi,

I wanted to create a CNAME(Alias) in DNS but without using DNS manager. Is there a way to do it using hosts file or some configuration file available which can be edited to create a CNAME.

I heard there was an old method for server 2003/2008 where creating CNAME was possible using some file.

Thanks

windows-serverwindows-dhcp-dns
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just want to confirm the current situations.

Please feel free to let us know if you need further assistance.

0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered BiswajeetKumar-7106 commented

You can also do via PowerShell.
https://docs.microsoft.com/en-us/powershell/module/dnsserver/add-dnsserverresourcerecordcname?view=winserver2012r2-ps


--please don't forget to Accept as answer if the reply is helpful--




· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This is same as using dns manager but I don't have access to dns server

0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered

You can use the -ComputerName to do this remotely.

--please don't forget to Accept as answer if the reply is helpful--




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thameur-BOURBITA avatar image
1 Vote"
Thameur-BOURBITA answered

Hi,

If you don't have permission to create new DNS entry in the DNS zone , there is no way to create the alias in DNS zone on DNS server. but you can use hosts file if you have local admin permission on computer which needs to resolve the alias.

Please don't forget to mark this reply as answer if it help you to fix your issue

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.