Depuis que j'ai bêtement exécuter ce script afin d'avoir mon propre DNS, je n'arrive plus à avoir internet...
J'ai désinstallé dnsutils et bind et cie mais en vain.
Voici mes fichiers et essais :
Code : Tout sélectionner
kira@gwenn-ha-du ~ $ ping -c 3 www.google.com
ping: unknown host www.google.com
kira@gwenn-ha-du ~ $ ping -c 3 8.8.8.8
connect: Network is unreachable
kira@gwenn-ha-du ~ $ sudo wifi-menu
[sudo] password for root:
Scanning for networks... failed
No networks found
kira@gwenn-ha-du ~ $ lspci -v
[...]
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
DeviceName: Realtek PCIe FE Family Controller
Subsystem: Hewlett-Packard Company Device 1885
Flags: bus master, fast devsel, latency 0, IRQ 26
I/O ports at 2000 [size=256]
Memory at f0004000 (64-bit, prefetchable) [size=4K]
Memory at f0000000 (64-bit, prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: r8169
Kernel modules: r8169
04:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
DeviceName: Ralink RT3290LE 802.11bgn 1x1 Wi-Fi Adapter
Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter
Flags: bus master, fast devsel, latency 0, IRQ 23
Memory at f0110000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: rt2800pci
Kernel modules: rt2800pci
kira@gwenn-ha-du ~ $ dmesg | grep rt2800pci
[ 14.383338] rt2800pci 0000:04:00.0 wlo1: renamed from wlan0
kira@gwenn-ha-du ~ $ ls /sys/class/net/
eno1 lo wlo1
kira@gwenn-ha-du ~ $ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 28:92:4a:27:7c:1a brd ff:ff:ff:ff:ff:ff
3: wlo1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 68:94:23:31:3e:7d brd ff:ff:ff:ff:ff:ff
kira@gwenn-ha-du ~ $ sudo ip link set wlo1 up
RTNETLINK answers: Operation not possible due to RF-kill
kira@gwenn-ha-du ~ $ cat /run/media/kira/DOCUMENTS/Documents/Informatique/languages-programmation/scripts_bash/dns-install.sh
#!/bin/bash
if [ "$UID" -ne "0" ] #User check
then
echo -e "Use this script as root."
exit
else
pacman -Sy bind dnsutils
wget ftp://ftp.internic.net/domain/named.cache -O /var/named/root.hint #Root servers list
sed -i 's|file "/var/named/root.hint"|file "root.hint"|' /etc/named.conf
sudo chattr -i /etc/resolv.conf #Allow the modification of the file
sed -i 's|nameserver|#nameserver|' /etc/resolv.conf
echo "nameserver 127.0.0.1" >> /etc/resolv.conf #Set localhost as the DNS resolver
sudo chattr +i /etc/resolv.conf #Disallow the modification of the file
sudo systemctl start named && sudo systemctl enable named #Enable named at boot and start it
fi
kira@gwenn-ha-du ~ $ cat /etc/resolv.conf
# Generated by resolvconf
# Mon_DNS_Perso
#search mon_domaine_perso
##nameserver 192.168.0.131
## DNS de google :(
###nameserver 8.8.8.8
###nameserver 8.8.4.4
# DNS de FDN (http://www.fdn.fr/)
##nameserver 80.67.169.12
##nameserver 80.67.169.40
# DNS de OpenNIC
nameserver 178.32.122.65
nameserver 87.98.175.85
nameserver 208.67.222.222
#domain home
#nameserver 192.168.1.1
#nameserver 127.0.0.1
kira@gwenn-ha-du ~ $ sudo netctl start wlo1-Livebox-21EB
Job for netctl@wlo1\x2dLivebox\x2d21EB.service failed because the control process exited with error code. See "systemctl status "netctl@wlo1\\x2dLivebox\\x2d21EB.service"" and "journalctl -xe" for details.
kira@gwenn-ha-du ~ $ journalctl -xn
Hint: You are currently not seeing messages from other users and the system.
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
-- Logs begin at mar. 2015-07-07 12:33:08 CEST, end at jeu. 2015-07-09 10:02:53 CEST. --
juil. 09 10:02:43 gwenn-ha-du kded5[1583]: kf5.kded: Failed to load module for "favicons"
juil. 09 10:02:43 gwenn-ha-du kded5[1583]: kf5.kded: could not find kded module with id "favicons"
juil. 09 10:02:43 gwenn-ha-du kded5[1583]: kf5.kded: attempted to load an invalid module.
juil. 09 10:02:43 gwenn-ha-du kded5[1583]: kf5.kded: Failed to load module for "favicons"
juil. 09 10:02:43 gwenn-ha-du kded5[1583]: kf5.kded: could not find kded module with id "favicons"
juil. 09 10:02:43 gwenn-ha-du kded5[1583]: kf5.kded: attempted to load an invalid module.
juil. 09 10:02:43 gwenn-ha-du kded5[1583]: kf5.kded: Failed to load module for "favicons"
juil. 09 10:02:46 gwenn-ha-du konsole[1952]: codecForName: ucnv_open failed ISO-8859-16 U_FILE_ACCESS_ERROR
juil. 09 10:02:53 gwenn-ha-du baloo_file[1641]: "/home/kira/.xsession-errors"
juil. 09 10:02:53 gwenn-ha-du baloo_file[1641]: Normal
kira@gwenn-ha-du ~ $ systemctl
UNIT LOAD ACTIVE SUB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
sys-devices-pci0000:00-0000:00:01.0-drm-card0-card0\x2dLVDS\x2d1-radeon_bl0.device loaded active plugged /sys/devices/pci0000:00/0000:00:01.0/drm/card0/card0-LVDS-1/radeon_bl0
sys-devices-pci0000:00-0000:00:01.1-sound-card1.device loaded active plugged Wrestler HDMI Audio
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active plugged Hitachi_HTS543232A7A384 WINDOWS_8
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda2.device loaded active plugged Hitachi_HTS543232A7A384 2
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda3.device loaded active plugged Hitachi_HTS543232A7A384 DOCUMENTS_141114
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda5.device loaded active plugged Hitachi_HTS543232A7A384 ARCH_LINUX_23101
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda6.device loaded active plugged Hitachi_HTS543232A7A384 SWAP
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda.device loaded active plugged Hitachi_HTS543232A7A384
sys-devices-pci0000:00-0000:00:11.0-ata2-host1-target1:0:0-1:0:0:0-block-sr0.device loaded active plugged hp_DVD_RW_AD-7760H
sys-devices-pci0000:00-0000:00:14.2-sound-card0.device loaded active plugged FCH Azalia Controller
sys-devices-pci0000:00-0000:00:15.1-0000:03:00.0-net-eno1.device loaded active plugged RTL8101E/RTL8102E PCI Express Fast Ethernet controller
sys-devices-pci0000:00-0000:00:15.3-0000:04:00.0-ieee80211-phy0-rfkill0.device loaded active plugged /sys/devices/pci0000:00/0000:00:15.3/0000:04:00.0/ieee80211/phy0/rfkill0
sys-devices-pci0000:00-0000:00:15.3-0000:04:00.0-net-wlo1.device loaded active plugged RT3290 Wireless 802.11n 1T/1R PCIe (Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and B
sys-devices-platform-serial8250-tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-module-configfs.device loaded active plugged /sys/module/configfs
sys-module-fuse.device loaded active plugged /sys/module/fuse
sys-subsystem-net-devices-eno1.device loaded active plugged RTL8101E/RTL8102E PCI Express Fast Ethernet controller
sys-subsystem-net-devices-wlo1.device loaded active plugged RT3290 Wireless 802.11n 1T/1R PCIe (Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and B
sys-subsystem-rfkill-devices-rfkill0.device loaded active plugged /sys/subsystem/rfkill/devices/rfkill0
-.mount loaded active mounted /
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
run-media-kira-DOCUMENTS.mount loaded active mounted /run/media/kira/DOCUMENTS
run-user-1000-gvfs.mount loaded active mounted /run/user/1000/gvfs
run-user-1000.mount loaded active mounted /run/user/1000
sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
sys-kernel-config.mount loaded active mounted Configuration File System
sys-kernel-debug.mount loaded active mounted Debug File System
tmp.mount loaded active mounted Temporary Directory
systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
session-c1.scope loaded active running Session c1 of user kira
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
dbus.service loaded active running D-Bus System Message Bus
getty@tty1.service loaded active running Getty on tty1
haveged.service loaded active running Entropy Harvesting Daemon
kdm.service loaded active running K Display Manager
kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
● netctl@wlo1\x2dLivebox\x2d21EB.service loaded failed failed Automatically generated profile by wifi-menu
● netctl@wlo1\x2dLivebox\x2d5db6.service loaded failed failed Automatically generated profile by wifi-menu
polkit.service loaded active running Authorization Manager
rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
systemd-backlight@backlight:radeon_bl0.service loaded active exited Load/Save Screen Backlight Brightness of backlight:radeon_bl0
systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-rfkill@rfkill0.service loaded active exited Load/Save RF Kill Switch Status of rfkill0
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
udisks2.service loaded active running Disk Manager
upower.service loaded active running Daemon for power management
user@1000.service loaded active running User Manager for UID 1000
-.slice loaded active active Root Slice
UNIT LOAD ACTIVE SUB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
sys-devices-pci0000:00-0000:00:01.0-drm-card0-card0\x2dLVDS\x2d1-radeon_bl0.device loaded active plugged /sys/devices/pci0000:00/0000:00:01.0/drm/card0/card0-LVDS-1/radeon_bl0
sys-devices-pci0000:00-0000:00:01.1-sound-card1.device loaded active plugged Wrestler HDMI Audio
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active plugged Hitachi_HTS543232A7A384 WINDOWS_8
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda2.device loaded active plugged Hitachi_HTS543232A7A384 2
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda3.device loaded active plugged Hitachi_HTS543232A7A384 DOCUMENTS_141114
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda5.device loaded active plugged Hitachi_HTS543232A7A384 ARCH_LINUX_23101
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda6.device loaded active plugged Hitachi_HTS543232A7A384 SWAP
sys-devices-pci0000:00-0000:00:11.0-ata1-host0-target0:0:0-0:0:0:0-block-sda.device loaded active plugged Hitachi_HTS543232A7A384
sys-devices-pci0000:00-0000:00:11.0-ata2-host1-target1:0:0-1:0:0:0-block-sr0.device loaded active plugged hp_DVD_RW_AD-7760H
sys-devices-pci0000:00-0000:00:14.2-sound-card0.device loaded active plugged FCH Azalia Controller
sys-devices-pci0000:00-0000:00:15.1-0000:03:00.0-net-eno1.device loaded active plugged RTL8101E/RTL8102E PCI Express Fast Ethernet controller
sys-devices-pci0000:00-0000:00:15.3-0000:04:00.0-ieee80211-phy0-rfkill0.device loaded active plugged /sys/devices/pci0000:00/0000:00:15.3/0000:04:00.0/ieee80211/phy0/rfkill0
sys-devices-pci0000:00-0000:00:15.3-0000:04:00.0-net-wlo1.device loaded active plugged RT3290 Wireless 802.11n 1T/1R PCIe (Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and B
sys-devices-platform-serial8250-tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-module-configfs.device loaded active plugged /sys/module/configfs
sys-module-fuse.device loaded active plugged /sys/module/fuse
sys-subsystem-net-devices-eno1.device loaded active plugged RTL8101E/RTL8102E PCI Express Fast Ethernet controller
sys-subsystem-net-devices-wlo1.device loaded active plugged RT3290 Wireless 802.11n 1T/1R PCIe (Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and B
sys-subsystem-rfkill-devices-rfkill0.device loaded active plugged /sys/subsystem/rfkill/devices/rfkill0
-.mount loaded active mounted /
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
run-media-kira-DOCUMENTS.mount loaded active mounted /run/media/kira/DOCUMENTS
run-user-1000-gvfs.mount loaded active mounted /run/user/1000/gvfs
run-user-1000.mount loaded active mounted /run/user/1000
sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
sys-kernel-config.mount loaded active mounted Configuration File System
sys-kernel-debug.mount loaded active mounted Debug File System
tmp.mount loaded active mounted Temporary Directory
systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
session-c1.scope loaded active running Session c1 of user kira
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
dbus.service loaded active running D-Bus System Message Bus
getty@tty1.service loaded active running Getty on tty1
haveged.service loaded active running Entropy Harvesting Daemon
kdm.service loaded active running K Display Manager
kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
● netctl@wlo1\x2dLivebox\x2d21EB.service loaded failed failed Automatically generated profile by wifi-menu
● netctl@wlo1\x2dLivebox\x2d5db6.service loaded failed failed Automatically generated profile by wifi-menu
polkit.service loaded active running Authorization Manager
rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
systemd-backlight@backlight:radeon_bl0.service loaded active exited Load/Save Screen Backlight Brightness of backlight:radeon_bl0
systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-rfkill@rfkill0.service loaded active exited Load/Save RF Kill Switch Status of rfkill0
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
udisks2.service loaded active running Disk Manager
upower.service loaded active running Daemon for power management
user@1000.service loaded active running User Manager for UID 1000
-.slice loaded active active Root Slice
system-getty.slice loaded active active system-getty.slice
system-netctl.slice loaded active active system-netctl.slice
system-netctl\x2dauto.slice loaded active active system-netctl\x2dauto.slice
system-systemd\x2dbacklight.slice loaded active active system-systemd\x2dbacklight.slice
system-systemd\x2drfkill.slice loaded active active system-systemd\x2drfkill.slice
system.slice loaded active active System Slice
user-1000.slice loaded active active user-1000.slice
user.slice loaded active active User and Session Slice
avahi-daemon.socket loaded active running Avahi mDNS/DNS-SD Stack Activation Socket
dbus.socket loaded active running D-Bus System Message Bus Socket
dm-event.socket loaded active listening Device-mapper event daemon FIFOs
lvm2-lvmetad.socket loaded active listening LVM2 metadata daemon socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald-dev-log.socket loaded active running Journal Socket (/dev/log)
systemd-journald.socket loaded active running Journal Socket
systemd-udevd-control.socket loaded active running udev Control Socket
systemd-udevd-kernel.socket loaded active running udev Kernel Socket
dev-disk-by\x2duuid-9e3cc6a2\x2df4ee\x2d40c8\x2db3a6\x2d46ca49c4cc41.swap loaded active active /dev/disk/by-uuid/9e3cc6a2-f4ee-40c8-b3a6-46ca49c4cc41
basic.target loaded active active Basic System
cryptsetup.target loaded active active Encrypted Volumes
getty.target loaded active active Login Prompts
graphical.target loaded active active Graphical Interface
local-fs-pre.target loaded active active Local File Systems (Pre)
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User System
network.target loaded active active Network
paths.target loaded active active Paths
remote-fs.target loaded active active Remote File Systems
slices.target loaded active active Slices
sockets.target loaded active active Sockets
sound.target loaded active active Sound Card
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
timers.target loaded active active Timers
logrotate.timer loaded active waiting Daily rotation of log files
man-db.timer loaded active waiting Daily man-db cache update
shadow.timer loaded active waiting Daily verification of password and group files
systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
103 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
kira@gwenn-ha-du ~ $ wpa_
wpa_actiond wpa_cli wpa_passphrase wpa_supplicant
kira@gwenn-ha-du ~ $ wpa_cli -i wlo1 scan
Failed to connect to non-global ctrl_ifname: wlo1 error: Permission denied
kira@gwenn-ha-du ~ $ sudo wpa_cli -i wlo1 scan
[sudo] password for root:
Failed to connect to non-global ctrl_ifname: wlo1 error: Connection refused
kira@gwenn-ha-du ~ $ sudo wpa_cli -i wlan0 scan
Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
kira@gwenn-ha-du ~ $ sudo wpa_cli -i wlan1 scan
Failed to connect to non-global ctrl_ifname: wlan1 error: No such file or directory
kira@gwenn-ha-du ~ $ iwlist wlo1 scan
wlo1 Failed to read scan data : Network is down
kira@gwenn-ha-du ~ $ cat /run/media/kiraudo ip link set wlo1 up
RTNETLINK answers: Operation not possible due to RF-kill