16
7
I want to set up MediaWiki on one of my home machines, and then have all requests made on the local network for 'wiki.home' or 'wiki.local' point to that box. I know that this can be done by editing each /etc/hosts file individually, but I want something more automated so that, for example, if a friend or family member comes to my house, they don't need to mess around with the hosts file in order to view the site.
Is there a simple way to do this? I have the wiki up and running, and I've been looking into dnsmasq, but I can't figure out how to set the DNS up properly. Since I want an automated solution, I feel like I need to change the DNS settings on my router, but if I change the DNS settings there, how can I still resolve external hosts?
Configuration Details
Router: Netgear WNR2000v2. The router gives me the option to manually specify DNS servers, which I'm assuming I will have to point to my Ubuntu box if I want to get this up and running.
MediaWiki and dnsmasq host: Runs Ubuntu 12.04. I've had some difficulty with the dnsmasq config (mostly due to my inexperience). For example, I'm not sure, but I think during installation, Ubuntu modified my DNS settings so that
/etc/resolv.conf
now had127.0.0.1
as the only DNS server. At that point, I could resolve the local hosts, but nothing else. I've solved this temporarily by modifying/etc/resolv.conf
and adding192.168.1.1
as the secondary nameserver, but the concern here is that192.168.1.1
will be using the Ubuntu box for DNS. Am I missing something obvious here?dnsmasq settings: uncommented the following lines:
domain-needed bogus-priv local=/local/ domain=local
can you just change the name of your machine on the wifi? – ytpillai – 2016-02-07T04:02:23.987
Consider posting your configuration details. Also, what have you tried? What settings did you change on your router? What kind of router do you have? I assume your using linux, but what distro? There are so many things that could go wrong that we could write a book on the subject ;) – jmort253 – 2012-04-08T18:09:34.550
dnsmasq will work, but other alternatives include mDNS and NIS.
– Lèse majesté – 2012-04-08T19:51:12.810