Jump to content

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


Recommended Posts

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

 

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

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

Important Information

Terms of Use - Privacy Policy - Guidelines