Simplified version of my setup is as follows:
- pi-hole also serving as local dns
- Asus RT-AC68U resolving dns to pi-hole
- my nas with the local adress nas.lan
- macbbook using Big Sur where I experience my problems
The real problem for me occurs during node development involving local servers but these examples describes the problem.
What doesn't work
Safari can't find http://nas.lan:5000
The below node.js - script (ENOTFOUND error)
var dns = require('dns');
dns.lookup('nas.lan', function(err, res, fam){console.log(err, res, fam);})
What does work
Both on Chrome and EdgeChrome http://nas.lan:5000 resolves without problems.
Also nslookup nas.lan
works without problem.
So, what should I do so that my local dns always works?