hostname ?

Discussion in 'Installation/Configuration' started by drillsar, Mar 23, 2010.

  1. drillsar

    drillsar New Member

    im new to linux so I hope this isnt a stupid ?

    First ? I have a DHCP server but I set up this using static IP

    If I have to use DHCP what do I do? I have to make a zone or something correct? Im using zoneedit for DNS and virtualmin

    But i purchased a domain and I want to host it.

    My isp is comcast

    the host I want to call it say servix
    domain is example.com

    under linksys router I put servix under host, domain example.com

    in /etc/sysconfig/network I put

    host = servix
    domain = example.com

    in /etc/hosts

    127.0.0.1 servix.example.com servix localhost localhost.localdomain
    192.168.1.144 www.example.com www

    in /etc/resolv.conf I have:

    search servix.example.com
    nameserver 192.168.1.1
    comcast servers

    do I have to add zoneedit servers to the resolv.conf ?

    Im thinking its my DHCP server so how can I change the hostname?

    when i type in hostname it comes back servix.example.com but when i type hostname --fqdn says unknown host
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Which distribution do you use?
    If name resolution is working, you don't have to add additional nameservers to your resolv.conf.
     
  3. drillsar

    drillsar New Member

    using centos

    Yeah niw DHCP is giving me my hostname of example.com but do I have to name a machine name?

    How do I tell DHCP to not touch resolv.conf?

    because i need to add nameserver 192.168.1.1 correct?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    How do yo mean that?

    DHCP doesn't touch your resolv.conf if you've given the system a static IP.
     

Share This Page