DNS servers + changing



  • Does anyone know where are the DNS server settings (cellular) and how to change/set them to servers of own preference? Thanks.

    Update 15 Nov 2019

    To check the DNS servers used you can use nmcli (using adb shell):

    1. Get devices
    nmcli d
    

    Result on my phone:

    DEVICE  TYPE      STATE        CONNECTION                
    ril_0   gsm       connected    /204163554125122/context2 
    wlan0   wifi      unavailable  --                        
    sit0    iptunnel  unmanaged    --                        
    lo      loopback  unmanaged    --                        
    
    
    1. Get device info:
    nmcli device show ril_0
    

    Result on my phone:

    GENERAL.DEVICE:                         ril_0
    GENERAL.TYPE:                           gsm
    GENERAL.HWADDR:                         (unknown)
    GENERAL.MTU:                            0
    GENERAL.STATE:                          100 (connected)
    GENERAL.CONNECTION:                     /204163554125122/context2
    GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/1
    IP4.ADDRESS[1]:                         178.227.211.124/24
    IP4.GATEWAY:                            178.227.211.125
    IP4.DNS[1]:                             84.241.227.81 <=== T-Mobile DNS server
    IP4.DNS[2]:                             84.241.227.82 <=== T-Mobile DNS server
    
    

Log in to reply