This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can't resolve device hostnames using local domain?

I'd like to be able to resolve devices on my local network using their hostname. For example, I have a device with a hostname "dietpi". I want to be able to access it using dietpi.home with home being my local domain. In the Sophos XG DHCP server for my local network, I have the local domain set to home. However, when I try to access dietpi.home, it doesn't work and when I try to ping it, I get "ping: cannot resolve dietpi.home: Unknown host".

I'm sure I'm messing something up - any pointers?



This thread was automatically locked due to age.
Parents Reply Children
  • Yeah, all my devices are being assigned the local domain name.

  • I had to force the MAC to use the domain and from then on it is, but still not discoverable.

    I was wondering if an entry is required in the DNS tab? I would hope not because it becomes messy to manage with more than a couple of devices.

    Ian

  • I gave up using my ms server (smb 2012) as a DNS because I could not get the name resolution in reports.

    I suspect I needed to move the DHCP server to the ms server, but that required more changes and having people and device login to the MS AD, not good for home users, so disabled the ms-server. Gets worse with the later versions of MS server.

    Ian 

  • I'm basically trying to accomplish this:

    https://community.ubnt.com/t5/EdgeRouter/Local-DNS-How-to-Access-Other-LAN-Devices-via-Name/td-p/2219896

    - I have my Sophos XG DHCP server domain name set to "home"

    - My external DNS server (Pi-hole) is pointing to my Sophos XG DNS server as the Upstream DNS server (so I can use it to resolve local domains)

    - I can see on all of my devices that they're receiving "home" as the "search domain" or DNS "suffix".

    I'm not sure what other steps I'm missing to make this work. As the linked post mentions, I want to be able to type "devicename.home" in the web browser and have that resolve to the IP address of the device (such that I don't have to use 172.16.16.15).

    I've also tried creating a DNS Host Entry with the "Host/Domain Name" as "dietpi.home" and the IP address set to the device IP address. This also does not seem to work.

  • Hi Shred,

    according to that link I was setting up the DNS all wrong. Maybe another try when feeling a little braver.

    A little bit of information for you that might have escaped your attention the DNS service on the XG is actually a proxy, so you do get some security from it.

    Ian