<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Who does Wireguard ask for DNS lookups?]]></title><description><![CDATA[<p dir="auto">I have a strange Wireguard situation at home. My pfsense resolves nextcloud.nibelheim to 10.0.0.200 (static mapping registered in DNS resolver as well as host override). Locally I can access my nextcloud using its name (https://nextcloud.nibelheim). It has a selfsigned certificate.</p>
<p dir="auto">But when I tunnel in with Wireguard app using my Android phone, even though I can access all my other servers as well as the pfsense GUI where I can perform the same lookup successfully, the browser says "DNS_PROBE_FINISHED_NXDOMAIN" when I try https://nextcloud.nibelheim .</p>
<p dir="auto">When I try, inside the tunnel, with https://10.0.0.200 I first get "This connection is not secure" but I have the option to "Continue to site".  When I click that button I get "ERR_SSL_PROTOCOL_ERROR". I don't know but I guess this is due to the certificate being tied to "nextcloud.nibelheim" and not the IP.</p>
<p dir="auto">But why cannot the browser?/wireguard?/something? resolve nextcloud.nibelheim to 10.0.0.200 when I am inside the tunnel? Pfsense can when I am outside.</p>
<p dir="auto">This is eating at me, I am thinking about this every night until I fall asleep. :-)</p>
]]></description><link>https://forum.netgate.com/topic/183374/who-does-wireguard-ask-for-dns-lookups</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 02:33:27 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/183374.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Oct 2023 14:49:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Who does Wireguard ask for DNS lookups? on Thu, 19 Oct 2023 08:38:45 GMT]]></title><description><![CDATA[<p dir="auto">@Bob-Dig &amp; <a class="plugin-mentions-user plugin-mentions-a" href="/user/paoloposo" aria-label="Profile: paoloposo">@<bdi>paoloposo</bdi></a><br />
I have entertained the idea that DNS might need to be configured specifically for Wireguard (hence my post here), but somehow my googling always went off in different directions. And this has been going on for two weeks. I tried so many solutions both software and hardware, but somehow it completely escaped me that there even is a DNS field in the Wireguard app for Android.</p>
<p dir="auto">I feel embarrassed for having bothered the community with such a simple matter, but am grateful that both of you stepped in to help out.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netgate.com/post/1130853</link><guid isPermaLink="true">https://forum.netgate.com/post/1130853</guid><dc:creator><![CDATA[pastic]]></dc:creator><pubDate>Thu, 19 Oct 2023 08:38:45 GMT</pubDate></item><item><title><![CDATA[Reply to Who does Wireguard ask for DNS lookups? on Thu, 19 Oct 2023 08:26:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pastic" aria-label="Profile: pastic">@<bdi>pastic</bdi></a> What DNS-server do you have in your wg-config for that phone? You should put in the IP-address of the wg-interface as the DNS-server and also have rules allowing the access.</p>
]]></description><link>https://forum.netgate.com/post/1130851</link><guid isPermaLink="true">https://forum.netgate.com/post/1130851</guid><dc:creator><![CDATA[Bob.Dig]]></dc:creator><pubDate>Thu, 19 Oct 2023 08:26:58 GMT</pubDate></item><item><title><![CDATA[Reply to Who does Wireguard ask for DNS lookups? on Wed, 18 Oct 2023 15:40:25 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Server:		192.168.43.76</p>
</blockquote>
<p dir="auto">but the DNS lookup at the above address when inside the tunnel work for other addresses (tethering my laoptop to my phone, carrier-only, phone wifi disabled);</p>
<pre><code>peter@lenovo-debian12:~$ nslookup nextcloud.nibelheim
Server:		192.168.43.76
Address:	192.168.43.76#53

** server can't find nextcloud.nibelheim: NXDOMAIN

peter@lenovo-debian12:~$ nslookup dn.se
Server:		192.168.43.76
Address:	192.168.43.76#53

Non-authoritative answer:
Name:	dn.se
Address: 3.73.167.51
Name:	dn.se
Address: 3.65.23.168
Name:	dn.se
Address: 3.123.196.169

</code></pre>
]]></description><link>https://forum.netgate.com/post/1130782</link><guid isPermaLink="true">https://forum.netgate.com/post/1130782</guid><dc:creator><![CDATA[pastic]]></dc:creator><pubDate>Wed, 18 Oct 2023 15:40:25 GMT</pubDate></item><item><title><![CDATA[Reply to Who does Wireguard ask for DNS lookups? on Wed, 18 Oct 2023 15:21:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paoloposo" aria-label="Profile: paoloposo">@<bdi>paoloposo</bdi></a><br />
Hi, excuse me for taking a bit of time to get back to you.</p>
<p dir="auto">nslookup mentions an address in a range I do not use locally at all, I use 10.0.0.0/24. I do not know where it comes from.</p>
<pre><code>peter@lenovo-debian12:~$ nslookup nextcloud.nibelheim
Server:		192.168.43.76
Address:	192.168.43.76#53

** server can't find nextcloud.nibelheim: NXDOMAIN

</code></pre>
<p dir="auto">As for the browser output, I enclose a screen dump of all info I was able to get:</p>
<p dir="auto"><img src="/assets/uploads/files/1697642380210-screenshot-from-2023-10-18-17-18-47-resized.png" alt="Screenshot from 2023-10-18 17-18-47.png" class="img-markdown  img-fluid" /></p>
]]></description><link>https://forum.netgate.com/post/1130778</link><guid isPermaLink="true">https://forum.netgate.com/post/1130778</guid><dc:creator><![CDATA[pastic]]></dc:creator><pubDate>Wed, 18 Oct 2023 15:21:02 GMT</pubDate></item><item><title><![CDATA[Reply to Who does Wireguard ask for DNS lookups? on Sun, 15 Oct 2023 21:05:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pastic" aria-label="Profile: pastic">@<bdi>pastic</bdi></a> Can you try this with a desktop browser and post any errors from the browser console please. Also what is the output of <code>nslookup nextcloud.nibelheim</code> ?</p>
]]></description><link>https://forum.netgate.com/post/1130149</link><guid isPermaLink="true">https://forum.netgate.com/post/1130149</guid><dc:creator><![CDATA[paoloposo]]></dc:creator><pubDate>Sun, 15 Oct 2023 21:05:19 GMT</pubDate></item></channel></rss>