Results 1 to 7 of 7

Thread: changed hostname on server, others can't see new hostname

  1. #1
    Join Date
    Feb 2005
    Location
    Cleveland, OH
    Beans
    232
    Distro
    Ubuntu 14.04 Trusty Tahr

    changed hostname on server, others can't see new hostname

    I just changed the hostname and IP of my server yesterday (from server2 to server) in the /etc/hostname and /etc/hosts file, and updated my router config (for the static DHCP settings) to reflect the new hostname. However, all the rest of the PCs on the network still see it as "server2" at the new IP I gave it. "server" is not found. Is there something else I need to do here?

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: changed hostname on server, others can't see new hostname

    If it's a Samba server, you may need to change the Netbios name in /etc/samba/smb.conf
    Does server have a static address - or does it get a static lease from router? If a static lease (meaning server still uses dhclient), you may need to change the "send host-name" line in /etc/dhcp3/dhclient.conf
    Last edited by Iowan; January 1st, 2010 at 10:21 PM.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Feb 2005
    Location
    Cleveland, OH
    Beans
    232
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: changed hostname on server, others can't see new hostname

    It is set up as a static DHCP lease. I just checked the /etc/dhcp3/dhclient.conf and it appears to be using "send host-name "<hostname>";". If I run hostname on the server, it outputs "server" as it should.

    Also, if I try to ping "server" from elsewhere on the network it just tells me that it "could not find host server. Please check the name and try again."



    edit: I found that the windows PCs and WDTV devices seem to have trouble finding the new hostname, but the other ubuntu PC I have can ping it without issue.
    Last edited by talz13; January 2nd, 2010 at 02:16 AM.

  4. #4
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: changed hostname on server, others can't see new hostname

    What is acting as local DNS server? If it is the DHCP server, try changing "<hostname>" to "server" - and restart/reboot.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  5. #5
    Join Date
    Feb 2005
    Location
    Cleveland, OH
    Beans
    232
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: changed hostname on server, others can't see new hostname

    My linksys router (running tomato) is the DHCP / DNS server. The server PC is getting its IP from the router, and everything else on the network (besides the other ubuntu PC) still sees it as hostname "server2".

  6. #6
    Join Date
    Feb 2005
    Location
    Cleveland, OH
    Beans
    232
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: changed hostname on server, others can't see new hostname

    Any other ideas? I can get to my server as 'server' when I am tunneled in from another PC on the internet, so maybe something is missing with the rest of the computers on my local network? Do they need to flush their DNS or something?

  7. #7
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: changed hostname on server, others can't see new hostname

    Check the leases in the router/DHCP/DNS server - which name does it have?
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

Bookmarks

Posting Permissions

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