[SOLVED] no DNS inside virtual guest

gnomegemini

Member
Mar 12, 2012
24
2
23
Hi there,

I have installed pve on an host for a gaming clan and the dns resolution is failing.

interfaces on pve host:
Code:
auto lo
iface lo inet loopback

auto enp2s0
iface enp2s0 inet static
  address 148.251.153.91
  netmask 255.255.255.224
  gateway 148.251.153.65
  # route 148.251.153.64/27 via 148.251.153.65
  up route add -net 148.251.153.64 netmask 255.255.255.224 gw 148.251.153.65 dev enp2s0
  post-up echo 1 > /proc/sys/net/ipv4/conf/enp2s0/proxy_arp

auto vmbr1
iface vmbr1 inet static
  address 10.0.0.1
  netmask 255.255.255.0
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  post-up echo 1 > /proc/sys/net/ipv4/ip_forward
  post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/24' -o enp2s0 -j MASQUERADE
  post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o enp2s0 -j MASQUERADE

On guest side (CentOS 7 minimal install) I use 10.0.0.100 as IP 10.0.0.1 as gateway and 8.8.8.8 and 8.8.4.4 as nameservers which are also included in resolv.conf.

I can reach all IP's on the net but there is no name resolving. ping 8.8.8.8 is working ping google.de not:
"ping: google.de: Name or service not known"

Any ideas what I could have missed here?

Thanks and kind regards,
Stefan


Edit: works now. I disabled the firewall from the ISP which was blocking this.
 
Last edited:

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!