I'm trying to create a local DNS on my computer so I can access it locally with a DNS address instead of an IP. The first thing that I did was to configure my hostname on the files
$ sudo vi /etc/hosts 127.0.0.1 localhost 127.0.1.1 mynewhostname # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
$ sudo vi /etc/hostname mynewhostname
Then I installed the avahi-daemon as a DNS server:
sudo apt-get install avahi-daemon
After rebooting the system I can access the local DNS
mynewhostname.local only from
localhost (only from my own computer), other computers on the local network can only access my computer with the IP address and not with the DNS. Does anyone know why that happens? Or what would be a different approach to create a local DNS that's seen from all my local network?