[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] need some education about GNU command h ostname -s a
From: |
M Berlin |
Subject: |
Re: [bug-inetutils] need some education about GNU command h ostname -s and -i |
Date: |
Mon, 27 May 2013 12:11:20 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
altissima2010 <at> habarbadi.com <altissima2010 <at> habarbadi.com> writes:
>
> Hello,
> We've installed a new ArchLinux system with XFCE. We added a Generic
> Monitor panel app with a small bash script to display the hostname and
> IP address. There is a problem - a twenty second delay which locks up
> the panel app.
>
> In a terminal:
> hostname displays the string immediately, no problem.
> hostname -s delays about twenty seconds before showing the same string.
> hostname -i delays about thirty seconds before showing the LAN IP
> address from the router. We tried switching between Belkin and LinkSys
> routers, and there was no difference, the problem persisted.
>
> This is clearly something that we did incorrectly, because the same
> script works fine on another Arch installation.
> Obviously we've setup something wrong in the network config, but where?
>
> Can you explain where hostname looks for the -s and -i?
>
> Thanks in advance,
> M. Berlin for Altissima Groupings
> www.altissimagroupings.com
>
>
Found the solution:
https://wiki.archlinux.org/index.php/Avahi
see the section on "Hostname Resolution"
>>>>
...
However by default, .local querying is disabled in Arch Linux.
To enable it edit the file /etc/nsswitch.conf and change the line:
hosts: files myhostname dns
to:
hosts: files myhostname mdns_minimal [NOTFOUND=return] dns
<<<<