Create CNAME in DNS without DNS manager

Biswajeet Kumar 46 Reputation points
2020-11-27T09:24:55.517+00:00

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 for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | Other
{count} votes

3 answers

Sort by: Most helpful
  1. Thameur-BOURBITA 36,261 Reputation points Moderator
    2020-11-27T20:04:02.99+00:00

    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

    1 person found this answer helpful.
    0 comments No comments

  2. Anonymous
    2020-11-27T13:40:40.737+00:00

    You can also do via PowerShell.
    https://learn.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--


  3. Anonymous
    2020-11-27T15:20:04.413+00:00

    You can use the -ComputerName to do this remotely.

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.