0

I've been looking for way to resolve host name for client on Windows Server 2012, just like if I added it to hosts file of the client workstations running Windows 7/8.

In hosts file I would add following entries as example:

192.168.12.145    linux.example.com
192.168.12.145    site.example.com
192.168.12.145    services.example.com

So client computers could connect to the address with the URL instead of IP, the machine on the other end of the address is server with Debian installed on it, running other services in which I would like to connect to with local connection.

2 Answers2

0

Why don't you just install a DNS server or use an existing one in your environment?

Frederik
  • 3,293
  • 3
  • 30
  • 46
  • I've DNS on the server 2012 but i've not yet figured out how to add "external device" or whatever that is not bound to windows server enviroment, if you know good guide/tutorial how to do this, I would aprreciate it. – Dreamscapist Mar 25 '15 at 12:11
  • Just add the records.. like any other record. You can follow the directions [here](http://www.tomshardware.com/faq/id-1954305/adding-dns-host-record-windows-server-2012-dns-server.html) if you need help. – GregL Mar 25 '15 at 12:15
  • I've done that and the record is still there but it doesn't seem to resolve it, flushed dns to see if that was the problem but no luck so far – Dreamscapist Mar 25 '15 at 12:18
0

You can put the host entries into %SystemRoot%\System32\drivers\etc\hosts, for example C:\Windows\System32\drivers\etc\hosts. This file serves the same purpose and has the same format as /etc/hosts in Linux, so it will allow network clients on that host to resolve those hostnames to their IP addresses.

Andrew Schulman
  • 8,561
  • 21
  • 31
  • 47