sudo unable to resolve host localhost.localdomain
up vote
6
down vote
favorite
Hello guys
When I run
sudo nano /etc/proftpd/proftpd.conf
I get this error :
sudo unable to resolve host localhost.localdomain
I'm trying to set DefaultRoot
to /var/www
as per the following screenshots.
When I press CTRl + X then write Y and press enter,/kbd> it give me this error
Can someone please tell me how to resolve this problem?
12.04 ftp
add a comment |
up vote
6
down vote
favorite
Hello guys
When I run
sudo nano /etc/proftpd/proftpd.conf
I get this error :
sudo unable to resolve host localhost.localdomain
I'm trying to set DefaultRoot
to /var/www
as per the following screenshots.
When I press CTRl + X then write Y and press enter,/kbd> it give me this error
Can someone please tell me how to resolve this problem?
12.04 ftp
what does /etc/hosts contains ?
– nux
Jan 28 '14 at 21:57
Please explain , did you mean my pc (windows 7) or on ths server because i'am running propdf on ubuntu 12.0.4 vps
– user241110
Jan 29 '14 at 0:27
Hello sir , it contains
– user241110
Jan 29 '14 at 0:50
127.0.0.1 localhost
127.0.1.1 ubuntu12.pcsmarthosting.co.uk ubuntu12
# 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
@nux
– user241110
Jan 29 '14 at 0:51
add a comment |
up vote
6
down vote
favorite
up vote
6
down vote
favorite
Hello guys
When I run
sudo nano /etc/proftpd/proftpd.conf
I get this error :
sudo unable to resolve host localhost.localdomain
I'm trying to set DefaultRoot
to /var/www
as per the following screenshots.
When I press CTRl + X then write Y and press enter,/kbd> it give me this error
Can someone please tell me how to resolve this problem?
12.04 ftp
Hello guys
When I run
sudo nano /etc/proftpd/proftpd.conf
I get this error :
sudo unable to resolve host localhost.localdomain
I'm trying to set DefaultRoot
to /var/www
as per the following screenshots.
When I press CTRl + X then write Y and press enter,/kbd> it give me this error
Can someone please tell me how to resolve this problem?
12.04 ftp
12.04 ftp
edited Jan 28 '14 at 21:50
hmayag
1,96831318
1,96831318
asked Jan 28 '14 at 20:37
user241110
31112
31112
what does /etc/hosts contains ?
– nux
Jan 28 '14 at 21:57
Please explain , did you mean my pc (windows 7) or on ths server because i'am running propdf on ubuntu 12.0.4 vps
– user241110
Jan 29 '14 at 0:27
Hello sir , it contains
– user241110
Jan 29 '14 at 0:50
127.0.0.1 localhost
127.0.1.1 ubuntu12.pcsmarthosting.co.uk ubuntu12
# 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
@nux
– user241110
Jan 29 '14 at 0:51
add a comment |
what does /etc/hosts contains ?
– nux
Jan 28 '14 at 21:57
Please explain , did you mean my pc (windows 7) or on ths server because i'am running propdf on ubuntu 12.0.4 vps
– user241110
Jan 29 '14 at 0:27
Hello sir , it contains
– user241110
Jan 29 '14 at 0:50
127.0.0.1 localhost
127.0.1.1 ubuntu12.pcsmarthosting.co.uk ubuntu12
# 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
@nux
– user241110
Jan 29 '14 at 0:51
what does /etc/hosts contains ?
– nux
Jan 28 '14 at 21:57
what does /etc/hosts contains ?
– nux
Jan 28 '14 at 21:57
Please explain , did you mean my pc (windows 7) or on ths server because i'am running propdf on ubuntu 12.0.4 vps
– user241110
Jan 29 '14 at 0:27
Please explain , did you mean my pc (windows 7) or on ths server because i'am running propdf on ubuntu 12.0.4 vps
– user241110
Jan 29 '14 at 0:27
Hello sir , it contains
– user241110
Jan 29 '14 at 0:50
Hello sir , it contains
– user241110
Jan 29 '14 at 0:50
127.0.0.1 localhost
127.0.1.1 ubuntu12.pcsmarthosting.co.uk ubuntu12
# 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
@nux– user241110
Jan 29 '14 at 0:51
127.0.0.1 localhost
127.0.1.1 ubuntu12.pcsmarthosting.co.uk ubuntu12
# 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
@nux– user241110
Jan 29 '14 at 0:51
add a comment |
1 Answer
1
active
oldest
votes
up vote
6
down vote
Edit your server hosts file (/etc/hosts
). You are missing the domain. For example:
It probably has a line like:
127.0.0.1 localhost
Change it to:
127.0.0.1 localhost.localdomain localhost
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
down vote
Edit your server hosts file (/etc/hosts
). You are missing the domain. For example:
It probably has a line like:
127.0.0.1 localhost
Change it to:
127.0.0.1 localhost.localdomain localhost
add a comment |
up vote
6
down vote
Edit your server hosts file (/etc/hosts
). You are missing the domain. For example:
It probably has a line like:
127.0.0.1 localhost
Change it to:
127.0.0.1 localhost.localdomain localhost
add a comment |
up vote
6
down vote
up vote
6
down vote
Edit your server hosts file (/etc/hosts
). You are missing the domain. For example:
It probably has a line like:
127.0.0.1 localhost
Change it to:
127.0.0.1 localhost.localdomain localhost
Edit your server hosts file (/etc/hosts
). You are missing the domain. For example:
It probably has a line like:
127.0.0.1 localhost
Change it to:
127.0.0.1 localhost.localdomain localhost
edited Apr 26 '14 at 2:31
Lucio
12.2k2183157
12.2k2183157
answered Apr 26 '14 at 1:02
Dave N
6112
6112
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f412269%2fsudo-unable-to-resolve-host-localhost-localdomain%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
what does /etc/hosts contains ?
– nux
Jan 28 '14 at 21:57
Please explain , did you mean my pc (windows 7) or on ths server because i'am running propdf on ubuntu 12.0.4 vps
– user241110
Jan 29 '14 at 0:27
Hello sir , it contains
– user241110
Jan 29 '14 at 0:50
127.0.0.1 localhost
127.0.1.1 ubuntu12.pcsmarthosting.co.uk ubuntu12
# 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
@nux– user241110
Jan 29 '14 at 0:51