gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.4k stars 547 forks source link

[Bug]: DNS does not support IPv6-only VPN #2080

Open g00g1 opened 1 year ago

g00g1 commented 1 year ago

Contact Details

No response

What happened?

  1. Installed netmaker using nm-quick-interactive.sh script on Ubuntu 22.04 host
  2. Created IPv6-only VPN
  3. Could not find DNS listener available for external client
  4. It seems that CoreDNS is only IPv4 capable (see attached logs)

Version

v0.17.1

What OS are you using?

Linux

Relevant log output

[netmaker] 2023-02-28 11:36:05 Key: 'DNSEntry.Address' Error:Field validation for 'Address' failed on the 'ip' tag (1)
[netmaker] 2023-02-28 11:36:05 netadm invalid DNS entry {Address: Address6: Name:test Network:servernet}: Key: 'DNSEntry.Address' Error:Field validation for 'Address' failed on the 'ip' tag (1)
[netmaker] 2023-02-28 11:36:05 processed request error: Key: 'DNSEntry.Address' Error:Field validation for 'Address' failed on the 'ip' tag (1)

Contributing guidelines

b4good commented 1 year ago

I have the same problem with IPv4. Netmaker does not resolve its own address. Core Dns is working fine, though, could resolve valide names like google.de As I am not too deep into the networking stuff, I have no idea, how to solve this issue.

b4good commented 1 year ago

Here are some log entries of the error:

entry {Address:10.102.101.2 Address6: Name: Network:netmaker}: Key: 'DNSEntry.Name' Error:Field validation for 'Name' failed on the 'required' tag 
[netmaker] 2023-03-02 13:32:17 processed request error: Key: 'DNSEntry.Na