Ubuntu 18.04 - Mount NFS with FQDN not resolving address

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Trying to mount /home directories to a NFS share.



SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus 0 0 


However, in syslog it says that it cannot resolve the address. I'm guessing it'll be OK if I used an IP Address, however this is not feasible due to our storage solution (IP addresses could change at a given moment).



If I mount manually with above in my fstab with the command:



mount -a


It manages to mount fine.



I've also tried creating a systemd service that will do the mount -a command after network is up, but i still get the same problem.



Tried numerous different mounting options, including _netdev.



All help would be greatly appreciated.







share|improve this question



















  • 18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (see netstat -antup. And resolved get his forwarder from the NetworkManager active profile. See cat /var/run/NetworkManager/resolv.conf and cat /var/run/systemd/resolve/resolv.conf... I guess that dns resolution is not ready when the mount command starts.
    – cmak.fr
    Jun 11 at 8:26















up vote
0
down vote

favorite












Trying to mount /home directories to a NFS share.



SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus 0 0 


However, in syslog it says that it cannot resolve the address. I'm guessing it'll be OK if I used an IP Address, however this is not feasible due to our storage solution (IP addresses could change at a given moment).



If I mount manually with above in my fstab with the command:



mount -a


It manages to mount fine.



I've also tried creating a systemd service that will do the mount -a command after network is up, but i still get the same problem.



Tried numerous different mounting options, including _netdev.



All help would be greatly appreciated.







share|improve this question



















  • 18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (see netstat -antup. And resolved get his forwarder from the NetworkManager active profile. See cat /var/run/NetworkManager/resolv.conf and cat /var/run/systemd/resolve/resolv.conf... I guess that dns resolution is not ready when the mount command starts.
    – cmak.fr
    Jun 11 at 8:26













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Trying to mount /home directories to a NFS share.



SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus 0 0 


However, in syslog it says that it cannot resolve the address. I'm guessing it'll be OK if I used an IP Address, however this is not feasible due to our storage solution (IP addresses could change at a given moment).



If I mount manually with above in my fstab with the command:



mount -a


It manages to mount fine.



I've also tried creating a systemd service that will do the mount -a command after network is up, but i still get the same problem.



Tried numerous different mounting options, including _netdev.



All help would be greatly appreciated.







share|improve this question











Trying to mount /home directories to a NFS share.



SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus 0 0 


However, in syslog it says that it cannot resolve the address. I'm guessing it'll be OK if I used an IP Address, however this is not feasible due to our storage solution (IP addresses could change at a given moment).



If I mount manually with above in my fstab with the command:



mount -a


It manages to mount fine.



I've also tried creating a systemd service that will do the mount -a command after network is up, but i still get the same problem.



Tried numerous different mounting options, including _netdev.



All help would be greatly appreciated.









share|improve this question










share|improve this question




share|improve this question









asked Jun 11 at 8:14









Swinkid

12




12











  • 18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (see netstat -antup. And resolved get his forwarder from the NetworkManager active profile. See cat /var/run/NetworkManager/resolv.conf and cat /var/run/systemd/resolve/resolv.conf... I guess that dns resolution is not ready when the mount command starts.
    – cmak.fr
    Jun 11 at 8:26

















  • 18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (see netstat -antup. And resolved get his forwarder from the NetworkManager active profile. See cat /var/run/NetworkManager/resolv.conf and cat /var/run/systemd/resolve/resolv.conf... I guess that dns resolution is not ready when the mount command starts.
    – cmak.fr
    Jun 11 at 8:26
















18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (see netstat -antup. And resolved get his forwarder from the NetworkManager active profile. See cat /var/run/NetworkManager/resolv.conf and cat /var/run/systemd/resolve/resolv.conf... I guess that dns resolution is not ready when the mount command starts.
– cmak.fr
Jun 11 at 8:26





18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (see netstat -antup. And resolved get his forwarder from the NetworkManager active profile. See cat /var/run/NetworkManager/resolv.conf and cat /var/run/systemd/resolve/resolv.conf... I guess that dns resolution is not ready when the mount command starts.
– cmak.fr
Jun 11 at 8:26











1 Answer
1






active

oldest

votes

















up vote
0
down vote













To delay nfs mount until newtork is ready, add _netdev to option in the relevant entry in /etc/fstab. Like:



SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus,_netdev 0 0


From mount(8) manpage:



_netdev The filesystem resides on a device that requires network access
(used to prevent the system from attempting to mount these filesystems
until the network has been enabled on the system).





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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1045532%2fubuntu-18-04-mount-nfs-with-fqdn-not-resolving-address%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    To delay nfs mount until newtork is ready, add _netdev to option in the relevant entry in /etc/fstab. Like:



    SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus,_netdev 0 0


    From mount(8) manpage:



    _netdev The filesystem resides on a device that requires network access
    (used to prevent the system from attempting to mount these filesystems
    until the network has been enabled on the system).





    share|improve this answer

























      up vote
      0
      down vote













      To delay nfs mount until newtork is ready, add _netdev to option in the relevant entry in /etc/fstab. Like:



      SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus,_netdev 0 0


      From mount(8) manpage:



      _netdev The filesystem resides on a device that requires network access
      (used to prevent the system from attempting to mount these filesystems
      until the network has been enabled on the system).





      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        To delay nfs mount until newtork is ready, add _netdev to option in the relevant entry in /etc/fstab. Like:



        SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus,_netdev 0 0


        From mount(8) manpage:



        _netdev The filesystem resides on a device that requires network access
        (used to prevent the system from attempting to mount these filesystems
        until the network has been enabled on the system).





        share|improve this answer













        To delay nfs mount until newtork is ready, add _netdev to option in the relevant entry in /etc/fstab. Like:



        SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus,_netdev 0 0


        From mount(8) manpage:



        _netdev The filesystem resides on a device that requires network access
        (used to prevent the system from attempting to mount these filesystems
        until the network has been enabled on the system).






        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 11 at 8:52









        Soren A

        2,8821620




        2,8821620






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045532%2fubuntu-18-04-mount-nfs-with-fqdn-not-resolving-address%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Which professions warranted travel in Medieval times?

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error