[RT-AC3200 384.13-2] dnsmasq - out of space/no resolution

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

Nigel Jones

Regular Contributor
This morning I noticed I wasn't able to reach many web sites on my phone. same on pc. some recently used sites ok. Checked my router, and noted errors :

Jan 29 08:31:38 dnsmasq-dhcp[285]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 29 08:31:45 dnsmasq[285]: failed to allocate 328 bytes
Jan 29 08:31:45 dnsmasq[285]: failed to allocate 328 bytes

I am using dns over tls to google.


[email protected]:/tmp/home/root# ps w | grep dns
285 nobody 3352 S dnsmasq --log-async
[email protected]:/tmp/home/root# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 31872 31872 0 100% /
devtmpfs 127576 0 127576 0% /dev
tmpfs 127716 1876 125840 1% /tmp
/dev/mtdblock4 65536 13144 52392 20% /jffs
/dev/sda1 3845677072 986188224 2664139704 27% /tmp/mnt/PLANETF1
/dev/root 31872 31872 0 100% /usr/sbin/tc

Although I didn't capture it, the GUI was showing around 50% mem used, and this was confirmed by looking at /proc/meminfo.

The filesystem did seem full up - in fact even after a reboot it's really full - so not sure if I can do something there, perhaps getting dnsmasq to write leases elsewhere -- though if it's already got a file written I doubt it would get into another block to cause a write issue.

The memory allocation failure is odd.

I could switch over dns over tls, configure clients instead, perhaps try the 3200 alpha build - though the release notes don't indicate much changed (shame no new GPL code :-( )

My initial thought is to change the lease location to somewhere under /jffs? ie change default

Anyone else noticed this?


Part of the Furniture
This error has been reported many times over the years. It's not a dnsmasq problem per se but just an indication that you have run out of free memory. The /var filesystem is held in memory.

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!