cytopia / cytopia/devilbox

[Howto]: setup auto DNS with netconfig

Open
#916 1 comment 0 reactions 0 assignees View on GitHub
Community help wanted DNS question
Dominant language
PHP
Stars
4.5k
Forks
652
PR merge metrics
No merged PRs in 30d

Description

### Have you already checked elsewhere?

- [X] I have read the [Devilbox documentation](https://devilbox.readthedocs.io/en/latest/)
- [X] I have checked the [Devilbox Troubleshooting Guide](https://devilbox.readthedocs.io/en/latest/)
- [X] I have checked the [Devilbox FAQ](https://devilbox.readthedocs.io/en/latest/support/faq.html)
- [ ] I have checked the [Devilbox Howto](https://devilbox.readthedocs.io/en/latest/support/howto.html)
- [x] I have checked the [Devilbox Forum](https://devilbox.discourse.group/)
- [X] I have checked [existing issues](https://github.com/cytopia/devilbox/issues)
- [ ] I have googled already with no luck
- [ ] I have not done any of the above

### 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 `.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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.