[SOLVED] DNS settings not working

nickfnc

New Member
Dec 1, 2022
3
1
3
Hello, i cant connect to anything because my DNS settings are not working


Search domain: proxmox.local
DNS Server 1: 8.8.8.8
DNS Server 2: 8.8.4.4

/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.2.188 proxmox.local proxmox

/etc/hostname
proxmox

ping 8.8.8.8
From 192.168.2.188 icmp_seq=** Destination Host Unreachable

I also cant ping my gateaway ^^Same Message

Any help is appreciated
 
If you cannot ping any IP addresses, then DNS is not the problem since it is only used for resolving names.
Can you post the output of the following commands?

Code:
ip a
cat /etc/network/interfaces

What kind of network setup do you have? Is this a server at home or at a datacenter?

PS: Please post output in [CODE]tags so you can read them more easily
 
Last edited:
If you cannot ping any IP addresses, then DNS is not the problem since it is only used for resolving names.
Can you post the output of the following commands?

Code:
ip a
cat /etc/network/interfaces

What kind of network setup do you have? Is this a server at home or at a datacenter?

PS: Please post output in [CODE]tags so you can read them more easily
Code:
root@proxmox:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
    link/ether 58:11:22:a3:65:a4 brd ff:ff:ff:ff:ff:ff
3: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 58:11:22:a3:65:a4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.188/24 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::5a11:22ff:fea3:65a4/64 scope link
       valid_lft forever preferred_lft forever

Code:
root@proxmox:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto enp4s0
iface enp4s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.2.188/24
        gateway 62.155.243.81
        bridge-ports enp4s0
        bridge-stp off
        bridge-fd 0

Its a server at home btw.
 
Are you sure this is the proper gateway? Shouldn't this be the router in your case? (192.168.2.1 - my guess)
 
  • Like
Reactions: nickfnc
Are you sure this is the proper gateway? Shouldn't this be the router in your case? (192.168.2.1 - my guess)
So, does this mean external DNS will not work? like 1.1.1.1. I tried 1.1.1.1 and 8.8.8.8 and does not work.
 

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!