Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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,

Best,

Shailen

share|improve this question
    
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

1 Answer 1

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

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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