DNS not resolved

,

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!

1 Like

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

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.

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…

3 Likes

Thank you!

1 Like

Hello,
as this topic and DNS Issue (probably bug) and DNS Issue/bug after resetting the network adapters
Look like I face nearly the same issue,
i set the dns server,but suddenly there is no resolve of request
it’s work sometimes and others not
I’m not sure where is the wrong?
I’m making changes using :980 interface

# db networks show
192.168.91.0=network
    Description=loc
    Mask=255.255.255.0
br0=bridge
    FwInBandwidth=
    FwOutBandwidth=
    bootproto=none
    gateway=
    ipaddr=192.168.100.9
    netmask=255.255.255.0
    role=green
br1=bridge
    FwInBandwidth=
    FwOutBandwidth=
    bootproto=none
    gateway=192.168.98.1
    ipaddr=192.168.98.4
    netmask=255.255.255.0
    role=red
ens18=ethernet
    arpcheck=no
    bridge=br0
    onboot=yes
    role=bridged
ens19=ethernet
    role=
eth0=ethernet
    FwInBandwidth=
    FwOutBandwidth=
    bootproto=none
    bridge=br1
    nslabel=
    role=bridged
ppp0=xdsl-disabled
    AuthType=auto
    FwInBandwidth=
    FwOutBandwidth=
    Password=
    name=PPPoE
    provider=xDSL provider
    role=red
    user=
red=provider
    interface=br1
    weight=1

config show dnsmasq

dnsmasq=service
CacheSize=4000
TCPPort=53
UDPPorts=53,67,69
access=green
dhcp-boot=
except-interface=virbr0
status=enabled
tftp-status=enabled

config show dns

dns=configuration
NameServers=1.1.1.1,192.168.100.1

cat 25NameServers

> # 25NameServers
> #
> # Don't read /etc/resolv.conf. Get upstream servers only from the
> # command line or the dnsmasq configuration file.
> no-resolv
> 
> # Specify IP address of upstream servers directly. Setting this flag
> # does not suppress reading of /etc/resolv.conf, use "no-resolv" to do
> # that.
> {
>     foreach (split ',', $dns{NameServers}) {
> 	$OUT .= "server=$_\n";
>     }
> }
> 
> # By  default,  dnsmasq  will  send queries to any of the upstream
> # servers it knows about and tries to favour servers that are known
> # to  be  up.  Uncommenting this forces dnsmasq to try each query
> # with  each  server  strictly  in  the  order  they   appear   in
> # /etc/resolv.conf
> all-servers
# cat /etc/resolv.conf 
# ================= DO NOT MODIFY THIS FILE =================
# 
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
# 
domain ih.loc
search ih.loc

# dnsmasq is enabled on this machine:
nameserver 127.0.0.1

even when try
# signal-event nethserver-dnsmasq-update
# signal-event interface-update
No Luck.
so is considered as @vistad issue
the nethserver working in Virtualization and spread networks bridged (green,red)
installed using neth ISO
Best Regards