Project

General

Profile

Actions

Bug #5

open

Bilder doesn't recognise hostnames of ubuntu 16.04 machines

Added by Jonathan Smith over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
04/14/2017
Due date:
% Done:

0%

Estimated time:

Description

Always gives:

Environment settings:
Variable RUNNRSYSTEM = "Ubuntu16.04_x86_64".
Variable USER = "correctUsername".
Variable BLDRHOSTID = "3(NXDOMAIN)".
Variable CPUINFO = "Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz".
Variable FQHOSTNAME = "3(NXDOMAIN)".
Variable UQHOSTNAME = "3(NXDOMAIN)".
Variable FQMAILHOST = "3(NXDOMAIN)".
Variable UQMAILHOST = "3(NXDOMAIN)".
Variable FQWEBHOST = "3(NXDOMAIN)".
Variable MAILSRVR is unset.
Variable BLDR_INSTALL_DIR = "/internal".
Variable CONTRIB_DIR = "/contrib".
Variable DEVELDOCS_DIR = "/internal/develdocs".
Variable USERDOCS_DIR = "/internal/userdocs".
Variable SVNPKGS_TOPDIR is unset.
Variable TMPDIR is unset.
Variable PATH = "/contrib/bin:/contrib/texlive/bin/x86_64-linux:/contrib/cmake-3.7.1-ser/bin:/internal/bin:/home/jonny/bin:/home/jonny/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin".
Variable PATH_NATIVE is unset.

The 3(NXDOMAIN) applies whatever, the workaround is to set FQHOSTNAME eg

export FQHOSTNAME=$HOSTNAME

Not sure why HOSTNAME is not checked, but evidently something is up there.

Actions #1

Updated by Jonathan Smith over 7 years ago

3(NXDOMAIN) is coming from

host $ip | sed -e 's/.* //' -e 's/.$//'

in bilder/runnr/fqdn.sh shortly after

echo "$fqdn not found by host."


at about line 45.

Some observations:
ubuntu 16 doesn't write the hostname only to standard error, so it gets set up top of that file.
Your average user may be working on her own laptop and not have a resolvable fqdn for their host.

I wonder if the issue I ran into is less ubuntu16 specific, but more about machines that do not have full DNS set up. An example with my IP address spoofed...

host 192.168.52.131
Host 131.52.168.192.in-addr.arpa. not found: 3(NXDOMAIN)

Jonathan Smith wrote:

Always gives:

[...]

The 3(NXDOMAIN) applies whatever, the workaround is to set FQHOSTNAME eg
[...]

Not sure why HOSTNAME is not checked, but evidently something is up there.

Actions

Also available in: Atom PDF