You are not logged in.
Hi there,
I'm using netctl for my wifi connection (and I don't have network-manager installed) and everything works fine, here's my configuration file :
/etc/netctl/wlp6s0-profile:
Interface=wlp6s0
Connection=wireless
Security=wpa
IP=dhcp
ESSID='my_network'
Key='my_key'
I try to use hooks (also tried with 'interfaces') config-script to use custom DNS. I tried to put this code either in
/etc/netctl/hooks/my_hook or /etc/netctl/interfaces/wlp6s0 :
#!/bin/sh
DNS=('8.8.4.4' '8.8.8.8')
and then launch "sudo netctl restart wlp6s0-profile" (or even reboot) but it doesn't work :
/etc/resolv.conf
# Generated by resolvconf
nameserver 192.168.42.1
However putting DNS=('8.8.4.4' '8.8.8.8') in /etc/netctl/wlp6s0-profile: actually works and generate the expected resolv.conf file.
Does someone have an idea what my mistake is ?
Last edited by MaskedBerry (2015-07-23 20:04:47)
Offline
Eventually, I managed to find what my mistake was. If someone else is as dumb as I am, don't forget to make the script exectuable
Offline