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.

DNS resolving in customize-image.sh works/works not in some cases

Featured Replies

Hello,

 

I've got a problem with DNS resolving and customize-image.sh.

 

One setup works (home), one setup does not (office).

 

Both setups are OS X (different major versions), Virtual Box (different major versions), Network Bridging and Ubuntu 14.04. Building images (Banana Pi M1/M2/R1 jessie next) without customize-image.sh works perfectly, espacially the apt-get stuff, which needs DNS resolving.

 

The working home setup uses dynamic (DHCP) private RFC1918 IPs (and/or public IPv6 IPs).

 

The nonworking office setup uses public static IPv4 IPs for OS X and Ubuntu. The build process works flawlessly until customize-image.sh is executed.

 

Some excerpts of customize-image.sh and its output.

fping 8.8.8.8
8.8.8.8 is alive
fping 193.99.144.80
193.99.144.80 is alive
fping heise.de # i.e. 193.99.144.80
heise.de address not found
cat /etc/resolv.conf
nameserver 8.8.8.8
eval '/bin/bash -c "apt-get update "' \
	${PROGRESS_LOG_TO_FILE:+' | tee -a $DEST/debug/debootstrap.log'} \
	${OUTPUT_DIALOG:+' | dialog --backtitle "$backtitle" --progressbox "Installing Armbian system..." 20 80'} \
	${OUTPUT_VERYSILENT:+' >/dev/null 2>/dev/null'}
Err http://httpredir.debian.org jessie InRelease
Err http://apt.armbian.com jessie InRelease
Err http://httpredir.debian.org jessie-updates InRelease
Err http://httpredir.debian.org jessie Release.gpg
  Could not resolve 'httpredir.debian.org'
...

Any help would be appreciated.

Regards,

Steve

 

 

 

What OS release are you building (wheezy/jessie/trusty)?

 

Can you try non-working setup without bridging network interfaces?

 

Edit: Also try adding "nslookup heise.de" to customize-image.sh, this may report more descriptive error message.

won't work, needs "dnsutils" package which is not installed by default

Does it work from non-virtual environment? I mean maybe "office router" (or something upstream) does DNS queries filtering and allows using only internal DNS server, while quieries to others (like 8.8.8.8) are blocked?

If OS X has nslookup command, you can try "nslookup heise.de" and "nslookup heise.de 8.8.8.8"

  • Author

nslookup heise.de 8.8.8.8 can't resolve.

 

I put an 

echo "nameserver ip-of-office-dns-server" > /etc/resolv.conf 

at the beginning of customize-image.sh and everything is fine.

 

Thank you for your help.

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.