Eric on 22 Oct 2009 11:15:57 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] hostname fqdn not working as I'd expect


My Ubuntu 8.10 workstation is giving me a pain in the network 

After fixing the config for nullmailer I started getting emails that
were being sent out by my own system.  A lot of these are bounces
because the "from" address is root@ursa.ursa    Why is that?


root@ursa:~# hostname
ursa
root@ursa:~# hostname --long
ursa
root@ursa:~# hostname --fqdn
ursa
root@ursa:~# domainname
lucii.dnsalias.org

So, how come the options --long or --fqdn don't give the right answer? 
Is this related to the ursa.ursa thing?

NOTE:  I have set this workstation to use a static IP address:  10.10.10.2
NOTE: The command: domainname
  prompted me to install NIS.  I had a problem binding to YP
  until I edited /etc/default/nis and swapped true and false for
  the NISSERVER and NISCLIENT variables per this:
    http://ubuntuforums.org/showthread.php?t=1257868
[Why do I even NEED NIS?  I have a server on my network that handles
DNS... shouldn't that cover it?]

Here is /etc/hostname:
root@ursa:~# cat /etc/hostname
ursa

Here is  /etc/hosts:
root@ursa:~# cat /etc/hosts
127.0.0.1       localhost
10.10.10.2      ursa
10.10.10.1      polaris

Here is /etc/resolv.conf:
root@ursa:~# cat /etc/resolv.conf
# Generated by NetworkManager
domain lucii.dnsalias.org
search lucii.dnsalias.org
nameserver 10.10.10.1


TIA for any information.

Eric

-- 
#  Eric Lucas
#
#                "Oh, I have slipped the surly bond of earth
#                 And danced the skies on laughter-silvered wings...
#                                        -- John Gillespie Magee Jr

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug