[Dnsmasq-discuss] the hosts file

Stefan Sundberg timewind at hotmail.com
Fri Jul 25 07:59:53 BST 2008







Hello!

But how does the "expand-hosts" function work if the shortnames are not sent to the dns? I do not know how to fix this problem as my external interface is using dhcp from my ISP and overwrites the resolv.conf when the "upstream" DNS server list is updated.

 If there is no other way to fix this problem, it would be nice if the dns would be able to understand the shortnames if the full hostnames with the local domain added is written in the hosts file.

Regards Stefan Sundberg




> Date: Thu, 24 Jul 2008 15:36:33 +0100
> From: simon at thekelleys.org.uk
> To: timewind at hotmail.com; dnsmasq-discuss at lists.thekelleys.org.uk
> Subject: Re: [Dnsmasq-discuss] the hosts file
> 
> Stefan Sundberg wrote:
> > Hello!
> > 
> > I have started to use dnsmasq on a freebsd 6.x router/nat machine
> > where it is used as dns for my connected windows clients. I have a
> > problem with the dns server which I have not been able to resolve. I
> > have an entry in my hosts file for each of the clients and it look
> > something like this:
> > 
> > 192.168.0.1    computer1 192.168.0.2   computer2
> > 
> > and so on. The problem is that dnsmasq does not resolve "computer1".
> > I need to use "computer1.lan" or the local domain I may have chosen
> > and configured dnsmasq to use. Is it possible to configure dnsmasq so
> > it resolves the "simple names" directly as they are written in the
> > hosts file?
> > 
> '
> The problem is not dnsmasq, it's probably the computer's resolver code,
> which isn't sending simple names to the DNS. You can normally configure
> the correct behaviour, "man resolv.conf" will give you the details.
> 
> Cheers,
> 
> Simon.

_________________________________________________________________
Trött på jobbet? Hitta nya utmaningar här!
http://msn.jobbguiden.se/jobseeker/resumes/postresumenew/postresumestart.aspx?sc_cmp2=JS_INT_SEMSN_NLPCV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20080725/5b9fb9cb/attachment.htm


More information about the Dnsmasq-discuss mailing list