Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-39537

[RHEL-10]hostname -f cannot show fqdn

    • authselect-1.5.0-7.el10
    • None
    • Moderate
    • sst_idm_sssd
    • ssg_idm
    • 1
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None

      What were you trying to do that didn't work?

      Running 'hostname -f' or 'dnsdomainname' in RHEL-10 can only print hostname but not fqdn.

      Please provide the package NVR for which bug is seen:

      hostname-3.23-12.el10.x86_64

      How reproducible:

      100%

      Steps to Reproduce:

      1. Start a VM on Azure.

      2. Check fqdn: # hostname -f

      Actual results:

      It only prints hostname but not fqdn:

      1. hostname -f
        wala10newtest105230906-vm1

       

      When I search for my hostname on DNS it can print the fqdn:

      1. nslookup `hostname`
        Server: 168.63.129.16
        Address: 168.63.129.16#53

      Non-authoritative answer:
      Name: wala10newtest105230906-vm1.hz1j3miw15lupck5xokl3wb4cg.bx.internal.cloudapp.net
      Address: 10.0.0.4

       

      In RHEL-9.5 it can print the fqdn:

      $ hostname -f
      wala90kernel94armv6-vm2.s0ndvlc20tne5p0z3k5ck253hb.xx.internal.cloudapp.net

      Expected results:

      Running 'hostname -f' can print fqdn.

              pbrezina@redhat.com Pavel Brezina
              yuxisun@redhat.com Yuxin Sun
              Pavel Brezina Pavel Brezina
              Dan Lavu Dan Lavu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: