Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Howto]: setup auto DNS with netconfig #916

Open
5 of 8 tasks
stefanobartoletti opened this issue Aug 23, 2022 · 1 comment
Open
5 of 8 tasks

[Howto]: setup auto DNS with netconfig #916

stefanobartoletti opened this issue Aug 23, 2022 · 1 comment

Comments

@stefanobartoletti
Copy link

stefanobartoletti commented Aug 23, 2022

Have you already checked elsewhere?

What are you struggling with?

I'm trying to setup permanent Auto DNS with no luck.

My .env is correctly setup with these values:

LOCAL_LISTEN_ADDR=

and

HOST_PORT_BIND=53

The Non-permanent solution of manually editing /etc/resolv.conf works as intended, I prepended nameserver 127.0.0.1 to existing entries and my Devilbox projects are correctly accessed by their <my-project>.loc addresses.

Anyway, the permanent solution is not working.

In my /etc/dhclient.conf I have added prepend domain-name-servers 127.0.0.1; as the first line, but it isn't working.

Looks like in openSUSE resolv.conf is managed by netconfig, and I can't find in Devilbox docs how to set it up with this configuration

What have you tried already?

I've tried to follow the Devilbox documentation, but it does not explain how to setup netconfig to update resolv.conf at system boot.

What is your goal?

Implement Auto DNS.

@stefanobartoletti stefanobartoletti changed the title [Howto]: setup auto DNS with [Howto]: setup auto DNS with netconfig Aug 23, 2022
@stefanobartoletti
Copy link
Author

I managed to solve this with some Googling in the end.

I had to edit some properties in /etc/sysconfig/network/config with these values (or just make sure that these were already set this way):

NETCONFIG_DNS_FORWARDER="resolver"

###

NETCONFIG_DNS_STATIC_SERVERS="127.0.0.1"

###

NETCONFIG_DNS_POLICY="STATIC NetworkManager"

I found a reference here: https://www.suse.com/c/configure-netconfig-static-domain-search-lists/

@cytopia cytopia added the DNS label Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants