Jump to content

Orange Pi Lite - Debian Stretch next desktop - No nameserver in /etc/resolv.conf after connecting to WiFi


Recommended Posts

Posted

No nameserver in these files too

 

    /etc/resolvconf/run/resolv.conf
    /run/resolvconf/resolv.conf

 

The nameserver is set in this file only

 

    /run/NetworkManager/resolv.conf

 

This is the content of /etc/NetworkManager/NetworkManager.conf


  [main]
  dns=none
  plugins=ifupdown,keyfile

  [ifupdown]
  managed=true
  [keyfile]
  unmanaged-devices=interface-name:p2p0

 

These are relevant lines from systemd journal:


  Oct 29 21:47:24 orangepilite NetworkManager[507]: <info>  [1509306444.9814] dhcp-init: Using DHCP client 'dhclient'
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.2421] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.2570] dhcp4 (wlan0): dhclient started with pid 771
  Oct 29 21:47:29 orangepilite dhclient[771]: DHCPREQUEST of 192.168.143.42 on wlan0 to 255.255.255.255 port 67
  Oct 29 21:47:29 orangepilite dhclient[771]: DHCPACK of 192.168.143.42 from 192.168.143.10
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.4358] dhcp4 (wlan0):   address 192.168.143.42
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.4360] dhcp4 (wlan0):   plen 24 (255.255.255.0)
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.4361] dhcp4 (wlan0):   gateway 192.168.143.10
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.4361] dhcp4 (wlan0):   server identifier 192.168.143.10
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.4362] dhcp4 (wlan0):   lease time 14400
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.4363] dhcp4 (wlan0):   hostname 'orangepilite'
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.4364] dhcp4 (wlan0):   nameserver '192.168.143.10'
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.4365] dhcp4 (wlan0):   domain name 'lan'
  Oct 29 21:47:29 orangepilite NetworkManager[507]: <info>  [1509306449.4366] dhcp4 (wlan0): state changed unknown -> bound

 

IP address, netmask and default gateway are set as expected.


Regards

Posted
On 12/5/2017 at 2:41 AM, pavel81 said:

HI, If you want to get DNS IPs obtained from DHCP just add # before "dns=none" line in NetworkManager.conf file. It worked for me. 

That worked - thanks.  I just loaded the latest Armbian Next build and it's still messed up. Can someone please fix this?

Posted
On 12/5/2017 at 8:41 AM, pavel81 said:

HI, If you want to get DNS IPs obtained from DHCP just add # before "dns=none" line in NetworkManager.conf file. It worked for me. 

Thank you. This solved my nameserver issue in resolv.conf running Armbian_5.46.180602_Odroidxu4_Debian_stretch_dev_4.14.47  

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines