Hi,
I am looking for some advice in regards to my current network configuration with TrueNAS and its VM.
The bare metal server for TrueNAS-13.0-U1.1 is connected through a single network interface to the network.
Hostname: saturn
(Additional) Domain: local
DNS Server: 192.168.2.10
Gateway: 192.168.2.1
igb0 (static): 192.168.2.5
On top of that I have recently added a Debian (5.10.0-15-amd64) VM to act as a server to Docker.
Hostname: titan
On titan, I am running Pi-Hole as a DNS and DHCP server. It does well at giving away DHCP leases for the IP range I have configured. In Pi-Hole, I have set the domain name to local under the DHCP settings.
Now, when I am on my MacBook (DHCP) and try to ping any other device by its hostname that Pi-Hole handles via DHCP, it works flawlessly. However, when I try to ping any devices where I have set a static IP, I get an 'cannot resolve titan: Unknown host' error. Except for saturn, when I add .local to it. But only for this host.
In addition, when I try to ping pi.hole (which should be possible anytime), I get an 'sendto: Socket is not connected' error.
I am beyond confused at this point... ^^
It would be extremely helpful to understand whether the Debian VM is configured correctly from a networking perspective.
Any help or feedback is appreciated.
I am looking for some advice in regards to my current network configuration with TrueNAS and its VM.
The bare metal server for TrueNAS-13.0-U1.1 is connected through a single network interface to the network.
Hostname: saturn
(Additional) Domain: local
DNS Server: 192.168.2.10
Gateway: 192.168.2.1
igb0 (static): 192.168.2.5
On top of that I have recently added a Debian (5.10.0-15-amd64) VM to act as a server to Docker.
Hostname: titan
sudo cat /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# allow-hotplug enp0s3
# iface enp0s3 inet dhcp
# This is an autoconfigured IPv6 interface
iface enp0s3 inet6 auto
# Static IP
auto enp0s3
iface enp0s3 inet static
address 192.168.2.10
netmask 255.255.255.0
gateway 192.168.2.1
dns-nameservers 192.168.2.10 8.8.8.8
sudo cat /etc/resolv.conf
domain local
search local
nameserver 192.168.2.10
nameserver 8.8.8.8
On titan, I am running Pi-Hole as a DNS and DHCP server. It does well at giving away DHCP leases for the IP range I have configured. In Pi-Hole, I have set the domain name to local under the DHCP settings.
Now, when I am on my MacBook (DHCP) and try to ping any other device by its hostname that Pi-Hole handles via DHCP, it works flawlessly. However, when I try to ping any devices where I have set a static IP, I get an 'cannot resolve titan: Unknown host' error. Except for saturn, when I add .local to it. But only for this host.
➜ ~ ping callisto (DHCP device)
PING callisto (192.168.2.108): 56 data bytes
64 bytes from 192.168.2.108: icmp_seq=0 ttl=64 time=24.190 ms
64 bytes from 192.168.2.108: icmp_seq=1 ttl=64 time=1.949 ms
➜ ~ ping titan
ping: cannot resolve titan: Unknown host
➜ ~ ping saturn
ping: cannot resolve saturn: Unknown host
➜ ~ ping saturn.local
PING saturn.local (192.168.2.5): 56 data bytes
64 bytes from 192.168.2.5: icmp_seq=0 ttl=64 time=25.950 ms
64 bytes from 192.168.2.5: icmp_seq=1 ttl=64 time=1.810 ms
➜ ~ ping titan.local
ping: cannot resolve titan.local: Unknown host
In addition, when I try to ping pi.hole (which should be possible anytime), I get an 'sendto: Socket is not connected' error.
➜ ~ ping pi.hole
PING pi.hole (0.0.0.0): 56 data bytes
ping: sendto: Socket is not connected
Request timeout for icmp_seq 0
ping: sendto: Socket is not connected
Request timeout for icmp_seq 1
I am beyond confused at this point... ^^
It would be extremely helpful to understand whether the Debian VM is configured correctly from a networking perspective.
Any help or feedback is appreciated.
Last edited: