sudo unable to resolve host localhost.localdomain











up vote
6
down vote

favorite
2












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/wwwas per the following screenshots.



nano_screenshot



When I press CTRl + X then write Y and press enter,/kbd> it give me this error



errors_screenshot



Can someone please tell me how to resolve this problem?










share|improve this question
























  • 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

















up vote
6
down vote

favorite
2












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/wwwas per the following screenshots.



nano_screenshot



When I press CTRl + X then write Y and press enter,/kbd> it give me this error



errors_screenshot



Can someone please tell me how to resolve this problem?










share|improve this question
























  • 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















up vote
6
down vote

favorite
2









up vote
6
down vote

favorite
2






2





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/wwwas per the following screenshots.



nano_screenshot



When I press CTRl + X then write Y and press enter,/kbd> it give me this error



errors_screenshot



Can someone please tell me how to resolve this problem?










share|improve this question















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/wwwas per the following screenshots.



nano_screenshot



When I press CTRl + X then write Y and press enter,/kbd> it give me this error



errors_screenshot



Can someone please tell me how to resolve this problem?







12.04 ftp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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




















  • 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












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





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    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

























    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





    share|improve this answer



























      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





      share|improve this answer

























        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





        share|improve this answer














        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






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 26 '14 at 2:31









        Lucio

        12.2k2183157




        12.2k2183157










        answered Apr 26 '14 at 1:02









        Dave N

        6112




        6112






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei