Sample Header Ad - 728x90

How do I access my jail by hostname on a home network?

2 votes
1 answer
1240 views
I'm using FreeNAS (FreeBSD), and I've created a jail, and I've given the jail a hostname, and I can access the jail via IP address, but I can't access the jail by it's hostname. (within my home network) I think I somehow need to get local DNS working? But on a home network, I don't have a proper DNS? I am not sure how name resolution works on home networks. i.e. I can make http://192.168.1.42:8000 and the jail responds to those requests. on the jail:
root@jailname:/ # hostname
jailname
but on other computers on the network:
mckay@mckays-macbook ~ % ping jailname
ping: cannot resolve jailname: Unknown host
C:/> ping jailname
Ping request could not find host jailname. Please check the name and try again
FWIW, I can resolve my NAS and my mac by hostname on a windows machine, but a mac can't get the hostname of the NAS or the windows machine. (but it can ping them by IP). Android devices can get name resolution on the NAS.
Asked by McKay (121 rep)
Jun 5, 2021, 06:59 PM
Last activity: Jul 20, 2021, 08:54 PM