I'm trying to change my computer's name in DNS so that others on the same subnet can refer to it by its new name -

however, whatever changes I make in /etc/hosts and by using 'hostname' to use the new_host_name and shutting-down and starting, DNS still gives me the old host name.

  1. I'm running Ubuntu 11.10 On...c
  2. All my colleagues/partners are on the same 172.xx.30.xxx subnet

Q1. How do I make the change permanent in DNS?

Q2. Will this ensure that other computers can see my computer with the new *new_host_name*?

Thanks in advance for any guidance and answers,



  • Where is the name being resolved? If it is being resolved by the upstream nameserver, you'll have to have it changed there. – pestilence Mar 7 '12 at 19:06
  • 0. I have a nameserver defined in /etc/resolv.conf: would it have to be changed there? 1. What exactly does 'having it changed there' entail? (I don't know enough to be able to tell my Windows IT guy, :-(, :-)) – Shailen Mar 7 '12 at 20:14
  • If you want other hosts on the network to automatically see your computer with the new host name (without modifying anything on their system), you will have to talk to your IT guy. It is possibly the DNS server in /etc/resolv.conf that needs to be updated, but it could also be the DHCP server as well. Windows can use NetBIOS names to resolve local machines, so that is another fish muddying the waters. (bottom line, talk to your IT guy) – pestilence Mar 8 '12 at 3:31
  • Thanks! I talked to him,but he's soo 'booked up with other stuff' slow, :-(, will just have to wait, and get the rest of the team to use IP's for now, I suppose. – Shailen Mar 9 '12 at 0:39

You should edit /etc/hosts and /etc/hostname to make it persistent between boots.

  • Thanks for the tip, didn't fly, though, because there're MAC address foul ups across the DNS and DHCP servers ... – Shailen Mar 9 '12 at 0:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.