Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

No DNS server set when using DHCP

Featured Replies

Just using Armbian for the first time on a Le Potato.  Added a USB WiFi dongle, configured it using /etc/network/interfaces.d/<wifi device id>, and /etc/wpa_supplicant/wpa_supplicant.conf.

 

My problems is the DNS server doesn't seem to be set correctly:

$ nslookup github.com
;; communications error to 127.0.0.1#53: connection refused

 

But:

$ nslookup -q=all github.com 8.8.8.8
unknown query type: all
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	github.com
Address: 140.82.112.4

 

How do I fix this to use the DNS provided by my router using DHCP?

 

My /etc/network/interfaces.d/<wifi device id> file looks like this:

auto wlx60fb006397a1
allow-hotplug wlx60fb006397a1
iface wlx60fb006397a1 inet dhcp

pre-up sudo wpa_supplicant -B -iwlx60fb006397a1 -c/etc/wpa_supplicant/wpa_supplicant.conf
post-down sudo killall -q wpa_supplicant

 

And my /etc/wpa_supplicant/wpa_supplicant.conf file looks like this:

ap_scan=1 
ctrl_interface=DIR=/var/run/wpa_supplicant

network={
	ssid="<my wifi ssid>"
	scan_ssid=1
	psk="<my wifi password>"
}

 

 

Thanks!

 

  • Author

Here's what I ended up doing.  dhclient seemed to do the trick.  I did add 8.8.8.8 and 8.8.4.4 to resolv.conf as a backup.

 

pkill dhclient
pkill wpa_supplicant
sudo ip link set dev wlx60fb006397a1 down
addr flush dev wlx60fb006397a1
ip addr flush dev wlx60fb006397a1
ip link set dev Tr8Bt7LY_BsN_w up
ip link set dev wlx60fb006397a1 up
wpa_supplicant -B -i wlx60fb006397a1 -Dnl80211 -c /etc/wpa_supplicant/wpa_supplicant.conf 
dhclient -v wlx60fb006397a1
ip route show
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.