How to disable illegal DNS servers?

Hi,

so I got homeassistant to run in a VM and am having a first look at it.

How do I disable the DNS servers I do not want to use? When I delete them, they are always being put back. It would suck if I had to make a firewall rule to block them.

How do I change the language of the webinterface to English?

Settings > System > Network > IPv4 (or 6) > delete any extra DNS fields

There is a Save button under the network interfaces section. You need to click save for your changes to apply

Click your profile icon in the bottom left. It’s the first option under User settings:

Thanks, I had to start over and picked English before logging in this time :slight_smile:

Saving the DNS servers isn’t really helping because the illegal name servers are always being added anew. I entered my own DNS server and deleted the others, but they keep coming back.

I had to add a firewall rule to block them. It would be much better to remove them.

Also, how do I shut down the VM via the web interface? I’ve only found a ‘stop’ option but that doesn’t shut down the VM. I can shut it down with virsh, but that’s not very convenient.

Please read this How to help us help you - or How to ask a good question.

No one here has any idea what you mean by “illegal name servers”

Regarding shutdown, you can do it by calling hassio.host_shutdown or via the Developer Tools > Restart > Advanced options > Shut Down system

Not 100% sure if it will shut down your VM because you haven’t told us what VM you’re running, but it should work

‘Illegal name servers’ are the ones that I can’t get rid of because the GUI keeps adding them despite I have deleted them. I do not want homeassistant to use those, hence they are illegal.

A VM usually stops running when the OS running in it shuts down. Have you seen it otherwise anywhere?

What’s the point of the ‘stop’ option? Once homeassistent is stopped, you can’t use the web interface anymore but the VM keeps running, so you have log in to the server to shut it down and, if you want to use homeassistent again, restart it.

There seems to be a ‘restart’ option, but I can only guess that it doesn’t restart the OS, so to actually restart it, you still have to log in to the server to shutdown or destroy the VM and restart it.

Why is so awkward? Does the hidden shutdown option actually shut the VM down?

I don’t see a shutdown option in the developer tools section:

So how do I get rid of the cloudflare servers? I can delete them but they keep coming back:

The DNS servers are coming through DHCP from your router.
You neee to change it there or choose to set a static IP instead.

3 Likes

Oh, you’re right! That happens when abusing a VLAN for a purpose it wasn’t set up for to begin with …

Mate, I made it clear in my steps that you have to click Restart in order to see the additional options.

I was trying to help you. Instead of being grateful, you took a pissy tone & asked a bunch of other questions instead of trying what I spelled out for you.

Good luck with your HA journey - I’m out.

3 Likes

I would say it’s actually a good design choice due to the way HA is setup. There’s an underlying layer of HAOS that is a modified/custom version of Linux. HAOS, as well as other Apps, are containers on top of it. Having the restart option as the primary choice ensures that other container Apps aren’t affected during restarts. Some people, myself included, host other services, like a Chrony server App, that I don’t want shut down/restarted when all I want to do is restart HA. YMMV and you’re entitled to your opinion.

1 Like

Asking a question is not just how you word it, but also if you are actually asking the right ones.
We do see a lot of XY problems here and other stuff, so that is why there is made a guide on how to ask a question.
It helps the one with the question and it helps the ones trying to answer it.

Yes, it is “educational”, but it is not meant as an offense.

2 Likes