Fedora 29 VirtualBox will not use DNS from host VPN The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsList 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

How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?

Sub-subscripts in strings cause different spacings than subscripts

Why not take a picture of a closer black hole?

Why can't devices on different VLANs, but on the same subnet, communicate?

Is this wall load bearing? Blueprints and photos attached

Do I have Disadvantage attacking with an off-hand weapon?

Python - Fishing Simulator

How to type a long/em dash `—`

"... to apply for a visa" or "... and applied for a visa"?

Is there a writing software that you can sort scenes like slides in PowerPoint?

Visa regaring travelling European country

Loose spokes after only a few rides

Drawing arrows from one table cell reference to another

Presidential Pardon

Why did Peik Lin say, "I'm not an animal"?

How to determine omitted units in a publication

First use of “packing” as in carrying a gun

Word for: a synonym with a positive connotation?

How can a C program poll for user input while simultaneously performing other actions in a Linux environment?

Identify 80s or 90s comics with ripped creatures (not dwarves)

Does Parliament hold absolute power in the UK?

how can a perfect fourth interval be considered either consonant or dissonant?

Make it rain characters

Why are PDP-7-style microprogrammed instructions out of vogue?



Fedora 29 VirtualBox will not use DNS from host VPN



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election ResultsList 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 yesterday









      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 yesterday









      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







          -dns, fedora, networking, networkmanager, openvpn

          Popular posts from this blog

          Mobil Contents History Mobil brands Former Mobil brands Lukoil transaction Mobil UK Mobil Australia Mobil New Zealand Mobil Greece Mobil in Japan Mobil in Canada Mobil Egypt See also References External links Navigation menuwww.mobil.com"Mobil Corporation"the original"Our Houston campus""Business & Finance: Socony-Vacuum Corp.""Popular Mechanics""Lubrite Technologies""Exxon Mobil campus 'clearly happening'""Toledo Blade - Google News Archive Search""The Lion and the Moose - How 2 Executives Pulled off the Biggest Merger Ever""ExxonMobil Press Release""Lubricants""Archived copy"the original"Mobil 1™ and Mobil Super™ motor oil and synthetic motor oil - Mobil™ Motor Oils""Mobil Delvac""Mobil Industrial website""The State of Competition in Gasoline Marketing: The Effects of Refiner Operations at Retail""Mobil Travel Guide to become Forbes Travel Guide""Hotel Rankings: Forbes Merges with Mobil"the original"Jamieson oil industry history""Mobil news""Caltex pumps for control""Watchdog blocks Caltex bid""Exxon Mobil sells service station network""Mobil Oil New Zealand Limited is New Zealand's oldest oil company, with predecessor companies having first established a presence in the country in 1896""ExxonMobil subsidiaries have a business history in New Zealand stretching back more than 120 years. We are involved in petroleum refining and distribution and the marketing of fuels, lubricants and chemical products""Archived copy"the original"Exxon Mobil to Sell Its Japanese Arm for $3.9 Billion""Gas station merger will end Esso and Mobil's long run in Japan""Esso moves to affiliate itself with PC Optimum, no longer Aeroplan, in loyalty point switch""Mobil brand of gas stations to launch in Canada after deal for 213 Loblaws-owned locations""Mobil Nears Completion of Rebranding 200 Loblaw Gas Stations""Learn about ExxonMobil's operations in Egypt""Petrol and Diesel Service Stations in Egypt - Mobil"Official websiteExxon Mobil corporate websiteMobil Industrial official websiteeeeeeeeDA04275022275790-40000 0001 0860 5061n82045453134887257134887257

          Frič See also Navigation menuinternal link

          Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant