How to add address to dns

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











up vote
3
down vote

favorite
1












My system is Ubuntu 18.04.



And I want to add 172.26.5.14 to system DNS addresses.



I search and find some solution like:



Add to /etc/resolv.conf, but data removed neither system or network-manager restart.



Add to /etc/resolvconf/resolv.conf.d/base or /etc/resolvconf/resolv.conf.d/head, it's not work and not shown in nmcli device show enp0s31f6 | grep IP4.DNS result.



How to add permanently to DNS servers?










share|improve this question







New contributor




Zabih Alipour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Do sudo nmcli con mod help to see how to use it!
    – George Udosen
    30 mins ago














up vote
3
down vote

favorite
1












My system is Ubuntu 18.04.



And I want to add 172.26.5.14 to system DNS addresses.



I search and find some solution like:



Add to /etc/resolv.conf, but data removed neither system or network-manager restart.



Add to /etc/resolvconf/resolv.conf.d/base or /etc/resolvconf/resolv.conf.d/head, it's not work and not shown in nmcli device show enp0s31f6 | grep IP4.DNS result.



How to add permanently to DNS servers?










share|improve this question







New contributor




Zabih Alipour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Do sudo nmcli con mod help to see how to use it!
    – George Udosen
    30 mins ago












up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





My system is Ubuntu 18.04.



And I want to add 172.26.5.14 to system DNS addresses.



I search and find some solution like:



Add to /etc/resolv.conf, but data removed neither system or network-manager restart.



Add to /etc/resolvconf/resolv.conf.d/base or /etc/resolvconf/resolv.conf.d/head, it's not work and not shown in nmcli device show enp0s31f6 | grep IP4.DNS result.



How to add permanently to DNS servers?










share|improve this question







New contributor




Zabih Alipour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











My system is Ubuntu 18.04.



And I want to add 172.26.5.14 to system DNS addresses.



I search and find some solution like:



Add to /etc/resolv.conf, but data removed neither system or network-manager restart.



Add to /etc/resolvconf/resolv.conf.d/base or /etc/resolvconf/resolv.conf.d/head, it's not work and not shown in nmcli device show enp0s31f6 | grep IP4.DNS result.



How to add permanently to DNS servers?







networking network-manager dns






share|improve this question







New contributor




Zabih Alipour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Zabih Alipour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Zabih Alipour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 1 hour ago









Zabih Alipour

1163




1163




New contributor




Zabih Alipour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Zabih Alipour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Zabih Alipour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Do sudo nmcli con mod help to see how to use it!
    – George Udosen
    30 mins ago
















  • Do sudo nmcli con mod help to see how to use it!
    – George Udosen
    30 mins ago















Do sudo nmcli con mod help to see how to use it!
– George Udosen
30 mins ago




Do sudo nmcli con mod help to see how to use it!
– George Udosen
30 mins ago










1 Answer
1






active

oldest

votes

















up vote
2
down vote













The easiest way is to go to



Settings -> Network -> LAN Interface (Cog Symbol) -> IPv4 Settings (tab) -> Additional DNS Servers



If you must do it from the command line, then you can type:



sudo nmcli con mod enp0s31f6 ipv4.dns "172.26.5.14"


update with:



sudo nmcli con up "enp0s31f6"





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
    );



    );






    Zabih Alipour is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1083656%2fhow-to-add-address-to-dns%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
    2
    down vote













    The easiest way is to go to



    Settings -> Network -> LAN Interface (Cog Symbol) -> IPv4 Settings (tab) -> Additional DNS Servers



    If you must do it from the command line, then you can type:



    sudo nmcli con mod enp0s31f6 ipv4.dns "172.26.5.14"


    update with:



    sudo nmcli con up "enp0s31f6"





    share|improve this answer


























      up vote
      2
      down vote













      The easiest way is to go to



      Settings -> Network -> LAN Interface (Cog Symbol) -> IPv4 Settings (tab) -> Additional DNS Servers



      If you must do it from the command line, then you can type:



      sudo nmcli con mod enp0s31f6 ipv4.dns "172.26.5.14"


      update with:



      sudo nmcli con up "enp0s31f6"





      share|improve this answer
























        up vote
        2
        down vote










        up vote
        2
        down vote









        The easiest way is to go to



        Settings -> Network -> LAN Interface (Cog Symbol) -> IPv4 Settings (tab) -> Additional DNS Servers



        If you must do it from the command line, then you can type:



        sudo nmcli con mod enp0s31f6 ipv4.dns "172.26.5.14"


        update with:



        sudo nmcli con up "enp0s31f6"





        share|improve this answer














        The easiest way is to go to



        Settings -> Network -> LAN Interface (Cog Symbol) -> IPv4 Settings (tab) -> Additional DNS Servers



        If you must do it from the command line, then you can type:



        sudo nmcli con mod enp0s31f6 ipv4.dns "172.26.5.14"


        update with:



        sudo nmcli con up "enp0s31f6"






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 35 mins ago









        George Udosen

        17.6k93963




        17.6k93963










        answered 40 mins ago









        tudor

        1,84321642




        1,84321642




















            Zabih Alipour is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            Zabih Alipour is a new contributor. Be nice, and check out our Code of Conduct.












            Zabih Alipour is a new contributor. Be nice, and check out our Code of Conduct.











            Zabih Alipour is a new contributor. Be nice, and check out our Code of Conduct.













             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1083656%2fhow-to-add-address-to-dns%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            List of Gilmore Girls characters

            Confectionery