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 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 ...

Results 1 to 5 of 5

Thread: WiFi DNS settings

  1. #1
    Android Lurker Snickolaz's Avatar
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    1

    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?

  2. Android.net is the premier Android Forum. Registered users do not see these ads. .

  3. #2
    Android Addict alphawave7's Avatar
    Join Date
    Jan 2011
    Posts
    609
    Thanked
    62 times
    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.

  4. #3
    Android Lurker Snickolaz's Avatar
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    1
    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.

  5. #4
    Senior Member kc.rkitek's Avatar
    Join Date
    Jan 2010
    Posts
    291
    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

  6. #5
    Android Lurker Snickolaz's Avatar
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    1
    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.

Remove Ads

http://www.scramblerducati.org/

Sponsored Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

andriod 4.4.4 on tablet dns settings
,

android dns issues

,
android get dns address
,
android show dns
,

android show dns servers

,

android tablet dns settings

,

android view dns

,

android wifi dns settings

,
asus tablet dns settings
,

getprop net.dns1

,
getpropnet.dns1
,
getprop?net.dns1
,
how get dns server of wifi
,
show dns android
,
showdns android
Click on a term to search our sites for related topics.
Android Forum