Find the answer to your Linux question:
Results 1 to 4 of 4
Hello all, 1. I have a DNS server on opensuse 10.3 2. the domain: kdc.pridelands.com is LOCAL only (no access to outside world) 3. the nameserver is installed on zazu.kdc.pridelands.com ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    33

    FQDN please

    Hello all,

    1. I have a DNS server on opensuse 10.3
    2. the domain: kdc.pridelands.com is LOCAL only (no access to outside world)
    3. the nameserver is installed on zazu.kdc.pridelands.com
    4. the mailserver will be installed on zazu.kdc.pridelands.com (there are 5 local machines that will send email to each other)
    5. reverse lookup for the DNSserver has been done

    PROBLEM:
    "hostname" returns "zazu"
    NEEDED:
    "hostname" to return "zazu.kdc.pridelands.com"
    WHY:
    ZIMBRA product NEEDS for "hostname" to return the FQDN
    >>zazu:~ # dig -x 192.168.1.70
    Please provide advice as to how to make this happen. Information is below.

    TIA

    __________________________________________________ _____________


    >> zazu:~ # hostname

    zazu

    >> zazu:~ # hostname -f

    zazu.kdc.pridelands.com


    >> zazu:~ # ping zazu

    PING zazu.kdc.pridelands.com (192.168.1.70) 56(84) bytes of data.
    64 bytes from zazu.kdc.pridelands.com (192.168.1.70): icmp_seq=1 ttl=64 time=0.028 ms


    >> zazu:~ # cat /etc/HOSTNAME

    zazu.kdc.pridelands.com

    >>zazu:~ # dig -x 192.168.1.70

    ; <<>> DiG 9.4.1-P1 <<>> -x 192.168.1.70
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37951
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;70.1.168.192.in-addr.arpa. IN PTR

    ;; ANSWER SECTION:
    70.1.168.192.in-addr.arpa. 172800 IN PTR zazu.kdc.pridelands.com.

    ;; AUTHORITY SECTION:
    1.168.192.in-addr.arpa. 172800 IN NS 70.1.168.192.in-addr.arpa.

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sun Apr 11 10:31:52 2010
    ;; MSG SIZE rcvd: 94



    >>zazu:~ # dig zazu.kdc.pridelands.com

    ; <<>> DiG 9.4.1-P1 <<>> zazu.kdc.pridelands.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57961
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;zazu.kdc.pridelands.com. IN A

    ;; ANSWER SECTION:
    zazu.kdc.pridelands.com. 172800 IN A 192.168.1.70

    ;; AUTHORITY SECTION:
    kdc.pridelands.com. 172800 IN NS zazu.kdc.pridelands.com.

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sun Apr 11 10:30:04 2010
    ;; MSG SIZE rcvd: 71




    >>zazu:~ # dig zazu

    ; <<>> DiG 9.4.1-P1 <<>> zazu
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40162
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;zazu. IN A

    ;; AUTHORITY SECTION:
    . 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2010041100 1800 900 604800 86400

    ;; Query time: 44 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sun Apr 11 10:28:49 2010
    ;; MSG SIZE rcvd: 97


    >> zazu:~ # cat /etc/hosts
    #
    # hosts This file describes a number of hostname-to-address
    # mappings for the TCP/IP subsystem. It is mostly
    # used at boot time, when no name servers are running.
    # On small systems, this file can be used instead of a
    # "named" name server.
    # Syntax:
    #
    # IP-Address Full-Qualified-Hostname Short-Hostname
    #

    127.0.0.1 localhost

    # special IPv6 addresses
    ::1 localhost ipv6-localhost ipv6-loopback

    fe00::0 ipv6-localnet

    ff00::0 ipv6-mcastprefix
    ff02::1 ipv6-allnodes
    ff02::2 ipv6-allrouters
    ff02::3 ipv6-allhosts

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    so is it actually running the hostname command? if so, you could just add
    Code:
    alias hostname='hostname -f'
    to your .bashrc file of the user if its being ran from the terminal. when you do add it, you have to invoke another shell to make it take effect.
    linux user # 503963

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Hmm...I've been running Zimbra servers for ~2+ years and thru a couple of upgrades...

    My Zimbra installs have no such requirement. In general, "hostname" is expected to return the shortname, while the -f switch appends the domain to the shortname.

  4. #4
    Just Joined!
    Join Date
    May 2008
    Posts
    36
    I remember having a similar problem when I had to set up a Globus Grid...

    The quick fix there was to include the fqdn and corresponding ip as the first entry in /etc/hosts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...