You are not logged in.

#1 2019-10-20 10:45:32

SmallAndSimple
Member
Registered: 2015-11-25
Posts: 50

[SOLVED] Avahi with Netctl: resolving local addresses fails.

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

#2 2019-10-20 13:25:57

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,473

Re: [SOLVED] Avahi with Netctl: resolving local addresses fails.

Did you try "mdns4_minimal"?

Offline

#3 2019-10-21 06:58:46

pablo82
Member
Registered: 2019-10-21
Posts: 6

Re: [SOLVED] Avahi with Netctl: resolving local addresses fails.

(Edited: created a new topic, it 's not really the same problem)

Last edited by pablo82 (2019-10-21 08:28:52)

Offline

#4 2019-10-26 19:37:25

SmallAndSimple
Member
Registered: 2015-11-25
Posts: 50

Re: [SOLVED] Avahi with Netctl: resolving local addresses fails.

seth wrote:

Did you try "mdns4_minimal"?

I changed the nsswitch.conf file and rebooted, but the problem remains. Or did you mean someting else?

Offline

#5 2019-10-26 20:02:42

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,473

Re: [SOLVED] Avahi with Netctl: resolving local addresses fails.

No, that's what I meant.

Do you maybe use other local DNS resolvers (dnsmasq, stubby, etc.)?

Offline

#6 2019-10-26 20:34:31

Stefan_xyz
Member
Registered: 2019-09-01
Posts: 104

Re: [SOLVED] Avahi with Netctl: resolving local addresses fails.

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

#7 2019-10-26 21:07:20

SmallAndSimple
Member
Registered: 2015-11-25
Posts: 50

Re: [SOLVED] Avahi with Netctl: resolving local addresses fails.

Well, thanks for your time. There was a typo in my config:

mdns_mininal

Offline

Board footer

Powered by FluxBB