Does ndots:0 in your resolv.conf not achieve what you want? -- Josh Smith KD8HRX
Email/jabber: juice...@gmail.com Phone: 304.237.9369(c) Sent from my iPhone. > On Dec 9, 2014, at 11:01 AM, Ted Unangst <t...@tedunangst.com> wrote: > > Curious if anyone knows a simple way to prevent resolution of one word > hostnames. Either via resolv.conf or unbound.conf. > > For example: > > athens:~> host android > android has address 127.0.53.53 > android mail is handled by 10 your-dns-needs-immediate-attention.android. > > I do not like this. > > athens:~> host bobo > Host bobo not found: 3(NXDOMAIN) > > This is much better. > > athens:~> host com > > This isn't great either. > > I realize this is how DNS works, but I also think it's something I > should be able to "fix" at a local level. The fact that anything and > everything can now be a TLD is pretty sneaky. If a DNS lookup has only > a single part, I would like to restrict it to the search domain.