HAOS DNS not working in Terminal

I have recently installed HOAS on an Intel 64bit workstation. This is up and running fine.

I am trying to install HACS, but cannot get DNS name resolution to work from within Terminal.

Here is the output from my terminal:

| |  | |                          /\           (_)   | |            | |  
| |__| | ___  _ __ ___   ___     /  \   ___ ___ _ ___| |_ __ _ _ __ | |_ 
|  __  |/ _ \| '_ \ _ \ / _ \   / /\ \ / __/ __| / __| __/ _\ | '_ \| __|
| |  | | (_) | | | | | |  __/  / ____ \\__ \__ \ \__ \ || (_| | | | | |_ 
|_|  |_|\___/|_| |_| |_|\___| /_/    \_\___/___/_|___/\__\__,_|_| |_|\__|

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for wlp2s0: 
  IPv4 addresses for enp1s0: 192.168.1.100/24
  IPv6 addresses for enp1s0: fe80::f17a:22b:5ea3:79ad/64

  OS Version:               Home Assistant OS 10.5
  Home Assistant Core:      2023.8.4

  Home Assistant URL:       http://homeassistant.local:8123
  Observer URL:             http://homeassistant.local:4357
[core-ssh ~]$ dig www.google.com
;; communications error to 127.0.0.11#53: timed out
;; communications error to 127.0.0.11#53: timed out
;; communications error to 127.0.0.11#53: timed out

; <<>> DiG 9.18.13 <<>> www.google.com
;; global options: +cmd
;; no servers could be reached
[core-ssh ~]$ ha dns info
fallback: true
host: 172.30.32.3
llmnr: true
locals:
- dns://192.168.1.1
mdns: true
servers:
- dns://1.1.1.1
update_available: false
version: 2023.06.2
version_latest: 2023.06.2

I have tried turning IPV6 off in the HA settings, but this didn’t help.
I have tried DNS fallback true and false. No difference.

I have completely rebooted the host computer too, just in case. This didn’t help.

Any suggestions?

What is the output of ha net info?

[core-ssh ~]$ ha net info                                                                                                                                              
docker:                                                                                                                                                                
  address: 172.30.32.0/23                                                                                                                                              
  dns: 172.30.32.3                                                                                                                                                     
  gateway: 172.30.32.1                                                                                                                                                 
  interface: hassio                                                                                                                                                    
host_internet: true                                                                                                                                                    
interfaces:                                                                                                                                                            
- connected: true                                                                                                                                                      
  enabled: true                                                                                                                                                        
  interface: enp1s0                                                                                                                                                    
  ipv4:                                                                                                                                                                
    address:                                                                                                                                                           
    - 192.168.1.100/24
    gateway: 192.168.1.1
    method: auto
    nameservers:
    - 202.142.142.142
    - 202.142.142.242
    ready: true
  ipv6:
    address:
    - fe80::f17a:22b:5ea3:79ad/64
    gateway: null
    method: disabled
    nameservers: []
    ready: true
  mac: 18:60:24:26:C8:EA
  primary: true
  type: ethernet
  vlan: null
  wifi: null
- connected: false
  enabled: false
  interface: wlp2s0
  ipv4:
    address: []
    gateway: null
    method: disabled
    nameservers: []
    ready: false
  ipv6:
    address: []
    gateway: null
    method: disabled
    nameservers: []
    ready: false
  mac: F4:96:34:79:FF:04
  primary: false
  type: wireless
  vlan: null
  wifi: null
supervisor_internet: true

​ ​ ​Hi,
I am new to he HA community and having the same issue. I just installed HA OS so it is a clean install without any specific network or DNS config. Whenever I try to add an integration with an external API (like whether services) I always get a connection issue.

If I try to ping a name like

ping google.com

I get a

ping: bad address 'google.com'

I tried to add the Google DNS servers into the DNS config with:

ha dns options --servers dns://8.8.8.8

but still not working, even after dns restart or a full restart of the system. It does seem that HA cannot resolve any internet name, I also have some errors in the logs like these:

Error connecting to weather service:

Logger: metno
Source: components/met/__init__.py:176
First occurred: 7:45:55 AM (114 occurrences)
Last logged: 10:12:57 AM

Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError'

Error connecting to some HA alerts system

Logger: homeassistant.components.homeassistant_alerts
Source: helpers/update_coordinator.py:269
Integration: Home Assistant Alerts (documentation, issues)
First occurred: 7:46:05 AM (1 occurrences)
Last logged: 7:46:05 AM

Error requesting homeassistant_alerts data: Cannot connect to host alerts.home-assistant.io:443 ssl:default [Try again]

Anyone has an idea on what could I test or adjust?
Thank you

Hi,
just replying to myself, I saw this thread later on:

https://community.home-assistant.io/t/not-able-to-make-a-connection-beyond-my-local-network/

And I also had the same issue about Balena freezing at 31-32%, check the post above as it seems some users has the same issue and reinstalling with an image created with another software solved the issue.

I’ll try it soon.

Hello,
I’m experiencing the same issue and I’ve installed HA using Ubuntu from a USB flash drive and install the Home Assistant Operating System from there (with Disks).
What could I try? Any clue?

I had also this problem