On Debian 6.1.129-1, I have a static network interface conf (no Netplan)
with both IPv4 & IPv6 addressing and Name-servers set.
On another older machine (running kernel 4.9.35-v7+) with exactly the
same configuration layout, I get BOTH the IPv4 & IPv6 addresses returned
from resolv.conf
Hello
On Debian 6.1.129-1, I have a static network interface conf (no Netplan)
with both IPv4 & IPv6 addressing and Name-servers set.
root@debian:/home/user# more /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
 auto lo
 iface lo inet loopback
 allow-hotplug enp1s0
 iface enp1s0 inet static
 address 12.34.56.78
 network 12.34.56.0
 netmask 255.255.255.0
 broadcast 12.34.56.255
 gateway 12.34.56.1
 iface enp1s0 inet6 static
 address 2xxx:xxxx:x00:1::50
 netmask 64
 gateway 2xxx:xxxx:x00:1::1
 dns-nameservers 12.34.56.80 2xxx:xxx:x00:1::80
When I query what is set in resolv.conf file, It only returns the IPv4 host.
root@debian:/home/user# more /etc/resolv.conf
nameserver 12.34.56.80
On another older machine (running kernel 4.9.35-v7+) with exactly the
same configuration layout, I get BOTH the IPv4 & IPv6 addresses returned
from resolv.conf
root@another:/home/user# more /etc/resolv.conf
nameserver 12.34.56.80
nameserver 2xxx:xxx:x00:1::80
The IPv6 networking side has no issues - I can ssh over to other
machines via IPv6 with no issues. And the machine is serving v6 web
traffic fine.
Mal
On Debian 6.1.129-1, I have a static network interface conf (no Netplan)
with both IPv4 & IPv6 addressing and Name-servers set.
root@debian:/home/user# more /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
allow-hotplug enp1s0
iface enp1s0 inet static
address 12.34.56.78
network 12.34.56.0
netmask 255.255.255.0
broadcast 12.34.56.255
gateway 12.34.56.1
iface enp1s0 inet6 static
address 2xxx:xxxx:x00:1::50
netmask 64
gateway 2xxx:xxxx:x00:1::1
dns-nameservers 12.34.56.80 2xxx:xxx:x00:1::80
When I query what is set in resolv.conf file, It only returns the IPv4 host.
root@debian:/home/user# more /etc/resolv.conf
nameserver 12.34.56.80
Without the conf package, I still don't get why it populated only one
ipv4 nameserver target and ignored the ipv6 target.
Without the conf package, I still don't get why it populated only one
ipv4 nameserver target and ignored the ipv6 target.
Hi,
On Thu, Mar 27, 2025 at 09:38:02PM +1030, Mal wrote:
Without the conf package, I still don't get why it populated only one
ipv4 nameserver target and ignored the ipv6 target.
Are you sure this is not just what the installation process did?
Without "resolvconf" the /etc/resolv.conf file is just a static file so there's limited things that would be editing it. The guesses of "you"
or "the installer" would be the most likely for me as nothing else
should be touching it.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:45:16 |
Calls: | 10,392 |
Files: | 14,064 |
Messages: | 6,417,215 |