automating net.dns1 configuration

839 views
Skip to first unread message

vinay harugop

unread,
Feb 11, 2009, 11:02:03 PM2/11/09
to android-porting
hi,

My target is getting networked configured iver ethernet when "netcfg
eth0 dhcp" is run. This is setting up net.eth0.dns1 to DNS server ip
address, but still DNS reolve is not happening in browser.
When setprop net.dns1 <DNS server IP addr> is run then DNS resolve is
happening properly.

How to make this automatic setting of net.dns1? how to put in init.rc
for chnaging DNS server ip OR is there any way to inform dhcp to up
date net.dns1 ?

thanks,
-vinay

David Turner

unread,
Feb 12, 2009, 5:57:01 AM2/12/09
to android...@googlegroups.com
net.eth0.dns1 is a legacy system property that is not used by the resolver anymore.
the "official way" is to define one of:

net.dns1
net.dns2
...

additionally, you can use a process-specific list with:

net.dns1.<pid>
net.dns2.<pid>
...

where <pid> is the numerical process identifier of your program.

What you see is probably a bug in netcfg

jpitt42

unread,
Mar 9, 2009, 6:19:53 PM3/9/09
to android-porting
Where in the architecture is the preferred location for modifying
net.dns1?

For example, I'm starting up a PPP connection from the RILD whenever
the upper layer commands RILD to start a data call. Should the RILD/
PPPD update the net.dns1 and net.dns2 with the DNS information from
the IPCP negotiation? This is my current assumption. It seems that
resolv.conf is disabled for Android, but I'm hoping that the ip-up
script is still getting called by the Android version of PPPD. I'm
investigating this now. From the code I see in ipcp.c, it looks like
the ip-up script will still be called if it exists.

Nimit Manglick

unread,
May 8, 2009, 6:36:23 AM5/8/09
to android...@googlegroups.com
Hi Jpitt / David,

have u got any solution and pointer for this problem.

I am also having the same doubts. I get my ppp0 interface up with an IP but still my browser is not working.

Please help me with some pointers.

Thanks & Regards
Nimit
Reply all
Reply to author
Forward
0 new messages