[opensuse] "hostname -f" - why do I not get a domain name??
I have two virtually identical systems, B10 and B11. One is a copy of the other apart from names and network addresses. On B10, "hostname -f" produces the hostname without the domain name, i.e. only "b10". On B11, "hostname -f" produces the hostname with the domain name, i.e. "b11.example.com". I have another few Bxx systems, all virtually identical copies of the same origin - none of them have a problem with "hostname -f". I suspect a DNS issue, but I can't put my finger on it. Any suggestions? -- Per Jessen, Zürich (5.9°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
It resolves host name using gethostbyname(). It may be DNS or local hosts depending on nsswitch configuration. Отправлено с iPhone
21 окт. 2015 г., в 11:12, Per Jessen <per@computer.org> написал(а):
I have two virtually identical systems, B10 and B11. One is a copy of the other apart from names and network addresses.
On B10, "hostname -f" produces the hostname without the domain name, i.e. only "b10". On B11, "hostname -f" produces the hostname with the domain name, i.e. "b11.example.com".
I have another few Bxx systems, all virtually identical copies of the same origin - none of them have a problem with "hostname -f".
I suspect a DNS issue, but I can't put my finger on it. Any suggestions?
-- Per Jessen, Zürich (5.9°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrei Borzenkov wrote:
It resolves host name using gethostbyname(). It may be DNS or local hosts depending on nsswitch configuration.
Thanks, that helped me find it - wrong entry in /etc/hosts. Always nice with some extra pairs of eyes! -- Per Jessen, Zürich (6.2°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 10/21/2015 04:47 AM, Per Jessen wrote:
Andrei Borzenkov wrote:
It resolves host name using gethostbyname(). It may be DNS or local hosts depending on nsswitch configuration.
Thanks, that helped me find it - wrong entry in /etc/hosts. Always nice with some extra pairs of eyes!
Especially when they get as old as ours. :-) -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen composed on 2015-10-21 10:12 (UTC+0200):
I have two virtually identical systems, B10 and B11. One is a copy of the other apart from names and network addresses.
On B10, "hostname -f" produces the hostname without the domain name, i.e. only "b10". On B11, "hostname -f" produces the hostname with the domain name, i.e. "b11.example.com".
I have another few Bxx systems, all virtually identical copies of the same origin - none of them have a problem with "hostname -f".
I suspect a DNS issue, but I can't put my finger on it. Any suggestions?
Which openSUSE? What do /etc/HOSTNAME and/or /etc/hostname actually contain? What's in /etc/hosts? What's in /etc/resolv.conf? Maybe https://bugzilla.opensuse.org/show_bug.cgi?id=872264 contains a clue if you need more, but the hostname man page suggests to me /etc/hosts on b10 needs fixing. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Felix Miata wrote:
but the hostname man page suggests to me /etc/hosts on b10 needs fixing.
Yup, that was it. A false entry for 'b10' in /etc/hosts. -- Per Jessen, Zürich (6.2°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Felix Miata <mrmazda@earthlink.net> [10-21-15 04:39]: [...]
Which openSUSE? What do /etc/HOSTNAME and/or /etc/hostname actually contain? What's in /etc/hosts? What's in /etc/resolv.conf?
On my Tw systems /etc/HOSTNAME is sym-linked to /etc/hostname. On my 13.1 server, there is no /etc/HOSTNAME. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Patrick Shanahan <paka@opensuse.org> [2015-10-21 07:46]:
* Felix Miata <mrmazda@earthlink.net> [10-21-15 04:39]: [...]
Which openSUSE? What do /etc/HOSTNAME and/or /etc/hostname actually contain? What's in /etc/hosts? What's in /etc/resolv.conf?
On my Tw systems /etc/HOSTNAME is sym-linked to /etc/hostname. On my 13.1 server, there is no /etc/HOSTNAME.
That's weird. On my 13.1 system, there is an /etc/HOSTNAME but no /etc/hostname (!). /etc/HOSTNAME is owned by the netcfg.noarch RPM on my system. Anyone know what owns /etc/hostname? --Phil -- Philip Amadeo Saeli psaeli@zorodyne.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Philip Amadeo Saeli <psaeli@zorodyne.com> [10-21-15 14:06]:
* Patrick Shanahan <paka@opensuse.org> [2015-10-21 07:46]:
* Felix Miata <mrmazda@earthlink.net> [10-21-15 04:39]: [...]
Which openSUSE? What do /etc/HOSTNAME and/or /etc/hostname actually contain? What's in /etc/hosts? What's in /etc/resolv.conf?
On my Tw systems /etc/HOSTNAME is sym-linked to /etc/hostname. On my 13.1 server, there is no /etc/HOSTNAME.
That's weird. On my 13.1 system, there is an /etc/HOSTNAME but no /etc/hostname (!).
/etc/HOSTNAME is owned by the netcfg.noarch RPM on my system. Anyone know what owns /etc/hostname?
I stand corrected. It is indeed /etc/HOSTNAME that exists and is owned by netcfg. On Tw netcfg owns both :) -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015-10-21 20:05, Philip Amadeo Saeli wrote:
* Patrick Shanahan <paka@opensuse.org> [2015-10-21 07:46]:
On my Tw systems /etc/HOSTNAME is sym-linked to /etc/hostname. On my 13.1 server, there is no /etc/HOSTNAME.
That's weird. On my 13.1 system, there is an /etc/HOSTNAME but no /etc/hostname (!).
Not strange at all. Other linuxes hage "hostname", but SUSE* had HOSTNAME since ever, probably. Recently openSUSE has added "hostname", but the old file has not been removed because it would break applications expecting it. One is a symlink to the other. In 13.1 you need do nothing about it. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlYn5c4ACgkQja8UbcUWM1yBkgD/RoyVyHGxboggUYWOlU/8xoXh I3YUxxQC0QWmtW+Kpl4A/ifcox60e2fWIptSa8RLZEo/tEv7WIqGsK5XafMvORe+ =Y6/c -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (7)
-
Andrei Borzenkov
-
Carlos E. R.
-
Felix Miata
-
Ken Schneider - openSUSE
-
Patrick Shanahan
-
Per Jessen
-
Philip Amadeo Saeli