Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Feb 23, 2014 6:47 am 
Offline
Junior Member
User avatar

Joined: Fri Feb 21, 2014 7:26 am
Posts: 34
Website: http://www.alancoleman.co.uk
Location: Bath. UK
Hello,

I'm setting up my linode and securing my server using the following documentation: https://library.linode.com/securing-your-server

On executing the following command:

Code:
sudo chmod +x /etc/network/if-pre-up.d/firewall 


I'm receiving this message:

Code:
sudo: unable to resolve host amidala


Any help would be appreciated.


Top
   
PostPosted: Sun Feb 23, 2014 8:14 am 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
Is 'amidala' a reference to your Linode? Please provide the output from the following two commands:
Code:
cat /etc/hostname
cat /etc/hosts


Top
   
PostPosted: Sun Feb 23, 2014 9:17 am 
Offline
Junior Member
User avatar

Joined: Fri Feb 21, 2014 7:26 am
Posts: 34
Website: http://www.alancoleman.co.uk
Location: Bath. UK
Many thanks for replying.

Code:
alan@amidala:~$ cat /etc/hostname
amidala
alan@amidala:~$ cat /etc/hosts
127.0.0.1   localhost
127.0.1.1   ubuntu

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


Thanks again


Top
   
PostPosted: Sun Feb 23, 2014 9:31 am 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
Boomfelled,
You don't have any reference to 'amidala' in your hosts file. That's why it's not resolving. You may have missed this:
https://library.linode.com/getting-star ... -etc-hosts


Top
   
PostPosted: Sun Feb 23, 2014 10:35 am 
Offline
Junior Member
User avatar

Joined: Fri Feb 21, 2014 7:26 am
Posts: 34
Website: http://www.alancoleman.co.uk
Location: Bath. UK
Great, that's fixed it, I must have missed that somehow.

Thanks again for your help. :-)


Top
   
PostPosted: Sun Feb 23, 2014 10:38 am 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
Glad I could help.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group