Reply
Thread Tools
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#1
I use usbnet to connect to Internet via Linux PC.
When usb0 up I set /etc/resolv.conf on tablet.
But loaded applets (for example omweather) used old DNS setting.
I have to restart hildon-desktop to tell omweather use new nameservers.
Do anybody know easy way to inform loaded applets use new DNS?
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#2
You should not change /etc/resolv.conf. This usually includes only 127.0.0.1 which makes the installed local dnsmasq server. Just point dnsmasq to the correct DNS server by editing one of:

/tmp/resolv.conf.wlan0
/tmp/resolv.conf.ppp0
/tmp/resolv.conf.lo
/tmp/resolv.conf.wimax0
 
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#3
if i use usb0 - /tmp/resolv.conf.usb0?
 
brendan's Avatar
Posts: 531 | Thanked: 79 times | Joined on Oct 2006 @ This side of insane, that side of genius
#4
i run a named server on my network. i want my n800 to use that for DNS, which it does when browsing the web, but when i want to ssh to something, i have to use ip because the DNS doesnt resovle. why isnt this standard compliant?

i do not have any of the tmp files you specify (on my n800 with diablo). should they be created?

what does dnsmasq do and why is it interfering with normal DNS resolution?
__________________
Nokia n800
OS 2008
Pharos iGPS 360-BT
ElmScan 5 BlueTooth
BlackBerry Bold (9000)
AT&T Wireless
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#5
dnsmasq solves exactly the problem of resolv.conf changing while application is running. As far as all applications are concerned the DNS server is 127.0.0.1 (this is always in /etc/resolv.conf, regardless of network connection). This way only dnsmasq needs to be aware of DNS server changes (as a result of network connection change, for example).

dnsmasq gets the server information in the files I listed (see /etc/dnsmasq.conf). If you are creating another connection, the easiest way is to use one of those files, even if it needs to be created.
 

The Following User Says Thank You to Matan For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 16:11.