R
Runtipi2mo ago
Trick

Local domain problem

I set the local domain in ‘settings?tab=settings’ to: 'homenuc.local' and the domain in advanced settings to ‘homenuc.local’. Then I configured adguard and added the dns to the router so that traffic goes through adguard and it works. Then I added to adguard: ‘dns_rewrites’: - domain: homenuc.local - 192.168.68.64 192.168.68.64 is the ip of my local server. But still homenuc.local is not working why? From another computer on the network I checked and I have something like this: nslookup homenuc.local Server: 192.168.68.64 Address: 192.168.68.64#53 Non-authoritative answer: Name: homenuc.local Address: 192.168.68.64 so it should work but it doesn't.
34 Replies
Stavros
Stavros2mo ago
Hello, first of all the domain and local domain are two different things with different configurations. You should not use the same value in both of these. The moment you remove the .local from the domain value Runtipi should work. One small note is that I recommend against using .local because it's reserved for mdns. Instead use something like .lan which is a pseudo one.
Trick
TrickOP2mo ago
thanks for fast answer but Changed domain name in advanced settings to: homenuc.example Local domain changed to: homenuc.lan Changed configuration in adguard from local to lan. Server rebooted and still not working
Stavros
Stavros2mo ago
So if you to homenuc.lan what do you get?
Trick
TrickOP2mo ago
in chrome i get this: Check for an error in the homenuc.lan address. DNS_PROBE_FINISHED_NXDOMAIN
Stavros
Stavros2mo ago
But nsloomup shows it gets the IP?
Trick
TrickOP2mo ago
yep from client pc: nslookup homenuc.lan Server: 192.168.68.64 Address: 192.168.68.64#53 Non-authoritative answer: Name: homenuc.lan Address: 192.168.68.64
Stavros
Stavros2mo ago
Alright try to use an incognito window It may be cache
Trick
TrickOP2mo ago
log from server resolvectl status: Global Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported resolv.conf mode: foreign DNS Servers: 127.0.0.1 Fallback DNS Servers: 1.1.1.1 DNS Domain: lan Link 2 (eno1) Current Scopes: none Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported Default Route: no Link 3 (wlp1s0) Current Scopes: DNS Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported DNS Servers: 192.168.68.64 1.1.1.1 Default Route: yes Link 4 (br-10dd7ca9c40c) Current Scopes: none Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported Default Route: no Link 5 (br-15457005dbfe) Current Scopes: none Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported Default Route: no Link 6 (br-b76b2bf871a6) Current Scopes: none Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported Default Route: no Link 7 (br-d46900d0de7b) Current Scopes: none Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported Default Route: no Link 8 (docker0) Current Scopes: none I checked it in incognico mode, in opera and firefox. it doesn't work either
Stavros
Stavros2mo ago
What if you use curl
Trick
TrickOP2mo ago
:/ curl http://homenuc.lan curl: (6) Could not resolve host: homenuc.lan
Stavros
Stavros2mo ago
So this means your DNS isn't working, can you try to remove the 1.1.1.1
Trick
TrickOP2mo ago
ok i made this chenges in /etc/systemd/resolved.conf: DNS=127.0.0.1 #FallbackDNS=1.1.1.1 Domains=lan #DNSSEC=no #DNSOverTLS=no MulticastDNS=no LLMNR=no #Cache=yes #CacheFromLocalhost=no DNSStubListener=no systemctl status systemd-resolved ● systemd-resolved.service - Network Name Resolution Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; disabled; preset: enabled) Active: active (running) since Fri 2025-07-25 09:24:17 UTC; 1min 4s ago Invocation: 064cbdc0bdaf432a97719071132211f3 Docs: man:systemd-resolved.service(8) man:org.freedesktop.resolve1(5) https://systemd.io/WRITING_NETWORK_CONFIGURATION_MANAGERS https://systemd.io/WRITING_RESOLVER_CLIENTS Main PID: 22394 (systemd-resolve) Status: "Processing requests..." Tasks: 1 (limit: 12369) Memory: 3M (peak: 3.2M) CPU: 125ms CGroup: /system.slice/systemd-resolved.service └─22394 /usr/lib/systemd/systemd-resolved lip 25 09:24:16 homenuck systemd[1]: Starting systemd-resolved.service - Network Name Resolution... lip 25 09:24:17 homenuck systemd-resolved[22394]: Positive Trust Anchors: lip 25 09:24:17 homenuck systemd-resolved[22394]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d lip 25 09:24:17 homenuck systemd-resolved[22394]: . IN DS 38696 8 2 683d2d0acb8c9b712a1948b27f741219298d0a450d612c483af444a4c0fb2b16 lip 25 09:24:17 homenuck systemd-resolved[22394]: Negative trust anchors: home.arpa 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-> lip 25 09:24:17 homenuck systemd-resolved[22394]: Using system hostname 'homenuck'. lip 25 09:24:17 homenuck systemd[1]: Started systemd-resolved.service - Network Name Resolution. i use ubuntu 25.04
Stavros
Stavros2mo ago
Wait, the server running runtipi should not use the DNS server (if it's hosted on runtipi) You should set the DNS in the client machine
Trick
TrickOP2mo ago
on the router I have dns set to 192.168.68.64
Stavros
Stavros2mo ago
And are you sure your client is using that?
Trick
TrickOP2mo ago
Link 3 (wlp1s0) Current Scopes: DNS Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported DNS Servers: 192.168.68.64 1.1.1.1 Default Route: yes
Stavros
Stavros2mo ago
it should only use your local dns not 1.1.1.1
Trick
TrickOP2mo ago
hmm... when I set the router to only 192.168.68.64 I dont have internet connection something broken with dns.... w8 i reinstall ubuntu and set runtipi from 0 then i change local domain to homenuc.lan install adguard and add to dns_rewrites to install adguard i should disable? sudo systemctl disable systemd-resolved
Stavros
Stavros2mo ago
wait wait wait you simply have to install runtipi edit the /etc/resolv.conf file and for nameservers use something like 1.1.1.1 (may be different if you are using network manager but it will let you know by saying that hey this file is managed by network manager) and then just install the adguard app in runtipi and set your dns rewrites then use the ip of that machine as your dns server and dont use any secondary like 1.1.1.1
Trick
TrickOP2mo ago
1. Installed clean Runtipi 2. sudo systemctl stop systemd-resolved 3. sudo systemctl disable systemd-resolved 4. add 'homenuc.lan' to dns_rewrites adguard 5. /etc/resolv.conf not exist if disable systemd-resolved 6. router have first dns 192.168.68.64 and second dns 1.1.1.1 7. homenuc.lan not working xD
Stavros
Stavros2mo ago
Can the machine running runtipi access homenuc.lan
Trick
TrickOP2mo ago
from server its working: ping homenuc.lan PING homenuc.lan (192.168.68.64) 56(84) bytes of data. 64 bytes from 192.168.68.64: icmp_seq=1 ttl=64 time=0.041 ms 64 bytes from 192.168.68.64: icmp_seq=2 ttl=64 time=0.051 ms 64 bytes from 192.168.68.64: icmp_seq=3 ttl=64 time=0.049 ms 64 bytes from 192.168.68.64: icmp_seq=4 ttl=64 time=0.046 ms 64 bytes from 192.168.68.64: icmp_seq=5 ttl=64 time=0.047 ms 64 bytes from 192.168.68.64: icmp_seq=6 ttl=64 time=0.046 ms 64 bytes from 192.168.68.64: icmp_seq=7 ttl=64 time=0.044 ms
Stavros
Stavros2mo ago
This means that your server is using your DNS but your client isn't
Trick
TrickOP2mo ago
in client wifi settings i have this dns server
No description
Stavros
Stavros2mo ago
Can you remove the 1.1.1.1?
Trick
TrickOP2mo ago
it's not a good solution because if the server stops working I won't have the internet
Stavros
Stavros2mo ago
Well that's how DNS works : ) If you have 1.1.1.1 adguard won't be able to block anything which i believe is the primary reason for wanting a dns server?
Trick
TrickOP2mo ago
Is there any option to disable https and use http?
No description
Trick
TrickOP2mo ago
hmm... and is there any other option to use domains instead of ip and ports?
Stavros
Stavros2mo ago
you can use a ddns service or buy a domain nope, it's for security reasons i recommend you buy a domain from cloudflare/porkbun for ~10 euro/year then not only can you point it to runtipi but you can also get valid ssl certificates you can also use these ddns service like duckdns but they are quite unreliable (ddns doesn't have to point to public ips) in any case seems weird to me that your mac ignores the dns server because it's clearly working
Trick
TrickOP2mo ago
I guess I will have to do so, I will just buy a domain and it will be quiet. then I will not need adguard? very strange that mac can't see but i don't have the strength to do it anymore.... i will buy a domain and see what happens. thanks a lot for your help 🙂
Stavros
Stavros2mo ago
Nope, you just point your domain or a subdomain to your server's ip Trust me, a domain is worth it Just pick something short
Trick
TrickOP2mo ago
Will it work even if it's ip from the local network?
Stavros
Stavros2mo ago
Yes I only use local IPs in my domain

Did you find this page helpful?