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

set resolvectl domains at vpn-up #1232

Closed
jmordkoff opened this issue Jul 9, 2024 · 2 comments
Closed

set resolvectl domains at vpn-up #1232

jmordkoff opened this issue Jul 9, 2024 · 2 comments

Comments

@jmordkoff
Copy link

Everything is working great, dns servers get set, but resolvectl doesn't route requests right. I have to do
resolvectl domain ppp0 dzsi.local dzsi.net dzsi.com
to get it to work right. Any tricks for automating this?

@mrbaseman
Copy link
Collaborator

maybe this could be done with an ip-up script?

@jmordkoff
Copy link
Author

thanks. That worked

I added /etc/ppp/ip-up/0100custom with my commands and I added --no-dns to my openforticlient command line

note that the ip-up scripts run before openforticlient sets the DNS, so trying to get openforticlient to do some of it and then having my script do some overrides did not work since they run in the wrong order. So I put everything in my script (really just 2 commands plus some code to detect what server I just connected into).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants