hairpinning wasn't something that i enabled or specifically configured though.
it "just worked" without me having to do anything, as have all my previous routers.
again though, i'm not sure if the unifi controller has the option to set static dns entries - i would expect it does but finding the option to do so is confusing.
I gotta admit, I'm starting to rather dislike Ubiquiti.
So because I don't have a UniiFi Gateway they wont even let me LOOK at the settings to see if I can figure out what you need to do. Another in a long line of issues I'm starting to rack up.
For example, I knew their firmware tended to be dodgy shortly after new product launches, but I've discovered my nanoHD is not passing ARP correctly for wireless clients so they randomly become inaccessible from the LAN.
Also when I tried to move my IoT devices from my 802.11g network on pfSense to the nanoHD and its own VLAN, I was REALLY excited as it was the first time I'd managed to get VLAN tagging working across the network. That was for a few days until all my LIFX bulbs dropped off the network for no apparent reason. Couldn't get them to reliably connect, switched back to pfSense and all has been solid.
Anyway back on topic, I see mention here of something that might be useful.
https://community.ui.com/questions/Static-DNS-entry/0a0265a7-ec31-4091-8304-9787da328367For controller on:
Windows: C:\Users\<user>\Ubiquiti UniFi\data\sites\default
Mac: /Users/<user>/Library/Application Support/UniFi/data/sites/<site-name>/config.gateway.json
Ubuntu: /usr/lib/unifi/data/sites/default
CloudKey: /srv/unifi/data/sites/default
(or to the site-name you had configured instead of "default" if you did)
and create/edit the file config.gateway.json in your site directory with either nano or vi (both text editors)
{
"system": {
"static-host-mapping": {
"host-name": {
"test1.localdomain": {
"alias": [
"test1"
],
"inet": [
"192.168.99.99"
]
}
}
}
}
}
(By the way it's always a good habit to run a sanity check on your .json file before pushing it to the device. Simply copy & paste it to JSON Formatter & Validator)
There are many of them available, I like this one:
https://jsonformatter.curiousconcept.com/
Once the file is on the UniFi-Controller, go to Devices, click your USG, click the "Config"-icon, then "Manage Device" and pick "Provision" under Force Provisioning.