Unable to work Internet and Internal DNS server on virtual box Centos7 server with two different NIC card

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





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








-2















I have tried to configure Oracle Virtual box with two Network card and internal DNS server and internet access but looks like I am missing something.



Key points that I am looking:



  1. Configure Network in Virtual box with using two Nic card. enp0s3 & snp0s8


  2. My Base system is Windows 7 so far.. I have installed virtual box 5.26 latest version.


  3. I do see network card installed by virtualbox during installation and it is on auto dhcp Description: VirtualBox Host-Only Ethernet Adapter Physical Address: xx-xx-xx-xx-xx DHCP Enabled: Yes IPv4 Address: 192.168.56.101 IPv4 Subnet Mask: 255.255.255.0 IPv4 Default Gateway: IPv4 DHCP Server: 192.168.56.100 IPv4 DNS Server: NA


  4. Virtual server (CentOS 7) installed with two NIC card : 1st is hostonly nework - for internal communication :static IP : 192.168.56.* , Second NIC card selected as Bridge network : auto dhcp : which will be use for internet sharing


  5. DNS server I am using from ISP provide IP : example : 8.8.8.8



Centos 7 servers properly configured with as internal DNS server labserver1.example.com but it doesnt work when internet is running.



I have changed resolve.conf entries as follows.



options rotate nameserver 8.8.8.8 search localdomain nameserver 192.168.56.111




network configuration file : enp0s3 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp0s3 UUID=cd22462f-32e6-4133-96b6-c8cfc8b3c3ed DEVICE=enp0s3 ONBOOT=yes IPADDR=192.168.56.111 NETMASK=255.255.255.0 DNS=8.8.8.8 DNS=192.168.56.111 ZONE=public PEERDNS=no NM_CONTROLLED=no




When I try to dig or nslookup for labserver1.example.com , it resolves for few seconds. Later doesnt.



When I try to hash nameserver :8.8.8.8 (ISP provide) then it works and also able to dig and nslookup from other clients.



Internet and internal DNS server (labserver1.example.com) unable to work at same time.



I am looking here server able to do both work without interruption. one NIC card should work with Internet and another nic card will deal with internal DNS server










share|improve this question
























  • I'm confused. Is the single problem that your virtual machine cannot access the internet, or is there something more?

    – dhag
    Mar 8 at 14:45

















-2















I have tried to configure Oracle Virtual box with two Network card and internal DNS server and internet access but looks like I am missing something.



Key points that I am looking:



  1. Configure Network in Virtual box with using two Nic card. enp0s3 & snp0s8


  2. My Base system is Windows 7 so far.. I have installed virtual box 5.26 latest version.


  3. I do see network card installed by virtualbox during installation and it is on auto dhcp Description: VirtualBox Host-Only Ethernet Adapter Physical Address: xx-xx-xx-xx-xx DHCP Enabled: Yes IPv4 Address: 192.168.56.101 IPv4 Subnet Mask: 255.255.255.0 IPv4 Default Gateway: IPv4 DHCP Server: 192.168.56.100 IPv4 DNS Server: NA


  4. Virtual server (CentOS 7) installed with two NIC card : 1st is hostonly nework - for internal communication :static IP : 192.168.56.* , Second NIC card selected as Bridge network : auto dhcp : which will be use for internet sharing


  5. DNS server I am using from ISP provide IP : example : 8.8.8.8



Centos 7 servers properly configured with as internal DNS server labserver1.example.com but it doesnt work when internet is running.



I have changed resolve.conf entries as follows.



options rotate nameserver 8.8.8.8 search localdomain nameserver 192.168.56.111




network configuration file : enp0s3 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp0s3 UUID=cd22462f-32e6-4133-96b6-c8cfc8b3c3ed DEVICE=enp0s3 ONBOOT=yes IPADDR=192.168.56.111 NETMASK=255.255.255.0 DNS=8.8.8.8 DNS=192.168.56.111 ZONE=public PEERDNS=no NM_CONTROLLED=no




When I try to dig or nslookup for labserver1.example.com , it resolves for few seconds. Later doesnt.



When I try to hash nameserver :8.8.8.8 (ISP provide) then it works and also able to dig and nslookup from other clients.



Internet and internal DNS server (labserver1.example.com) unable to work at same time.



I am looking here server able to do both work without interruption. one NIC card should work with Internet and another nic card will deal with internal DNS server










share|improve this question
























  • I'm confused. Is the single problem that your virtual machine cannot access the internet, or is there something more?

    – dhag
    Mar 8 at 14:45













-2












-2








-2








I have tried to configure Oracle Virtual box with two Network card and internal DNS server and internet access but looks like I am missing something.



Key points that I am looking:



  1. Configure Network in Virtual box with using two Nic card. enp0s3 & snp0s8


  2. My Base system is Windows 7 so far.. I have installed virtual box 5.26 latest version.


  3. I do see network card installed by virtualbox during installation and it is on auto dhcp Description: VirtualBox Host-Only Ethernet Adapter Physical Address: xx-xx-xx-xx-xx DHCP Enabled: Yes IPv4 Address: 192.168.56.101 IPv4 Subnet Mask: 255.255.255.0 IPv4 Default Gateway: IPv4 DHCP Server: 192.168.56.100 IPv4 DNS Server: NA


  4. Virtual server (CentOS 7) installed with two NIC card : 1st is hostonly nework - for internal communication :static IP : 192.168.56.* , Second NIC card selected as Bridge network : auto dhcp : which will be use for internet sharing


  5. DNS server I am using from ISP provide IP : example : 8.8.8.8



Centos 7 servers properly configured with as internal DNS server labserver1.example.com but it doesnt work when internet is running.



I have changed resolve.conf entries as follows.



options rotate nameserver 8.8.8.8 search localdomain nameserver 192.168.56.111




network configuration file : enp0s3 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp0s3 UUID=cd22462f-32e6-4133-96b6-c8cfc8b3c3ed DEVICE=enp0s3 ONBOOT=yes IPADDR=192.168.56.111 NETMASK=255.255.255.0 DNS=8.8.8.8 DNS=192.168.56.111 ZONE=public PEERDNS=no NM_CONTROLLED=no




When I try to dig or nslookup for labserver1.example.com , it resolves for few seconds. Later doesnt.



When I try to hash nameserver :8.8.8.8 (ISP provide) then it works and also able to dig and nslookup from other clients.



Internet and internal DNS server (labserver1.example.com) unable to work at same time.



I am looking here server able to do both work without interruption. one NIC card should work with Internet and another nic card will deal with internal DNS server










share|improve this question
















I have tried to configure Oracle Virtual box with two Network card and internal DNS server and internet access but looks like I am missing something.



Key points that I am looking:



  1. Configure Network in Virtual box with using two Nic card. enp0s3 & snp0s8


  2. My Base system is Windows 7 so far.. I have installed virtual box 5.26 latest version.


  3. I do see network card installed by virtualbox during installation and it is on auto dhcp Description: VirtualBox Host-Only Ethernet Adapter Physical Address: xx-xx-xx-xx-xx DHCP Enabled: Yes IPv4 Address: 192.168.56.101 IPv4 Subnet Mask: 255.255.255.0 IPv4 Default Gateway: IPv4 DHCP Server: 192.168.56.100 IPv4 DNS Server: NA


  4. Virtual server (CentOS 7) installed with two NIC card : 1st is hostonly nework - for internal communication :static IP : 192.168.56.* , Second NIC card selected as Bridge network : auto dhcp : which will be use for internet sharing


  5. DNS server I am using from ISP provide IP : example : 8.8.8.8



Centos 7 servers properly configured with as internal DNS server labserver1.example.com but it doesnt work when internet is running.



I have changed resolve.conf entries as follows.



options rotate nameserver 8.8.8.8 search localdomain nameserver 192.168.56.111




network configuration file : enp0s3 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp0s3 UUID=cd22462f-32e6-4133-96b6-c8cfc8b3c3ed DEVICE=enp0s3 ONBOOT=yes IPADDR=192.168.56.111 NETMASK=255.255.255.0 DNS=8.8.8.8 DNS=192.168.56.111 ZONE=public PEERDNS=no NM_CONTROLLED=no




When I try to dig or nslookup for labserver1.example.com , it resolves for few seconds. Later doesnt.



When I try to hash nameserver :8.8.8.8 (ISP provide) then it works and also able to dig and nslookup from other clients.



Internet and internal DNS server (labserver1.example.com) unable to work at same time.



I am looking here server able to do both work without interruption. one NIC card should work with Internet and another nic card will deal with internal DNS server







virtualbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 14:36









dhag

11.5k33246




11.5k33246










asked Mar 8 at 13:42









Shridhar BShridhar B

1




1












  • I'm confused. Is the single problem that your virtual machine cannot access the internet, or is there something more?

    – dhag
    Mar 8 at 14:45

















  • I'm confused. Is the single problem that your virtual machine cannot access the internet, or is there something more?

    – dhag
    Mar 8 at 14:45
















I'm confused. Is the single problem that your virtual machine cannot access the internet, or is there something more?

– dhag
Mar 8 at 14:45





I'm confused. Is the single problem that your virtual machine cannot access the internet, or is there something more?

– dhag
Mar 8 at 14:45










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



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505136%2funable-to-work-internet-and-internal-dns-server-on-virtual-box-centos7-server-wi%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















draft saved

draft discarded
















































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%2f505136%2funable-to-work-internet-and-internal-dns-server-on-virtual-box-centos7-server-wi%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

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?