Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a php site running on a local XAMPP web server. I would like to be able to access the site from multiple devices (other desktops, laptops, iPad and Android tablets) running on the same LAN by using a name/alias (e.g. myapp.local) instead of by IP address.

Using hostname works but only on the Windows devices because of netbios name resolution but I can't use hostname on the iPad or Android devices.

My searching so far seems to suggest I have to setup my own DNS server. I've tried doing this with MaraDNS following the instructions here but I need something where I don't have to modify the router settings.

I only want to install stuff on the computer hosting the web server and not edit host files or anything like that. Is there anyway to do this in as simple a way as possible so on any computer/device I can enter something like myapp.local and it resolves correctly?

share|improve this question
Looks like you should consider a service like dyndns. Here's a guide. – Jasjeev Singh Feb 17 '14 at 20:56

I don't have a good answer on how to do it without dhcpd/dns but since I can't comment I'll point you into the zeroconf direction, also zeroconf with mDns.

Personally I went with a home server and setup bind and dhcpd.

My router is a fritz box. I turned off FB's dhcpd so I could set the nameserver by dhcpd.


# option definitions common to all supported networks...
option domain-name "";
option domain-name-servers;
default-lease-time 864000;
max-lease-time 1123200;
log-facility local7;
subnet netmask {
  option routers;
  option subnet-mask;
  option broadcast-address;
  option ntp-servers;
} is my homeserver is my router my router also has a ntp server running

as for bind, this is what a wildcard tld zone config looks like pri/

$TTL 3600
server  IN SOA hostmaster.localhost. (
                3 ; serial
                3600 ; refresh
                3600 ; retry
                604800 ; expire
                86400 ; minimum
        IN MX 100 server.
$TTL 86400
$ORIGIN server.
@       IN A
*       IN A
@       IN AAAA xxxx:xxxx:xxxx:xxxx::2
*       IN AAAA xxxx:xxxx:xxxx:xxxx::2

and the named.conf entry

zone "server" IN {
        type master;
        file "pri/";
        notify no;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.