1

I would like a hostname like mycomp.net and be assigned through DNS of the router to go to an internal ip address.

The end result should be people within the network can use that hostname to connect to the internal server, and outsiders cannont

Jacob Valenta
  • 6,659
  • 8
  • 31
  • 42

2 Answers2

0

For the computer that is running it, simply use the host file. Could do the same for others if there is only a handful...

For the other computers re the router, it will depend on the router you have or the firewall depeding on setup. Can you please advise...

Ps. I do this with pfsesnse but not sure if you can/do run this....

Note: host file sits: C:\Windows\System32\drivers\etc

usually....

Robin Rieger
  • 1,204
  • 1
  • 16
  • 37
  • I know about the host file and unfortunatly, it wont work in this situation. The computer that gets the hostname is just a webserver but cannot be accessed via outside. (company data) – Jacob Valenta Sep 23 '12 at 00:59
  • fair enough, what are you running on the router? I presume it is something like WAN -> router -> firewall(?) -> Multiple VLANS? I guess it comes down to what software you have atm... – Robin Rieger Sep 23 '12 at 01:13
  • When I say company data, it isn't a very advanced buisness on the technical side. We have simply a cisco router (probably like the m10) Just a router you would probably find in a house – Jacob Valenta Sep 23 '12 at 01:41
  • Just checked the router, it has dd-wrt instaled – Jacob Valenta Sep 23 '12 at 02:00
  • Well if it has dd-wrt installed, you can do it via that. Any question come back and can try help you out – Robin Rieger Sep 23 '12 at 06:54
0

If you're using a router with DD-WRT installed, you can use the DHCP Server options in the Services tab to set hostnames based on MAC addresses. Combined with the "LAN Domain" option, this allows you to access machines via my_computer.my_domain.local

If you're not using a router with DD-WRT installed, you should try it out.

aednichols
  • 2,292
  • 2
  • 19
  • 28