Description
This simple C# program fetches hostnames and looks through domain name servers for A records. When it finds an IP in the DNS, it will cache the IP, DNS, and Hostname, so that when you fetch the same hostname, it will receive the cached results.
.NET 3.1 or greater
Download the source code:
git clone https://github.com/SoftwareFuze/DNS-Cacher.git
Then, open
DNS-Cacher.csproj
with Visual Studio.
Download the source code:
git clone https://github.com/SoftwareFuze/DNS-Cacher.git
Then, run the command
dotnet run
When you run the program, you should see the following message
To create a new cache, run the command create-cache [name]
where [name]
is the name of the new cache you want to register.
![Create cache](/turbo-turnip/DNS-Cacher/raw/main/images/create-cache.png)
Now, as you can see, it switched us over to the newly created cache we made!
We now have both our default-cache
and our newly created my-new-cache
![The new cache](/turbo-turnip/DNS-Cacher/raw/main/images/new-cache.png)
To switch from one cache to another, run the command switch-cache [cache]
where [cache]
is the name of the cache you want to switch to.
![Switch caches](/turbo-turnip/DNS-Cacher/raw/main/images/switch-cache.png)
To lookup a DNS record by hostname, run the command lookup [hostname]
where [hostname]
is the hostname.
- ✅ google.com
- ❌ https://google.com/
- ✅ apple.com
- ❌ apple.com/
![Lookup hostname](/turbo-turnip/DNS-Cacher/raw/main/images/lookup.png)