LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-15-2016, 07:05 AM   #1
Debianhiilfe
LQ Newbie
 
Registered: Jan 2015
Posts: 6

Rep: Reputation: Disabled
Change DNS in virtual machine


Hi,

I have a short but maybe complicated question:
I use Linux Debian as my main system and a Oracle VM VirtualBox with Windows 7.
Now I wanted to change the domain name server of windows 7 only. I know how to change it on my host system (linux debian). Changing it in Windows is no issue either but when I do it the internet connection of my Oracle VM VirtualBox chrashes.

So how can I use a different DNS in my Oracle VM VirtualBox (Windows 7) than on my main system (Linux Debian).

Thanks alot!
 
Old 10-15-2016, 08:58 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,685

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Which kind of networking are you using?
This is terribly tricky with the default NAT setup: tricky like "no".
If you are interface sharing the Windows should pick up the settings from your DHCP server. Since windows puts the most convenient manual settings in the adapter configuration (which is silly if you ask me, but you can do that silly thing with Linux also so I cannot trash them for it) and windows does not actually own the adapter, things get tricky that way also. Tricky but you can get away with it.

So, "which kind of networking are you using?" is a key question here.
 
Old 10-15-2016, 12:46 PM   #3
Debianhiilfe
LQ Newbie
 
Registered: Jan 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
You mean in the Oracle VM VirtualBox Manager? I already tried several way: NAT, Network Address Translation Serviceetc. I once use a Whonix Gateway as internal Network but it was super slow. I will use whatever you tell me.
I will use whatever you tell me but no direct connection.

Last edited by Debianhiilfe; 10-15-2016 at 01:58 PM.
 
Old 10-15-2016, 02:43 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I use NAT almost all the time.

It is a virtual router but that doesn't really mean much in this case. The DNS server will be in network adapter settings. Usually leave or set IP address to range in virtual router and then you can edit in a new DNS ip address. I usually just put my local home router or opendns or googles or better still use your ISP's choice of DNS.
 
  


Reply

Tags
dns, internet, virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS on virtual machine leonidass Linux - Server 3 11-09-2013 08:01 AM
/dev/sd* devices change their names on each virtual machine reboot ciforbg Linux - Virtualization and Cloud 7 01-03-2013 01:44 AM
KVM Virtual Machine CD CHANGE ashishverma1984 Fedora 2 12-12-2008 02:51 AM
Unable to change the Virtual Machine Power State swiswire Debian 3 09-29-2008 02:58 PM
VMware: Unable to change virtual machine power state niteshadw Ubuntu 1 08-21-2007 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration