DNS not resolved

dns
v7

(Victor Stadnichenko) #1

Hi guys,

I’ve installed NS7 in VirtualBox 5.2.6 with unattended setup method.
The Adapter1 (supposedly WAN) is connected through the Bridged adapter at 192.168.2.10.
The Adapter2 (supposedly LAN) is connected to Internal Network at 10.x.x.x.
I assigned unexisting domain to my router: vichomemsk.com

The contents of server /etc/resolv.conf:
domain vichomemsk.com
search vichomemsk.com
#dnsmasq is enabled on this machine:
nameserver 127.0.0.1

My workstation is Linux Mint 18.3
The contents of my workstation /etc/resolv.conf:
nameserver 127.0.1.1
search vichomemsk.com

Problem: the server does not get DNS service from my router.
I can ping my router at 192.168.2.1, I can ping Google DNS at 8.8.8.8 but I can’t ping google.com:
ping: google.com: Name or service not known

The directive
search vichomemsk.com
works in the workstation, but does not work in the server :frowning:
Could it be that Adapter1 was LAN and Adapter2 was WAN?
I tried to switch them and at the moment nothing works altogether - both are down.
Please help!


(Markus Neuberger) #2

For virtualbox there is a howto in the wiki about configuring the network adapters:

https://wiki.nethserver.org/doku.php?id=howto:create_a_nethserver_virtualbox_instance

Which DNS servers did you set to use on Nethserver?

config show dns shows your dns config

db networks show shows your network config with interfaces and roles.

http://docs.nethserver.org/projects/nethserver-devel/en/v7/dns.html

To reset network config:

http://docs.nethserver.org/projects/nethserver-devel/en/v7/nethserver-base.html#reset-network-configuration


(Victor Stadnichenko) #3

Hi Markus,

currently both NICs are down. I can put them up, but they get no ip addresses. Have no idea what to do, why they don’t connect? It happened after I tried to reconfigure Interface1 (VM Adapter1, enp0s3) role in server configuration page. The interface2 (VM Adapter2, enp0s8) was down.

config show dns:

dns=configuration
NameServers=10.0.2.3

db networks show:

enp0s3=ethernet
FwInBandwidth=
FwOutBandwidth=
role=
enp0s8=ethernet
role=
ppp0=xdsl-disabled
Authtype=auto
FwInBandwidth=
FwOutBandwidth=
Password=
name=PPPoE
provider=xDSL provider
role=red
user=

My server configuration page was at 192.168.2.10. It was on Adapter1 - it looks like this was LAN interface. I thought it was WAN.


(Markus Neuberger) #4

With ip addr or ifconfig you can see interfaces and IPs.

With ifconfig enp0s3 192.168.0.1 you may set an IP for an adapter. This should make the web UI work again. Please take care that your virtualbox network adapters are set up for a virtual machine gateway configuration, see the wiki link I posted before.

More docs about network config:

http://docs.nethserver.org/en/v7/base_system.html#network

http://docs.nethserver.org/en/v7/installation.html

You may just reinstall as it is a fresh VM install, which may be faster than searching for a solution…


(Victor Stadnichenko) #5

Thank you!