You are not logged in.
I set up an own DNS server in my network yesterday and now tried to configure netctl to use it with:
Description='custom DNS profile'
Interface=wlp3s0f0u3
Connection=wireless
Security=wpa
ESSID=FIREBIRD
DNS=('192.168.188.231')
IP=dhcp
Key=mygreatkey
However my resolv.conf always looks like
# Generated by resolvconf
domain fritz.box
nameserver 192.168.188.1
nameserver 192.168.188.231
after i start the profile, so my machine always uses the nameserver it gets from the DHCP server instead of my own.
How can I configure netctl to only use my DNS server and ignore the one from DHCP
Offline
Offline
I dont have access to the router so i can not do that.
Offline
Tried
DHCPClient=dhcpcd --nohook resolv.conf
?
Offline
Did not work.
Offline
You can try this. According to the source, setting DhcpcdOptions should be possible
https://git.archlinux.org/netctl.git/tr … hcp/dhcpcd
DHCPClient=dhcpcd
DhcpcdOptions="-L --nohook resolv.conf"
But in any case, if DNS is set, then netctl should automatically prevent dhcpcd from running the resolv.conf hook.
# If using own dns, tell dhcpcd to NOT replace resolv.conf
[[ $DNS ]] && options+=" -C resolv.conf"
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
I tried that too, did not work either. Maybe there is something wrong with my dhcpcd config?
Offline
Ruling out the d'ohh: you do have dhcpcd installed and in use (running) and are not defaulting to dhclient?
Offline
Yes, I do.
Offline
Have you tried editing /etc/dhcpcd.conf?
Offline