0

I have a linux box that works as a server and connects only to a LAN network, with the rest of its clients. If I type the IP address of the linux comp on any client's browser I land on this ("internal") website I created.

Now how do I go about, (step by step, please) setting up a dns server (I guess...) and configuring it to make "mywonderful.site" on any client's browser lead them to 172.16.8.1 as is the IP of my linux comp.

bare in mind my linux "server" has no internet access, so I would have to transport programs from another pc with a pendrive and then install and try.

  • You don't. You have to set up everything on your network to query an internal DNS location. The best way to achieve this is to have each system's hosts file updated with a local resolution option. – Thomas Ward Oct 2 '15 at 17:09
  • When users connect to the LAN, this linux comp gives them an IP number and sets itself as the default gateway AND dns. what does all this mean? do users already query the "linux server" to resolve urls to match ip numbers or not? – Pablo Gener Oct 2 '15 at 17:15
  • I believe that the OP is asking how to add a DNS entry. – Daniel Oct 2 '15 at 20:23
  • @pablo-gener How many clients you have? – tuxar Oct 3 '15 at 9:16
  • I have up to 30 clients at once. not more than that. I couldn't go around changing the "hosts" file on all 30 clients all the time. It would be mad. Nobody changes no "hosts" file ever when trying to access any website, so there's something really HUGE here I'm misunderstanding or not explaining right. – Pablo Gener Oct 3 '15 at 14:59