Where does android read DNS nameserver value

847 views
Skip to first unread message

android-dude

unread,
Jul 19, 2011, 1:14:05 PM7/19/11
to android-platform
I was browsing through the code to find out from where exactly does
android load default dns nameserver name.
So I am kind of looking for configuration file in android something
like /etc/resolv.conf in linux.

Does anyone know? Let me know if I am not clear enough in my
decsription

Matt

unread,
Jul 20, 2011, 9:17:46 AM7/20/11
to android-platform
IIRC, it's a set of properties. Try this in Android shell: getprop
net.dns1 , net.dns2, 3, etc.

android-dude

unread,
Jul 22, 2011, 5:28:04 PM7/22/11
to android-platform
got the location it's in
/system/core/rootdir/etc/init.goldfish.rc

@line
setprop net.eth0.dns1 10.0.2.3
Reply all
Reply to author
Forward
0 new messages