hostname FQDN
Colin Law
clanlaw at gmail.com
Fri Feb 12 10:27:37 UTC 2016
On 12 February 2016 at 10:12, thufir <hawat.thufir at gmail.com> wrote:
> Why does the --all-fqdns return an empty line?
>From man page
-A, --all-fqdns
Displays all FQDNs of the machine. This option
enumerates all configured network
addresses on all configured network interfaces, and
translates them to DNS domain
names. Addresses that cannot be translated (i.e. because
they do not have an appro‐
priate reverse IP entry) are skipped. Note that
different addresses may resolve to
the same name, therefore the output may contain
duplicate entries. Do not make any
assumptions about the order of the output.
Note the bit about skipping. Is that the answer?
Colin
>
> thufir at tleilax:~$
> thufir at tleilax:~$ hostname -f
> tleilax.bounceme.net
> thufir at tleilax:~$
> thufir at tleilax:~$ hostname --all-ip-addresses
> 192.168.1.4
> thufir at tleilax:~$
> thufir at tleilax:~$ hostname -i
> 127.0.1.1
> thufir at tleilax:~$
> thufir at tleilax:~$ cat /etc/hosts
> 127.0.0.1 localhost
> 127.0.1.1 tleilax.bounceme.net tleilax
>
> # The following lines are desirable for IPv6 capable hosts
> ::1 ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> thufir at tleilax:~$
> thufir at tleilax:~$ hostname --all-fqdns
>
> thufir at tleilax:~$
>
>
> thanks,
>
> Thufir
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
More information about the ubuntu-users
mailing list