Hostname and /etc/hosts file? not sure

Discussion in 'HOWTO-Related Questions' started by GerardNijboer, Aug 25, 2007.

  1. GerardNijboer

    GerardNijboer New Member

    Hi,

    I am doing the Perfect Setup for Ubuntu 6.06 LTS that can be found on:
    http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p5
    I already set the /etc/hosts file, and just filled in something hoping it would all come together later on.
    But now, at step 11, I need to set up the mail systems, and for that, I need to be sure of the servername.
    The writer of the HOWTO uses, server1.example.com.
    Considering the fact that I am the owner of the domain www.monstagames.nl, I think I can use server.monstagames.nl?
    But the server is at my home, and has no other .monstagames.nl devices in its network.
    I set up my /etc/hosts file like this:
    I hope this looks clear to you, any help is welcome.
    Thanks in advance.

    Cheers,
    Gerard Nijboer
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Yes, you can use that hostname, but you should then also create an A record for server.monstagames.nl pointing to your public IP address.

    If you have a dynamic IP address, it's better to get a hostname from dyndns.org and use that one.
     
  3. GerardNijboer

    GerardNijboer New Member

    Okay, thanks.
    Well, my public IP is always fixed to 80.61.36.XX, so I guess I don't need a DynDNS.org record.
    I went to the control panel of my dns provider, and set up an A record to my public IP, and everything works now!
    Thanks Falco.
     

Share This Page