[GH-ISSUE #2474] Linux client ignores DNS setting in config #1105

Open
opened 2026-10-13 20:34:27 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @dumbler on GitHub (Apr 13, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2474

Describe the bug
Linux client creates iptables chain 'amnvpn.320.allowDNS' that is statically filled with 1.1.1.1 and 1.0.0.1 DNSes and ignores custom set DNS in tunnel .conf file. Also client should change 'nameserver' record in /etc/resolv.conf to DNS record provided by .conf file during connection activation, and roll back to previous setings on connection stop.

To Reproduce
Steps to reproduce the behavior:

  1. Start tunnel
  2. iptables -nvL amnvpn.320.allowDNS -> only 1.1.1.1:53 and 1.0.0.1:53 destinations allowed
  3. cat /etc/resolv.conf -> no 'nameserver' records update

Expected behavior
Added custom DNS IP to amnvpn.320.allowDNS chain (tcp/53 and udp/53)
Removed previous 'nameserver' entries in /etc/resolv.conf and added custom DNS entry

Originally created by @dumbler on GitHub (Apr 13, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2474 **Describe the bug** Linux client creates iptables chain 'amnvpn.320.allowDNS' that is statically filled with 1.1.1.1 and 1.0.0.1 DNSes and ignores custom set DNS in tunnel .conf file. Also client should change 'nameserver' record in /etc/resolv.conf to DNS record provided by .conf file during connection activation, and roll back to previous setings on connection stop. **To Reproduce** Steps to reproduce the behavior: 1. Start tunnel 2. iptables -nvL amnvpn.320.allowDNS -> only 1.1.1.1:53 and 1.0.0.1:53 destinations allowed 3. cat /etc/resolv.conf -> no 'nameserver' records update **Expected behavior** Added custom DNS IP to amnvpn.320.allowDNS chain (tcp/53 and udp/53) Removed previous 'nameserver' entries in /etc/resolv.conf and added custom DNS entry
Author
Owner

@Vitalik93 commented on GitHub (Apr 14, 2026):

Looks like the same bug https://github.com/amnezia-vpn/amnezia-client/issues/2480

<!-- gh-comment-id:4245247223 --> @Vitalik93 commented on GitHub (Apr 14, 2026): Looks like the same bug https://github.com/amnezia-vpn/amnezia-client/issues/2480
Author
Owner

@Flashwalker commented on GitHub (Apr 16, 2026):

#2379

<!-- gh-comment-id:4258825519 --> @Flashwalker commented on GitHub (Apr 16, 2026): #2379
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#1105
No description provided.