---
title: "Discussion on \"Resolve any `*.test` domain to `localhost`\" | Hashnode"
description: "Discussion on \"Resolve any `*.test` domain to `localhost`\". Linux\nThis setup uses dnsmasq to handle *.test domain resolution, with systemd-resolved forwarding those queries to dnsmasq.\n# Install dnsmasq\nsudo apt update\nsudo apt install dnsmasq\n\n# Configure dnsmasq to listen on 127.0.0.2 and resolve *.test to ..."
url: "https://hashnode.com/posts/resolve-any-test-domain-to-localhost/698f1d8c80810eae000a3f48"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Resolve any \`\*.test\` domain to \`localhost\`](https://osmianski.com/resolve-any-test-domain-to-localhost?utm_source=hashnode&utm_medium=feed)

Linux This setup uses dnsmasq to handle \*.test domain resolution, with systemd-resolved forwarding those queries to dnsmasq. # Install dnsmasq sudo apt update sudo apt install dnsmasq # Configure dnsmasq to listen on 127.0.0.2 and resolve \*.test to ...

Feb 13 · 2 min read · osmianski.com  
Updated Feb 18  
Read the article

## Written by

[Vlad Osmianski](https://hashnode.com/@osmianski)

@osmianski · Vilnius, Lithuania

  
[View profile](https://hashnode.com/@osmianski)

I write about creating Laravel + Vue + Inertia apps, no bla-bla | I'm a full-stack Web developer and entrepreneur for 20+ years

A senior PHP + JavaScript + MySql developer of large-scale websites &amp; backends and entrepreneur living in Vilnius, Lithuania with my wife Monika and my parrot Johnny. Very good at project management and communication, too. I’m here to create stuff that is useful to other people. Let's keep in touch!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
