[maemo-developers] [maemo-developers] Local DNS

From: andrew gatt a.gatt at btinternet.com
Date: Wed Jan 31 18:09:32 EET 2007
Marius Gedminas wrote:
> I received a copy of this email (with a different message-ID)
> personally, and I replied to it personally.  Here's my reply, because I
> think it may be useful to others.
>
>   
Sorry reply failure (reply instead of all)!
>> I'm 
>> trying to keep a client / server situation simple to set up. As the 
>> tablet requires DHCP to function (by default) i was going to make the 
>> server use DHCP and set up dynamic DNS so the tablet can find the server 
>> with just the name. However as pointed out this doesn't work i.e. just 
>> putting the 'myserver' in the address bar of the browser.
>>
>> Additionally, adding the domain does not work so 'myserver.mydomain' 
>> does not resolve to the right address.
>>     
>
> Whoa.  Now this works for me.  Are you sure your DNS/DHCP servers are
> configured properly?
>
>   
I think they are because i can use the 'myserver' only name from any 
other browser on any other machine on my network and also the 
myserver.mydomain
>> I'm guessing this is because the 
>> /tmp/resolv.conf.wlan0 has 'domain mydomain' as the first line and not 
>> 'search mydomain'.
>>     
>
> Shouldn't matter.
>
>   
Without the 'search mydomain' as the first line on the /etc/resolv.conf 
neither 'myserver' or 'myserver.mydomain' works. With it in, both do.
> Yes, hack the scripts in /etc/udhcpc/.  I think the only file that is
> actually used is udhcpc.script, but that's my personal guess.  Add
> something like
>
>     echo nameserver 127.0.0.1 > /etc/resolv.conf
>     echo search $domain >> /etc/resolv.conf
>
> to the 'bound|renew)' part in the case statement.
>
> Uh, I'm not responsible if fiddling with that file breaks your N770. ;)
>
>   
I'll have a look, thanks for the tips.

Andrew

More information about the maemo-developers mailing list