Fedora 29 VirtualBox will not use DNS from host VPN The 2019 Stack Overflow Developer Survey...

How can I have a shield and a way of attacking with a ranged weapon at the same time?

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

Kerning for subscripts of sigma?

How to charge AirPods to keep battery healthy?

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

What is this business jet?

Short story: child made less intelligent and less attractive

Likelihood that a superbug or lethal virus could come from a landfill

RequirePermission not working

Ubuntu Server install with full GUI

Can we generate random numbers using irrational numbers like π and e?

What do hard-Brexiteers want with respect to the Irish border?

How come people say “Would of”?

What is preventing me from simply constructing a hash that's lower than the current target?

Why are there uneven bright areas in this photo of black hole?

Why doesn't shell automatically fix "useless use of cat"?

Is there a way to generate a uniformly distributed point on a sphere from a fixed amount of random real numbers?

Can a flute soloist sit?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

A word that means fill it to the required quantity

Can you cast a spell on someone in the Ethereal Plane, if you are on the Material Plane and have the True Seeing spell active?

How to add class in ko template in magento2

Is Cinnamon a desktop environment or a window manager? (Or both?)

Why not take a picture of a closer black hole?



Fedora 29 VirtualBox will not use DNS from host VPN



The 2019 Stack Overflow Developer Survey Results Are InList all DNS Servers, including those pushed by VPNAccessing VirtualBox guest via VPNUse VirtualBox to access site on host from guest? the host and guest is linuxOpenVPN nameservers ignored by NetworkManager or whateverDNS temporarily fails with VPN addressesWhy is my ISP DNS still in resolv.conf after a VPN connection and how can this be fixed?Resolvconf not resetting DNS settingsWhy am I getting “Curl (6) Could not resolve host” after I did a “yum -y update”?UFW is blocking DNS requests through VPNManage a VPN TUN connection under fedora 29 dhcp routing dns





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I am running a Windows 10 machine for work (required) and so use VirtualBox to get a Fedora 29 machine so I can run code locally before pushing to production. Our github is behind a VPN and we use OpenVPN to do so, so in order to clone our repos I have to follow the following steps:




  1. Run OpenVPN as administrator on the host machine and authenticate

  2. Start VirtualBox and start the Fedora 29 machine

  3. Log in to the Virtual Machine from the host using PuTTy


I can ping the guest from the host and ping the host from the guest. My VirtualBox is set up to have both a Host-only adapter and an NAT adapter. The guest can access the internet entirely.



Now, the guest machine has NetworkManager installed and updated and when it launches it understands that the VPN uses a certain DNS, say x.x.x.x, I know this because of:



$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver general.dns.server.one
nameserver general.dns.server.two
nameserver x.x.x.x


Seems good, but now if I try and access the company website (let's call it internal.company.github.website.net), it fails to resolve the hostname:



$ host internal.company.github.website.net
Host internal.company.github.website.net not found: 3(NXDOMAIN)

$ curl internal.company.github.website.net
curl: (6) Could not resolve host: internal.company.github.website.net


And I know that the DNS in /etc/resolv.conf is correct because:



$ dig internal.company.github.website.net @x.x.x.x

; <<>> DiG 9.11.5-P4-RedHat-9.11.5-4.P4.fc29 <<>> internal.company.github.website.net @x.x.x.x
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58282
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL:


The status: NOERROR suggests everything is good and further down I can see it resolved to the correct IP.



I assumed that what was happening was it was trying to use the other two general DNS servers first (from resolv.conf), so I tried to set up a rule in dnsmasq by opening /etc/dnsmasq.conf and adding the rule:



server=/internal.company.github.website.net/x.x.x.x



But after a full system restart, the problem persists and I observe no changes.



In a similar vein, I have been trying to add the DNS to the top of resolv.conf but NetworkManager just overwrites it (as it is supposed to) - so no change there. Additionally, I would like to be able to not have to enter the DNS domain directly as I am conscious that it could change (I am not sure, I'm not in charge of our IT) and then I would have to go through this whole process again.



One very strange additional fact about this, is that one of my colleagues is using the same image and we both imported from scratch, and he can connect, but I cannot. Really strange stuff. Also I have completely disabled the Windows Firewall and Defender while I am testing this, so it cannot be that.



Edit: Side-note, I can avoid this problem by using the internal website's actual IP, thus avoiding the DNS lookup, but if this changes (again, I have no idea if if/when it will) then I will have to re-enter it, which seems like a pain.










share|improve this question









New contributor




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



























    1















    I am running a Windows 10 machine for work (required) and so use VirtualBox to get a Fedora 29 machine so I can run code locally before pushing to production. Our github is behind a VPN and we use OpenVPN to do so, so in order to clone our repos I have to follow the following steps:




    1. Run OpenVPN as administrator on the host machine and authenticate

    2. Start VirtualBox and start the Fedora 29 machine

    3. Log in to the Virtual Machine from the host using PuTTy


    I can ping the guest from the host and ping the host from the guest. My VirtualBox is set up to have both a Host-only adapter and an NAT adapter. The guest can access the internet entirely.



    Now, the guest machine has NetworkManager installed and updated and when it launches it understands that the VPN uses a certain DNS, say x.x.x.x, I know this because of:



    $ cat /etc/resolv.conf
    # Generated by NetworkManager
    nameserver general.dns.server.one
    nameserver general.dns.server.two
    nameserver x.x.x.x


    Seems good, but now if I try and access the company website (let's call it internal.company.github.website.net), it fails to resolve the hostname:



    $ host internal.company.github.website.net
    Host internal.company.github.website.net not found: 3(NXDOMAIN)

    $ curl internal.company.github.website.net
    curl: (6) Could not resolve host: internal.company.github.website.net


    And I know that the DNS in /etc/resolv.conf is correct because:



    $ dig internal.company.github.website.net @x.x.x.x

    ; <<>> DiG 9.11.5-P4-RedHat-9.11.5-4.P4.fc29 <<>> internal.company.github.website.net @x.x.x.x
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58282
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL:


    The status: NOERROR suggests everything is good and further down I can see it resolved to the correct IP.



    I assumed that what was happening was it was trying to use the other two general DNS servers first (from resolv.conf), so I tried to set up a rule in dnsmasq by opening /etc/dnsmasq.conf and adding the rule:



    server=/internal.company.github.website.net/x.x.x.x



    But after a full system restart, the problem persists and I observe no changes.



    In a similar vein, I have been trying to add the DNS to the top of resolv.conf but NetworkManager just overwrites it (as it is supposed to) - so no change there. Additionally, I would like to be able to not have to enter the DNS domain directly as I am conscious that it could change (I am not sure, I'm not in charge of our IT) and then I would have to go through this whole process again.



    One very strange additional fact about this, is that one of my colleagues is using the same image and we both imported from scratch, and he can connect, but I cannot. Really strange stuff. Also I have completely disabled the Windows Firewall and Defender while I am testing this, so it cannot be that.



    Edit: Side-note, I can avoid this problem by using the internal website's actual IP, thus avoiding the DNS lookup, but if this changes (again, I have no idea if if/when it will) then I will have to re-enter it, which seems like a pain.










    share|improve this question









    New contributor




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























      1












      1








      1








      I am running a Windows 10 machine for work (required) and so use VirtualBox to get a Fedora 29 machine so I can run code locally before pushing to production. Our github is behind a VPN and we use OpenVPN to do so, so in order to clone our repos I have to follow the following steps:




      1. Run OpenVPN as administrator on the host machine and authenticate

      2. Start VirtualBox and start the Fedora 29 machine

      3. Log in to the Virtual Machine from the host using PuTTy


      I can ping the guest from the host and ping the host from the guest. My VirtualBox is set up to have both a Host-only adapter and an NAT adapter. The guest can access the internet entirely.



      Now, the guest machine has NetworkManager installed and updated and when it launches it understands that the VPN uses a certain DNS, say x.x.x.x, I know this because of:



      $ cat /etc/resolv.conf
      # Generated by NetworkManager
      nameserver general.dns.server.one
      nameserver general.dns.server.two
      nameserver x.x.x.x


      Seems good, but now if I try and access the company website (let's call it internal.company.github.website.net), it fails to resolve the hostname:



      $ host internal.company.github.website.net
      Host internal.company.github.website.net not found: 3(NXDOMAIN)

      $ curl internal.company.github.website.net
      curl: (6) Could not resolve host: internal.company.github.website.net


      And I know that the DNS in /etc/resolv.conf is correct because:



      $ dig internal.company.github.website.net @x.x.x.x

      ; <<>> DiG 9.11.5-P4-RedHat-9.11.5-4.P4.fc29 <<>> internal.company.github.website.net @x.x.x.x
      ;; global options: +cmd
      ;; Got answer:
      ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58282
      ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL:


      The status: NOERROR suggests everything is good and further down I can see it resolved to the correct IP.



      I assumed that what was happening was it was trying to use the other two general DNS servers first (from resolv.conf), so I tried to set up a rule in dnsmasq by opening /etc/dnsmasq.conf and adding the rule:



      server=/internal.company.github.website.net/x.x.x.x



      But after a full system restart, the problem persists and I observe no changes.



      In a similar vein, I have been trying to add the DNS to the top of resolv.conf but NetworkManager just overwrites it (as it is supposed to) - so no change there. Additionally, I would like to be able to not have to enter the DNS domain directly as I am conscious that it could change (I am not sure, I'm not in charge of our IT) and then I would have to go through this whole process again.



      One very strange additional fact about this, is that one of my colleagues is using the same image and we both imported from scratch, and he can connect, but I cannot. Really strange stuff. Also I have completely disabled the Windows Firewall and Defender while I am testing this, so it cannot be that.



      Edit: Side-note, I can avoid this problem by using the internal website's actual IP, thus avoiding the DNS lookup, but if this changes (again, I have no idea if if/when it will) then I will have to re-enter it, which seems like a pain.










      share|improve this question









      New contributor




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












      I am running a Windows 10 machine for work (required) and so use VirtualBox to get a Fedora 29 machine so I can run code locally before pushing to production. Our github is behind a VPN and we use OpenVPN to do so, so in order to clone our repos I have to follow the following steps:




      1. Run OpenVPN as administrator on the host machine and authenticate

      2. Start VirtualBox and start the Fedora 29 machine

      3. Log in to the Virtual Machine from the host using PuTTy


      I can ping the guest from the host and ping the host from the guest. My VirtualBox is set up to have both a Host-only adapter and an NAT adapter. The guest can access the internet entirely.



      Now, the guest machine has NetworkManager installed and updated and when it launches it understands that the VPN uses a certain DNS, say x.x.x.x, I know this because of:



      $ cat /etc/resolv.conf
      # Generated by NetworkManager
      nameserver general.dns.server.one
      nameserver general.dns.server.two
      nameserver x.x.x.x


      Seems good, but now if I try and access the company website (let's call it internal.company.github.website.net), it fails to resolve the hostname:



      $ host internal.company.github.website.net
      Host internal.company.github.website.net not found: 3(NXDOMAIN)

      $ curl internal.company.github.website.net
      curl: (6) Could not resolve host: internal.company.github.website.net


      And I know that the DNS in /etc/resolv.conf is correct because:



      $ dig internal.company.github.website.net @x.x.x.x

      ; <<>> DiG 9.11.5-P4-RedHat-9.11.5-4.P4.fc29 <<>> internal.company.github.website.net @x.x.x.x
      ;; global options: +cmd
      ;; Got answer:
      ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58282
      ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL:


      The status: NOERROR suggests everything is good and further down I can see it resolved to the correct IP.



      I assumed that what was happening was it was trying to use the other two general DNS servers first (from resolv.conf), so I tried to set up a rule in dnsmasq by opening /etc/dnsmasq.conf and adding the rule:



      server=/internal.company.github.website.net/x.x.x.x



      But after a full system restart, the problem persists and I observe no changes.



      In a similar vein, I have been trying to add the DNS to the top of resolv.conf but NetworkManager just overwrites it (as it is supposed to) - so no change there. Additionally, I would like to be able to not have to enter the DNS domain directly as I am conscious that it could change (I am not sure, I'm not in charge of our IT) and then I would have to go through this whole process again.



      One very strange additional fact about this, is that one of my colleagues is using the same image and we both imported from scratch, and he can connect, but I cannot. Really strange stuff. Also I have completely disabled the Windows Firewall and Defender while I am testing this, so it cannot be that.



      Edit: Side-note, I can avoid this problem by using the internal website's actual IP, thus avoiding the DNS lookup, but if this changes (again, I have no idea if if/when it will) then I will have to re-enter it, which seems like a pain.







      networking fedora dns networkmanager openvpn






      share|improve this question









      New contributor




      Adam Dadvar 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




      Adam Dadvar 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








      edited 13 hours ago









      Rui F Ribeiro

      42k1483142




      42k1483142






      New contributor




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









      asked 13 hours ago









      Adam DadvarAdam Dadvar

      62




      62




      New contributor




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





      New contributor





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






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






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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
          });


          }
          });






          Adam Dadvar 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%2funix.stackexchange.com%2fquestions%2f511946%2ffedora-29-virtualbox-will-not-use-dns-from-host-vpn%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Adam Dadvar is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Adam Dadvar is a new contributor. Be nice, and check out our Code of Conduct.













          Adam Dadvar is a new contributor. Be nice, and check out our Code of Conduct.












          Adam Dadvar is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511946%2ffedora-29-virtualbox-will-not-use-dns-from-host-vpn%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...