<?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[Don&#x27;t forward without domain]]></title><description><![CDATA[<p dir="auto">I'm wondering if it is possible [with unbound] to stop forwarding requests without domain.<br />
Here is the example - local PC is sending query and receiving an undesired response:</p>
<pre><code>192.168.1.2	192.168.1.1	DNS	62	Standard query 0x0003 A gw
192.168.1.1	192.168.1.2	DNS	118	Standard query response 0x0003 A gw SOA gw01.dns.pt

</code></pre>
<p dir="auto">Now with another name</p>
<pre><code>192.168.1.2	192.168.1.1	DNS	64	Standard query 0x0004 A brix
192.168.1.1	192.168.1.2	DNS	139	Standard query response 0x0004 No such name A brix SOA a.root-servers.net
192.168.1.2	192.168.1.1	DNS	68	Standard query 0x0005 A brix.lan
192.168.1.1	192.168.1.2	DNS	84	Standard query response 0x0005 A brix.lan A 192.168.1.6

</code></pre>
<p dir="auto">After "No such name" client PC is adding default domain "lan", sending another query and receiving a proper response.</p>
<p dir="auto">Another question - is it possible to force Unbound to add default domain to all the queries it receives without domain?</p>
]]></description><link>https://forum.netgate.com/topic/126345/don-t-forward-without-domain</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 11:50:11 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/126345.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Jan 2018 21:45:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Don&#x27;t forward without domain on Sun, 28 Jan 2018 22:27:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnpoz">@<bdi>johnpoz</bdi></a>:</p>
<blockquote>
<p dir="auto">dnsmasq has an option domain-needed</p>
</blockquote>
<p dir="auto">Exactly. This is what I had in my mind, I was using it on my openwrt travel box in the past.</p>
<p dir="auto">Definitely it will be not a big deal to always use host.domain, today it just popped up during some troubleshooting where it was just quicker to type <em>ping gw</em></p>
<p dir="auto">Thanks for all the suggestions!</p>
]]></description><link>https://forum.netgate.com/post/748184</link><guid isPermaLink="true">https://forum.netgate.com/post/748184</guid><dc:creator><![CDATA[AndrewZ]]></dc:creator><pubDate>Sun, 28 Jan 2018 22:27:01 GMT</pubDate></item><item><title><![CDATA[Reply to Don&#x27;t forward without domain on Sun, 28 Jan 2018 22:24:24 GMT]]></title><description><![CDATA[<p dir="auto">a non domain query is not valid its not going to resolve locally.. Seach suffix is only going to be added on second query, if your client only asks host - that is what will be queried for.. tell you clients not to query just host and always use host.domain and you problem goes away ;)</p>
]]></description><link>https://forum.netgate.com/post/748183</link><guid isPermaLink="true">https://forum.netgate.com/post/748183</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Sun, 28 Jan 2018 22:24:24 GMT</pubDate></item><item><title><![CDATA[Reply to Don&#x27;t forward without domain on Sun, 28 Jan 2018 22:18:39 GMT]]></title><description><![CDATA[<p dir="auto">Regarding my #2 - I was thinking about adding "search domain" similar to what we have on the clients, i.e. when Unbound receiving non-FQDN query (no dots) it should first add the default domain, when try to resolve locally.</p>
]]></description><link>https://forum.netgate.com/post/748182</link><guid isPermaLink="true">https://forum.netgate.com/post/748182</guid><dc:creator><![CDATA[AndrewZ]]></dc:creator><pubDate>Sun, 28 Jan 2018 22:18:39 GMT</pubDate></item><item><title><![CDATA[Reply to Don&#x27;t forward without domain on Sun, 28 Jan 2018 22:15:10 GMT]]></title><description><![CDATA[<p dir="auto">Why would you client ask for brix unless the user put in just brix…. Have this user use brix.lan from the git go ;)  Use of single label normally not a good idea.. your local domain should be say something.tld</p>
<p dir="auto">dnsmasq has an option domain-needed I am not aware of sim option in unbound..</p>
<p dir="auto">You could use the forwarder which is dnsmasq and set this option..  You could use dnsmasq before pfsense to filter on this, say pihole or something.</p>
]]></description><link>https://forum.netgate.com/post/748181</link><guid isPermaLink="true">https://forum.netgate.com/post/748181</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Sun, 28 Jan 2018 22:15:10 GMT</pubDate></item><item><title><![CDATA[Reply to Don&#x27;t forward without domain on Sun, 28 Jan 2018 22:05:25 GMT]]></title><description><![CDATA[<p dir="auto">The only way to do that would be to have something that does a DNS lookup on everything heading out.  As for your second question, I'm not sure what you're looking for?  A fully qualified domain name has 2 parts, a host name and a domain name.  Do you want to make those up for addresses that don't resolve?</p>
]]></description><link>https://forum.netgate.com/post/748180</link><guid isPermaLink="true">https://forum.netgate.com/post/748180</guid><dc:creator><![CDATA[JKnott]]></dc:creator><pubDate>Sun, 28 Jan 2018 22:05:25 GMT</pubDate></item></channel></rss>