DNS Issue

Paueron

New Member
Jan 22, 2024
7
0
1
Hello,
I was looking on the forum for a solution but it seems nothing match my problem...

I have a DNS issue with my proxmox
i can't ping
192.168.1.1 - destination host unreachable
8.8.8.8. - destination host unreachable
google.com - there's no response from the shell
..

Network:
TIM 10gigabit network with
router 192.168.1.1
proxmxox 192.168.100.1
proxmox VM's and CT from 192.168.10.1 to 192.168.100.100 (oviously not all assigned, only 8 vm and ct turned on)


nano /etc/resolv.conf
nameserver 1.1.1.1
nameserver 1.1.0.0

cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto enp0s31f6
iface enp0s31f6 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.100.1/16
gateway 192.168.1.1
bridge-ports enp0s31f6
bridge-stp off
bridge-fd 0


on all the VM and CT the network works fine and I think i set the same way as proxmxox
 

Attachments

  • network-1.png
    network-1.png
    94.3 KB · Views: 3
  • Network-2.png
    Network-2.png
    63.7 KB · Views: 3
  • Network-3.png
    Network-3.png
    83.6 KB · Views: 3
192.168.1.1 - destination host unreachable
8.8.8.8. - destination host unreachable
google.com - there's no response from the shell

You don't have a DNS issue, you have a routing configuration error. Your host can't even reach the configured gateway 192.168.1.1, so DNS resolutions is not working because it can't actually reach one of the configured servers.

You need to check connectivity and the configured gateway (router?) first. Is the subnet /16 the right one?
 
The connectivity on tehe Gateway/Router works fine, i'm using it with the actual pc and with all of my devices.
also all the VM's and CT's are using this gateway and they works well, i can ping whatever i want.... and all of those are configured in the same way example 192.168.20.100/16, gateway 192.168.1.1

On my router i have configured the network /16 i think
because the router/gateway is on 192.168.1.1
and the subnet mask is 255.255.0.0
 
And I also noticed that every time i restart my Proxmox VE all the VM and CT takes /etc/resolv.conf as:
search lan.
nameserver 2001:b07:5d33:d5b::1

and i have to change it to
nameserver 8.8.8.8
nameserver 8.8.4.4

but if i do the same thing and i change this file on the proxmox shell it won't work..
 
Just solved... I think I was confused.
The IP of the Proxmox server was 192.168.100.1, and it wasn't allowing it to ping and reach the network, I believe because it's reserved for the Router that needs to respond to VLAN requests on that IP.

Now I've set the Proxmox server to 192.168.100.10 and everything works perfectly.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!