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 ?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.