Hi,
if I reboot my mox it sometimes takes a long time until all local names can be resolved again.
That means the device gets an IP address but the name is not known:
root@turris:/etc/config# ping -c 1 192.168.10.95
PING 192.168.10.95 (192.168.10.95) 56(84) bytes of data.
64 bytes from 192.168.10.95: icmp_req=1 ttl=64 time=0.540 ms
--- 192.168.10.95 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.540/0.540/0.540/0.000 ms
root@turris:/etc/config# ping omv.lan
ping: unknown host omv.lan
I can accelerate the process by rebooting the devices, which is something I want to avoid.
I understand that I can populate /etc/hosts, but then I would loose the advantage of dynamic assignment of IP addresses.
Is there a way to force the update of the name cache?
Or is there a way to “inject” a known name into kresd during runtime, so that I can at least make the most important servers reachable again?
This is configured in /etc/dhcp
config dnsmasq
option domainneeded 1
option boguspriv 1
option filterwin2k 0 # enable for dial on demand
option localise_queries 1
option rebind_protection 1 # disable if upstream must serve RFC1918 addresses
option rebind_localhost 1 # enable for RBL checking and similar services
#list rebind_domain example.lan # whitelist RFC1918 responses for domains
option local '/lan/'
option domain 'lan'
option nonegcache 0
option authoritative 1
option readethers 1
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option nonwildcard 1 # bind to & keep track of interfaces
option port '0'
option serversfile '/tmp/adb_list.overall'
option localservice 1 # disable to allow DNS requests from non-local subnets
config dhcp lan
option interface 'lan'
option dhcpv6 'server'
option ra 'server'
option ignore '0'
option leasetime '3d'
option start '32'
option limit '100'
list dhcp_option '6,192.168.10.1'
config dhcp 'guest'
option interface 'guest'
option dhcpv6 'server'
option ra 'server'
option ignore '0'
option leasetime '3d'
option start '32'
option limit '100'
list dhcp_option '6,192.168.70.1'
Thanks for your help.
Peter