OpenWrt Forum Archive

Topic: Problems with dnsmasq and ipkg

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

after having openwrt successfully installed on my wrt54g router I run in a few problems.
dnsmasq doesn't read /etc/ethers, but the answer on the FAQ on http://wiki.openwrt.org/OpenWrtDocs/dnsmasq
doesn't work:

root@wrt54g:~# ipkg -force-overwrite -force-reinstall install http://downloads.openwrt.org/people/nbd/ whiterussian/packages/dnsmasq_2.22-2_mipsel.ipk
Downloading http://downloads.openwrt.org/people/nbd/
An error ocurred, return value: 21.
Collected errors:
ipkg_download: ERROR: failed to unlink /tmp/ipkg-1YoTvQ/: Is a directory

The fs is writable, I can manually mkdir/rmdir the given directory.

Second question on dhcp configuration: Where do I put the nameservers address that the clients put in /etc/resolv.conf?
Or is there a way to forward dns requests from the dhcp clients to dedicated dns server on the WAN port?
This is not done by default though /etc/resolv.conf on the router is setup correct.

TIA -- Peter

Please see post #7 in the dnsmasq - how to set domain name? thread, thanks.

EDIT: The Wiki page is updated.

(Last edited by olli_04 on 1 Nov 2005, 12:12)

Thanks,

of course I know the semantics of a unix \ at EOL... ;-)

After looking at it a bit more in detail I found there was a space in the download URL. Anyway I managed to wget the file and scp it to the router in the meantime.

Regarding my second question: dnsmasq allways puts its own ip address in the nameserver section of the clients. Where can I set the correct one or:  How do I enable dnsmasq to forward requests to a dns server given in /etc/resolv.conf on the router?

Thanks -- Peter

The discussion might have continued from here.