override a DNS server for a single DNS mapping on windows machine

Viewed 354

I've got a single DNS entry which I want to map to an external IP address (the ip represent an active directory server running on amazon cloud). Unfortunately, the DNS server used in my organisation has different mapping and it send this URL to internal address (local network) and I don't have permissions to change it for all users.

So I've manually change this DNS entry in my local machine. However, every once in a while, it gets updated by the DNS server.

I tried disabling that updates with a Group Policy, but with no help.

Is there any way to permanently set this DNS mapping either locally (preferable) or in the DNS server for my machine only ?

1 Answers

Update your host file.

In windows:

c:\Windows\System32\drivers\etc\hosts

In Mac:

/etc/hosts

In Linux

/etc/hosts

Add your server there

123.123.123.123 domain.com

Your host file have precedence over the DNS query and is much faster.

Related