Now make sure /etc/nf is a symlink to /run/resolvconf/nf sudo ln -s /run/resolvconf/nf /etc/nf sudo nano /etc/resolvconf//baseĪdd two public and your local if you have one nameserver How to correctly add static entries to nf is open up your terminal. I've googled it a bit and the common resolution is to switch to DHCP which I don't want to do since this is my home server.ĭNS operation in Ubuntu 12.04 has changed substantially and in my opinion is slightly incomplete however it is an improvement, it's only lacking a local dns cache and can be installed manually. My /etc/nf and /etc/resolvconf//base are both empty and my /etc/resolvconf//original says: nameserver 192.168.1.1 I use static IP and my /etc/network/interfaces looks like this: auto eth0 But am unable to ping So, I'm guessing something is wrong with my DNS setup, but not sure what. I am able to ping all the other hosts on the network and also Google's DNS 8.8.8.8. Running sudo apt-get update on it produces errors like this: W: Failed to fetch Something wicked happened resolving 'au.:http' (-5 - No address associated with hostname) I’m not sure what the difference is and why it doesn’t update in the About page, but that’s how it worked for me.I have a ubuntu 12.04 server. So there seems to be a difference between the device name and the host name. It’s worth noting that the device name in Settings will still show something else. Once you change it in both of these locations, you can restart and the new name will remain. Use the following command: sudo vi /etc/hostsĬhange the second line that starts with 127.0.0.1. Once you change the name there, you also need to change it in one other location. Note that to delete letters using x, you have to press ESC first to get out of Insert or Append mode first. You can also press the letter a to go to Append mode. To delete characters, you press the x key. In vi, you can go into Insert mode by pressing the letter i. The file should have nothing but the hostname in the first line. To do that, open terminal and type in the following command: sudo vi /etc/hostname If you need to change it permanently, you can edit the hostname file I talked about earlier. This will change the host name, but it will go back to whatever is in the /etc/hostname file after a restart. Edit Hostname and Hosts FilesĪnother way to change the host name is to open a Terminal window and type in the following command: sudo hostname new-name It’s worth noting that this method will change the host name permanently, meaning you can restart and the new name will remain. Just type the new host name you would like and press Enter. You will see an editable text box called Device name. When you click on Details, it should bring you to the About screen automatically. If you had to open Settings, scroll all the way down to where it says Details and click on that. If the gear icon is in the top-right corner, click on About this Computer. The easiest way to change your Ubuntu hostname is to simply go to Settings.ĭepending on your version, it’s the gear icon at the top right of the screen or the gear icon in the new dock. Luckily, there is a different way that is easier. Previously, it was the only way to change the host name. There is a hostname file in the /etc directory that contains your hostname.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |