0
Schwemmlandebene

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

 

 

 

Share this post


Link to post
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

Share this post


Link to post
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"

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0