[Dnsmasq-discuss] re : no-resolv no-hosts

Wim Langers wim.langers at adrias.biz
Sun May 15 11:42:37 BST 2011


Regarding my earlier question, I found part of the problem, being that the tiny core extension (dnsmasq.tce) seems to expect dnsmasq.conf being in /etc instead of (earlier versions and docs) in /usr/local/etc.
DNS and DHCP work now (for the clients), but not for the server :-(

So my original question remains : is it possible to specify all settings in dnsmasq.conf without any external files/dependencies.  That is
1. specify the server host name so that I can reach it by name from other clients
2. specify the dns-server for local (to the server) lookups (reach the clients by name)

cheers ,

wim

ps.: couldn't find a way to reply to my earlier message
Thus enclosed :
- slightly edited dnsmasq.conf (from the earlier post)
- the SERVER_1 entry is the active dnsmasq instance
- the SERVER_2 has an inactive dnsmasq setup (and identical dnsmasq.conf)
>>>>>
dnsmasq.conf

domain-needed
bogus-priv
no-resolv
strict-order
server=_ROUTER_IP_
server=/_LOCAL_DOMAIN_/127.0.0.1
server=127.0.0.1
local=/_LOCAL_DOMAIN_/
no-hosts
expand-hosts
domain=_LOCAL_DOMAIN_
dhcp-range=_LOCAL_DHCP_IP_START_,_LOCAL_DHCP_IP_STOP_,1h
dhcp-host=_SERVER_1_MAC_ADDR_,_SERVER_1_NAME_,_SERVER_1_IP_
dhcp-host=_SERVER_2_MAC_ADDR_,_SERVER_2_NAME_,_SERVER_2_IP_
dhcp-host=_SOME_CLIENT_MAC_ADDR_,_SOME_CLIENT_NAME_,_SOME_CLIENT_IP_
dhcp-option=option:router,_ROUTER_IP_
<<<<<
and the rest of the message
>>>>
Hello list ,

I have been a happy Dnsmasq user for some time now.  Did take some time to get my head wrapped around all the (to me) new idioms and technology but I managed to struggle through.

Now I'm trying to configure something like a (cold) back up server with Dnsmasq (DNS + DHCP server).  Perhaps these DHCP-lease time thingies were getting in the way or something but even on a separate network I can't get it to work.

My configuration(s)

machine (old)
	tiny core linux 3.1
	dnsmasq 2.49

machine (new)
	tiny core linux 3.6
	dnsmasq 2.55

With the same configuration files (hosts, resolv and dnsmasq) it doesn't work and /etc/hosts gets overwritten with some "ipv6" stuff that wasn't there before (on the old machine).


Now the actual question (allthough any pointers to a similar setup are apreciated) :
I finally opted to specify all settings in dnsmasq.conf itself and not read the hosts and resolv files (options no-hosts and no-resolv)
Much to my surprise this doesn't work and actually in the log file it says "reading /etc/resolv.conf" and "reading /etc/hosts".  What's with this behaviour ?

On a related note :
Is it possible to have all settings (also for name resolution on the server machine) in dnsmasq.conf or does it require some "nameserver XXX.XXX.XXX.XXX" and/or some "XXX.XXX.XXX.XXX hostname" in a(n) external file(s) ?

Hope someone can shed some light on this, because have been running in circles for a week now :-)

cheers ,

wim
<<<<
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20110515/43bf0536/attachment.htm 


More information about the Dnsmasq-discuss mailing list