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;
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:
- Run OpenVPN as administrator on the host machine and authenticate
- Start VirtualBox and start the Fedora 29 machine
- 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
New contributor
add a comment |
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:
- Run OpenVPN as administrator on the host machine and authenticate
- Start VirtualBox and start the Fedora 29 machine
- 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
New contributor
add a comment |
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:
- Run OpenVPN as administrator on the host machine and authenticate
- Start VirtualBox and start the Fedora 29 machine
- 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
New contributor
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:
- Run OpenVPN as administrator on the host machine and authenticate
- Start VirtualBox and start the Fedora 29 machine
- 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
networking fedora dns networkmanager openvpn
New contributor
New contributor
edited yesterday
Rui F Ribeiro
42k1483142
42k1483142
New contributor
asked yesterday
Adam DadvarAdam Dadvar
62
62
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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