Bug#788670: systemd: resolved ignores DNS-entry in /etc/systemd/network/ and in /etc/network/interfaces
Andreas Glaeser
bugs.andreas.glaeser at freenet.de
Sun Jun 14 04:57:27 BST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Package: systemd
Version: 215-17+deb8u1
Severity: minor
Dear Maintainer,
I tried to set a different dns-resolver than the default gateway, but failed:
> root at s55:/home/andrew# cat /etc/systemd/network/dns.network
> [MATCH]
> Name=eth1
> HOST=s55
>
> [NETWORK]
> DNS=192.168.0.108
> root at s55:/home/andrew# ifconfig
> eth1 Link encap:Ethernet HWaddr 00:19:99:60:9d:e1
> inet addr:192.168.0.60 Bcast:192.168.0.255 Mask:255.255.255.0
> inet6 addr: fd00:bc14:17f:f212:219:99ff:fe60:9de1/64 Scope:Global
> inet6 addr: 2a02:8109:9ac0:2354:219:99ff:fe60:9de1/64 Scope:Global
> inet6 addr: fe80::219:99ff:fe60:9de1/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:10441 errors:0 dropped:0 overruns:0 frame:0
> TX packets:3623 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:12507078 (11.9 MiB) TX bytes:390711 (381.5 KiB)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:65536 Metric:1
> RX packets:2131 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2131 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:378311 (369.4 KiB) TX bytes:378311 (369.4 KiB)
>
> root at s55:/home/andrew# cat /etc/network/interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> # The loopback network interface
> auto lo
>
> iface lo inet loopback
>
> # The primary network interface
>
> auto eth1
>
> allow-hotplug eth1
>
> #iface eth0 inet manual
>
> iface eth1 inet static
> address 192.168.0.60
> netmask 255.255.255.0
> gateway 192.168.0.1
> # dns-nameservers 192.168.0.108 #handled by systemd
>
> #
> #auto eth2
> #
> #allow-hoplug eth2
> #
> #iface eth2 inet dhcp
> # netmask 255.255.255.0
> # gateway 192.168.0.1
> #
>
> root at s55:/home/andrew# cat /etc/resolv.conf
> nameserver 2a02:8109:9ac0:2354::1
That's still the IP6-representation of the default gateway.
This really should be configurable.
- - -- Package-specific info:
- - -- System Information:
Debian Release: 8.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.7-ckt11-aedl (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages systemd depends on:
ii acl 2.2.52-2
ii adduser 3.113+nmu3
ii initscripts 2.88dsf-59
ii libacl1 2.2.52-2
ii libaudit1 1:2.4-1+b1
ii libblkid1 2.25.2-6
ii libc6 2.19-18
ii libcap2 1:2.24-8
ii libcap2-bin 1:2.24-8
ii libcryptsetup4 2:1.6.6-5
ii libgcrypt20 1.6.3-2
ii libkmod2 18-3
ii liblzma5 5.1.1alpha+20120614-2+b3
ii libpam0g 1.1.8-3.1
ii libselinux1 2.3-2
ii libsystemd0 215-17+deb8u1
ii mount 2.25.2-6
ii sysv-rc 2.88dsf-59
ii udev 215-17+deb8u1
ii util-linux 2.25.2-6
Versions of packages systemd recommends:
ii dbus 1.8.18-0+deb8u1
ii libpam-systemd 215-17+deb8u1
Versions of packages systemd suggests:
ii systemd-ui 3-2
- - -- Configuration Files:
/etc/systemd/resolved.conf changed:
[Resolve]
DNS=192.168.0.108
- - -- no debconf information
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlV8+PUACgkQ5+rBHyUt5wvuKQCfZ6A1HB2efzdQf+CX1VY1RJn4
o1QAn3pxY1mLSL3FLlsmYjUThQ64239j
=F5nO
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlV8+6cACgkQ5+rBHyUt5wvNyACeLAexV6oj4xMv1LxXyXSLRckt
cCQAoLiaIfLQWC6zEdiFNi7rZHBJJFLo
=Spni
-----END PGP SIGNATURE-----
More information about the Pkg-systemd-maintainers
mailing list