Ping: unknown host

Bonjour à tous,

en ce moment je les enchaînes…

après avoir réussi à paramétrer mon serveur mail tous est rentré dans l’ordre.

Puis suite à un redémarrage me voila coupé du monde sur mon serveur.

florian@cloud:~$ ping google.fr
ping: unknown host google.fr
> root@cloud:/home/florian# ping 8.8.8.8
> PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
> 64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=13.5 ms
> 64 bytes from 8.8.8.8: icmp_seq=4 ttl=56 time=13.6 ms
> 64 bytes from 8.8.8.8: icmp_seq=6 ttl=56 time=14.0 ms
> ^X^C
> --- 8.8.8.8 ping statistics ---
> 6 packets transmitted, 3 received, 50% packet loss, time 5029ms
> rtt min/avg/max/mdev = 13.539/13.744/14.021/0.203 ms

J’ai juste après configuré iptables comme suit:

> #!/bin/sh

> # Vider les tables actuelles
> iptables -t filter -F

> # Vider les règles personnelles
> iptables -t filter -X

> # Interdire toute connexion entrante et sortante
> iptables -t filter -P INPUT DROP
> iptables -t filter -P FORWARD DROP
> iptables -t filter -P OUTPUT DROP

> # ---

> # Ne pas casser les connexions etablies
> iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
> iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

> # Autoriser loopback
> iptables -t filter -A INPUT -i lo -j ACCEPT
> iptables -t filter -A OUTPUT -o lo -j ACCEPT

> # ICMP (Ping)
> iptables -t filter -A INPUT -p icmp -j ACCEPT
> iptables -t filter -A OUTPUT -p icmp -j ACCEPT

>  SSH In
> iptables -t filter -A INPUT -p tcp --dport **** -j ACCEPT

> # SSH Out
> iptables -t filter -A OUTPUT -p tcp --dport **** -j ACCEPT

> # DNS In/Out
> iptables -t filter -A OUTPUT -p tcp --dport 53 -j ACCEPT
> iptables -t filter -A OUTPUT -p udp --dport 53 -j ACCEPT
> iptables -t filter -A INPUT -p tcp --dport 53 -j ACCEPT
> iptables -t filter -A INPUT -p udp --dport 53 -j ACCEPT

> # NTP Out
> iptables -t filter -A OUTPUT -p udp --dport 123 -j ACCEPT

> # HTTP + HTTPS Out
> iptables -t filter -A OUTPUT -p tcp --dport 80 -j ACCEPT
> iptables -t filter -A OUTPUT -p tcp --dport 443 -j ACCEPT

> # HTTP + HTTPS In
> iptables -t filter -A INPUT -p tcp --dport 80 -j ACCEPT
> iptables -t filter -A INPUT -p tcp --dport 443 -j ACCEPT
> iptables -t filter -A INPUT -p tcp --dport 8443 -j ACCEPT

> # Mail SMTP:25
> iptables -t filter -A INPUT -p tcp --dport 25 -j ACCEPT
> iptables -t filter -A OUTPUT -p tcp --dport 25 -j ACCEPT

> # Mail POP3:110
> iptables -t filter -A INPUT -p tcp --dport 110 -j ACCEPT
> iptables -t filter -A OUTPUT -p tcp --dport 110 -j ACCEPT

> # Mail IMAP:143
> iptables -t filter -A INPUT -p tcp --dport 143 -j ACCEPT
> iptables -t filter -A OUTPUT -p tcp --dport 143 -j ACCEPT

> # Mail POP3S:995
> iptables -t filter -A INPUT -p tcp --dport 995 -j ACCEPT
> iptables -t filter -A OUTPUT -p tcp --dport 995 -j ACCEPT

mes inerfaces

> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).

> source /etc/network/interfaces.d/*

> # The loopback network interface
> auto lo
> iface lo inet loopback

> auto eth0
> allow-hotplug eth0
> iface eth0 inet dhcp

Mon resolv.conf

> ameserver 192.168.0.254

En local tout fonctionne parfaitement, mais pas de l’exterieur (ssh, http).

Une idée?

Bonne soirée

Salut,

Que donne :

dig +short google.fr @8.8.8.8```

Il y a une erreur : cela devrait être nameserver.