Wer kann Bitte Hilfen.
Installiert Dnsmasq
Installiert habe ich schon. Den Rechner Neu gestartet auch.
sudo apt-get install dnsmasq
https://wiki.ubuntuusers.de/Dnsmasq/
Ubuntu 18.04 Mate
Einrichten Dnsmasq
Erste Frage.
Konfiguration als DNS-Server
DATEI /etc/hosts
Wie sollen die Zeilen bei mein Rechner Ubuntu 18.04 Mate Aussehen.
Ich muss Zeilen hinzufügen.
welche Zeile , wie sollen sie aussehen.
Dabei ist sicher zu stellen, dass der lokale DNS-Server (Dnsmasq) als erste Zeile eingetragen wird (127.0.0.1)
Das Habe ich verstanden.
Als nächste Zeile muss mindestens ein weiterer DNS-Server definiert werden, damit Dnsmasq die Anfragen weiterreichen kann. Beispiel mit Weiterleitung an den DNS-Cache der Fritz-Box:
Das da habe ich nicht verschanden.
Wie seht die Adresse aus.
cat /etc/hosts
mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ cat /etc/hosts 127.0.0.1 localhost mimoun 127.0.1.1 mimoun # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters mimoun@mimoun:~$ mimoun@mimoun:~$
Zweite Frage. Verwendung des Cache.
DATEI /etc/resolv.conf
Wie sollen die Zeilen bei mein Rechner Ubuntu 18.04 Mate Aussehen.
Ich muss Zeilen hinzufügen.
welche Zeile , wie sollen sie aussehen.
cat /etc/resolv.conf
mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ cat /etc/resolv.conf # This file is managed by man:systemd-resolved(8). Do not edit. # # This is a dynamic resolv.conf file for connecting local clients to the # internal DNS stub resolver of systemd-resolved. This file lists all # configured search domains. # # Run "systemd-resolve --status" to see details about the uplink DNS servers # currently in use. # # Third party programs must not access this file directly, but only through the # symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way, # replace this symlink by a static file or a different symlink. # # See man:systemd-resolved.service(8) for details about the supported modes of # operation for /etc/resolv.conf. nameserver 127.0.0.53 mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$
dig ubuntuusers.de
mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ dig ubuntuusers.de ; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> ubuntuusers.de ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37902 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 65494 ;; QUESTION SECTION: ;ubuntuusers.de. IN A ;; ANSWER SECTION: ubuntuusers.de. 6029 IN A 213.95.41.4 ;; Query time: 0 msec ;; SERVER: 127.0.0.53#53(127.0.0.53) ;; WHEN: Wed Jun 27 21:19:00 CEST 2018 ;; MSG SIZE rcvd: 59 mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$
systemctl status dnsmasq.service
mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$ systemctl status dnsmasq.service ● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: Active: failed (Result: exit-code) since Wed 2018-06-27 20:50:38 CEST; 53min Process: 887 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=2 Process: 873 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCC Jun 27 20:50:37 mimoun systemd[1]: Starting dnsmasq - A lightweight DHCP and cac Jun 27 20:50:38 mimoun dnsmasq[873]: dnsmasq: Syntaxprüfung OK. Jun 27 20:50:38 mimoun dnsmasq[887]: dnsmasq: failed to create listening socket Jun 27 20:50:38 mimoun systemd[1]: dnsmasq.service: Control process exited, code Jun 27 20:50:38 mimoun dnsmasq[887]: failed to create listening socket for port Jun 27 20:50:38 mimoun systemd[1]: dnsmasq.service: Failed with result 'exit-cod Jun 27 20:50:38 mimoun dnsmasq[887]: Start fehlgeschlagen Jun 27 20:50:38 mimoun systemd[1]: Failed to start dnsmasq - A lightweight DHCP mimoun@mimoun:~$ mimoun@mimoun:~$ mimoun@mimoun:~$
Wer kann Bitte Hilfen.