Hi there!
First of all, I want to express my gratitude for your amazing work on WireSock! I stumbled upon your project while trying to resolve an issue with the regular WireGuard client.
I would like to use WireSock as a client to gain access to my work’s internal network. In order to access internal resources, I need to use the FQDN of resources (e.g., internalSite.firmName.lan) or configure a DNS suffix (firmName.lan) on the adapter to use short names, such as internalSite. In the regular WireGuard client, this can be achieved using the DNS option as shown below:
[Interface]
PrivateKey = <secret=>
Address = 10.xx.xx.xx/32
DNS = 10.xx.xx.xx, firmName.lan
I attempted to use a configuration from regular WireGuard client with the WireSock like this:
wiresock-client.exe install -start-type 2 -config "C:\Users\l2a\Downloads\my.conf" -log-level none -lac
However, the DNS suffix wasn’t added to the adapter. I tried adding it manually via the GUI from ncpa.cpl, but I encountered an error since there was no IP address assigned directly to the adapter. As a workaround, I used PowerShell:
# SUFFIX TO ADD
$Domain = 'firmName.lan'
# ONLY RETURN ETHERNET CONNECTIONS
$Nic = Get-DnsClient | Where-Object -Property InterfaceAlias -Match "Local Area Connection"
# ADD SUFFIX TO EACH ETHERNET CONNECTION
Foreach ($N in $Nic) {
Set-DnsClient -ConnectionSpecificSuffix $Domain -InterfaceIndex $N.InterfaceIndex
}
This method worked, but I believe it should function like the regular client. Is there a simpler way to make the DNS suffix work with WireSock? Or do you have plans to implement this feature in the future?
Thank you for your time and consideration. Looking forward to your response!
Best regards