WiFi DNS settings

This is a discussion on WiFi DNS settings within the Nexus One Tech Issues / Bug Reports forums, part of the Nexus One Discussion category; I have a couple parts to this question. First does anybody know how to look what DNS settings you get from WiFi? The reason for ...


Nexus One Forum Nexus One Forum RSS Feed Find us on Facebook Nexus One Twitter
Register Button
Go Back   Nexus One/Nexus S Forum - Google Phone Forum » Nexus One Discussion » Nexus One Tech Issues / Bug Reports

Nexus One Tech Issues / Bug Reports If you have a technical issue or a bug report specific to the Nexus One, please post it in here.

Reply
Old 04-12-2010, 04:13 PM   #1
Senior Member
 
Snickolaz's Avatar
 
Member #6411
Join Date: Apr 2010
Location: Jefferson City, MO
Posts: 266
Phone: Stock Rooted Nexus S
Carrier: AT&T
WiFi DNS settings

I have a couple parts to this question. First does anybody know how to look what DNS settings you get from WiFi? The reason for that is because I cannot type the internal name of my internal website when I'm on the Wifi. But I can type in the IP address of it and it will go there with no problems. I've also noticed that with a remote desktop app not finding a machine unless I put in the IP address. So I wanted to check if it was getting the correct DNS info.

Anybody else have this issue?
Snickolaz is offline   Reply With Quote
Old 04-12-2010, 08:21 PM   #2
Super Moderator
 
alphawave7's Avatar
 
Member #989
Join Date: Jan 2010
Posts: 1,788
Phone: Nexus One
Carrier: Tee-Mo
Quote:
Originally Posted by Snickolaz View Post
I have a couple parts to this question. First does anybody know how to look what DNS settings you get from WiFi? The reason for that is because I cannot type the internal name of my internal website when I'm on the Wifi. But I can type in the IP address of it and it will go there with no problems. I've also noticed that with a remote desktop app not finding a machine unless I put in the IP address. So I wanted to check if it was getting the correct DNS info.

Anybody else have this issue?
Unless you manually assigned static IP's (which would include DNS settings) you are using DHCP from your router, so whatever your router is set to, so goes your N1.
alphawave7 is offline   Reply With Quote
Old 04-13-2010, 10:19 AM   #3
Senior Member
 
Snickolaz's Avatar
 
Member #6411
Join Date: Apr 2010
Location: Jefferson City, MO
Posts: 266
Phone: Stock Rooted Nexus S
Carrier: AT&T
Quote:
Originally Posted by alphawave7 View Post
Quote:
Originally Posted by Snickolaz View Post
I have a couple parts to this question. First does anybody know how to look what DNS settings you get from WiFi? The reason for that is because I cannot type the internal name of my internal website when I'm on the Wifi. But I can type in the IP address of it and it will go there with no problems. I've also noticed that with a remote desktop app not finding a machine unless I put in the IP address. So I wanted to check if it was getting the correct DNS info.

Anybody else have this issue?
Unless you manually assigned static IP's (which would include DNS settings) you are using DHCP from your router, so whatever your router is set to, so goes your N1.
Yeah you would think that... But it seems like it's not using the DNS server that it got from DHCP. I think it's just using the default one for the phone and not looking to the DHCP DNS address when connected to the WiFi. Right now the workaround is using the IP address, but I would rather it work with the DNS name.
Snickolaz is offline   Reply With Quote
Old 04-13-2010, 12:29 PM   #4
Senior Member
 
kc.rkitek's Avatar
 
Member #695
Join Date: Jan 2010
Location: Kansas City
Posts: 291
Phone: N1
Carrier: T-Mobile
To answer your first question, you can use adb commands to find what DNS settings you're getting from wifi, but you need to have the Android SDK installed.
-Enable USB debugging on the phone & plug it in to comp
-Open a command window from the SDK tools directory
-type "adb devices" to verify adb recognizes the device
-type "adb shell" to get into a shell
-type "getprop net.dns1" and it should return 1st current DNS entry
-type "getprop net.dns2" and it should return 2nd current DNS entry
-type "exit" to exit the shell

If you're rooted I think you can also set the DNS entries like so:
-type "adb shell" to get into a shell
-type "setprop net.dns1 xxx.xxx.xxx.xxx" and it should set the 1st DNS entry
-type "setprop net.dns2 xxx.xxx.xxx.xxx" and it should set the 2nd DNS entry
- now use the getprop command above to verify it stuck.
-type "exit" to exit the shell
However, when you switch networks, I think the DNS entries will get overwritten...

maybe this will shed some light:
Help! Changing DNS settings - xda-developers
kc.rkitek is offline   Reply With Quote
Old 04-14-2010, 11:10 AM   #5
Senior Member
 
Snickolaz's Avatar
 
Member #6411
Join Date: Apr 2010
Location: Jefferson City, MO
Posts: 266
Phone: Stock Rooted Nexus S
Carrier: AT&T
Quote:
Originally Posted by kc.rkitek View Post
To answer your first question, you can use adb commands to find what DNS settings you're getting from wifi, but you need to have the Android SDK installed.
-Enable USB debugging on the phone & plug it in to comp
-Open a command window from the SDK tools directory
-type "adb devices" to verify adb recognizes the device
-type "adb shell" to get into a shell
-type "getprop net.dns1" and it should return 1st current DNS entry
-type "getprop net.dns2" and it should return 2nd current DNS entry
-type "exit" to exit the shell

If you're rooted I think you can also set the DNS entries like so:
-type "adb shell" to get into a shell
-type "setprop net.dns1 xxx.xxx.xxx.xxx" and it should set the 1st DNS entry
-type "setprop net.dns2 xxx.xxx.xxx.xxx" and it should set the 2nd DNS entry
- now use the getprop command above to verify it stuck.
-type "exit" to exit the shell
However, when you switch networks, I think the DNS entries will get overwritten...

maybe this will shed some light:
Help! Changing DNS settings - xda-developers
Well I'm not rooted... mainly because I just got it and I'm too lazy to do it. Then I never got the SDK working right for me... But I did discover if I use the FQDN for my intranet site I can get to it with no problems. So it's getting the right stuff, just the phone is picky about not having the FQDN. At least that's my theory.
Snickolaz is offline   Reply With Quote
Reply

Lower Navigation
Go Back   Nexus One/Nexus S Forum - Google Phone Forum » Nexus One Discussion » Nexus One Tech Issues / Bug Reports

Divider


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Search tags for this page
android command get dns
,
android conexiones wifi cambiar dns
,
android force dns wifi
,
android show dns
,
android show dns server\
,
android show dns settings
,

android wifi dns

,
android wifi dns setprop
,

android wifi dns settings

,

check dns android

,
check dns settings android
,
how to check dns android
,
how to find dns settings on android
,
how to get dns from phone
,

setprop net.dns1

,
show dns android
,
show dns in android
,
what is wifi dns
,

wifi dns

,
wifi dns settings
Click on a term to search our sites for related topics.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
APN Settings Help !!!!!! ovigt71 Nexus One Tech Issues / Bug Reports 20 02-16-2011 08:50 AM
MMS settings anyone? nv00021 Bell Discussion 25 06-17-2010 11:05 PM
Wifi issue? doesn't the Nexus auto find wifi? trellaine201 Nexus One General Discussion 7 04-07-2010 07:51 PM
MMS Settings for Nexus 1 tobywong Nexus One General Discussion 3 03-03-2010 06:29 PM
**** HELP**** o2 pay and go settings ndwgolf Nexus One General Discussion 1 03-01-2010 08:45 AM