You are not logged in.
I have a working internet connection using netctl and systemd. The configuration file is as follows:
Description='A basic dhcp ethernet connection'
Interface=enp4s0
Connection=ethernet
IP=dhcp
#DHCPClient=dhcpcd
#DHCPReleaseOnStop=no
## for DHCPv6
#IP6=dhcp
#DHCP6Client=dhclient
## for IPv6 autoconfiguration
#IP6=stateless
I then installed Avahi as per https://wiki.archlinux.org/index.php/Avahi. And it runs, but does not seem to be the primary resolver (?):
avahi-resolve -n myhostname.local
myhostname.local 192.168.1.12
ping myhostname.local
ping: myhostname.local: Name or service not known
For completions' sake:
sudo systemctl status systemd-resolved.service 2 ↵
● systemd-resolved.service - Network Name Resolution
Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:systemd-resolved.service(8)
https://www.freedesktop.org/wiki/Software/systemd/resolved
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
sudo systemctl status avahi-daemon.service 3 ↵
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 12:16:51 CEST; 26min ago
Main PID: 529 (avahi-daemon)
Status: "avahi-daemon 0.7 starting up."
Tasks: 2
Memory: 3.1M
CGroup: /system.slice/avahi-daemon.service
├─529 avahi-daemon: running [myhostnamelocal]
└─539 avahi-daemon: chroot helper
cat /etc/nsswitch.conf
# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.
passwd: files mymachines systemd
group: files mymachines systemd
shadow: files
publickey: files
hosts: files mymachines myhostname mdns_mininal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
netgroup: files
Last edited by SmallAndSimple (2019-10-26 21:07:48)
Offline
Did you try "mdns4_minimal"?
Offline
(Edited: created a new topic, it 's not really the same problem)
Last edited by pablo82 (2019-10-21 08:28:52)
Offline
Did you try "mdns4_minimal"?
I changed the nsswitch.conf file and rebooted, but the problem remains. Or did you mean someting else?
Offline
No, that's what I meant.
Do you maybe use other local DNS resolvers (dnsmasq, stubby, etc.)?
Offline
Did you add that information to the config file just as the wiki tells you?
Last edited by Stefan_xyz (2019-10-26 20:35:01)
Offline
Well, thanks for your time. There was a typo in my config:
mdns_mininal
Offline