Posts

Forcing resolver to flush cache

 resolvectl flash-caches Local resolver sometimes stops resolving. Sometimes local addresses only, sometimes everything. To force it to forget cache, you need the command above. No need to be superuser. If it doesn't help, have to restart resolver: sudo systemctl restart systemd-resolved.

nsupdate REFUSED

 Resolver creates more problems than solves. Example. I have a DNS server on an Ubuntu server box. Simple, right? OK, I need to update some fixed entries in the DNS. Using nsupdate command, to do it on a running server. OK, switch to root, go to /etc/bind directory. nsupdate -k rndc.key > update delete bla.bla.mydomain.com AAAA > send update failed: REFUSED OK. After cursing a bit and thinking a bit, an idea: Ubuntu is running local resolver and nsupdate connects to it by default. Let's veirify: nsupdate -k rndc.key > server 192.168.21.21 > update delete bla.bla.mydomain.com AAAA > send > Problem solved. Of course, I replaced real names and addresses. Need to find out if it's possible to remove resolver, at least from servers. DNS servers are in my local gigabit network, no need for cache.