<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/mocktools-ruby-dns-mock-dns-mock-server-written-on-ruby-mimic-any-dns-records-for-your-test-envi-ry4kkklfl" -->

---
title: mocktools/ruby-dns-mock: DNS mock server written on 💎...
description: DnsMock is a Ruby gem that allows users to mimic any DNS records for their test environment using a mock server.
canonical: https://daily.dev/posts/mocktools-ruby-dns-mock-dns-mock-server-written-on-ruby-mimic-any-dns-records-for-your-test-envi-ry4kkklfl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: mocktools/ruby-dns-mock: DNS mock server written on 💎 Ruby. Mimic any DNS records for your test environment with fake DNS server. | daily.dev
og:description: DnsMock is a Ruby gem that allows users to mimic any DNS records for their test environment using a mock server.
og:url: https://daily.dev/posts/mocktools-ruby-dns-mock-dns-mock-server-written-on-ruby-mimic-any-dns-records-for-your-test-envi-ry4kkklfl
og:image: https://api.daily.dev/og/posts/rY4kkkLFL.png
og:image:alt: mocktools/ruby-dns-mock: DNS mock server written on 💎 Ruby. Mimic any DNS records for your test environment with fake DNS server.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# mocktools/ruby-dns-mock: DNS mock server written on 💎 Ruby. Mimic any DNS records for your test environment with fake DNS server.

**[Ruby Flow](https://daily.dev/sources/rubyflow)** · 4 min read · 0 upvotes · 0 comments

## Summary

DnsMock is a Ruby gem that allows users to mimic any DNS records for their test environment using a mock server.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/mocktools/ruby-dns-mock>

---

Tags: [#gem](https://daily.dev/tags/gem)

[View this post on daily.dev](https://daily.dev/posts/mocktools-ruby-dns-mock-dns-mock-server-written-on-ruby-mimic-any-dns-records-for-your-test-envi-ry4kkklfl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"mocktools/ruby-dns-mock: DNS mock server written on 💎 Ruby. Mimic any DNS records for your test environment with fake DNS server.","url":"https://daily.dev/posts/mocktools-ruby-dns-mock-dns-mock-server-written-on-ruby-mimic-any-dns-records-for-your-test-envi-ry4kkklfl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/mocktools-ruby-dns-mock-dns-mock-server-written-on-ruby-mimic-any-dns-records-for-your-test-envi-ry4kkklfl"},"datePublished":"2024-04-18T18:54:56.061Z","dateModified":"2024-05-09T09:03:00.647Z","description":"DnsMock is a Ruby gem that allows users to mimic any DNS records for their test environment using a mock server.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/13cd3c8472144c5bce2f7ce4bf2e67ce?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/13cd3c8472144c5bce2f7ce4bf2e67ce?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Ruby Flow","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ruby Flow","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a21aaa8bcbbf448193a016895c90a0e1","url":"https://daily.dev/sources/rubyflow"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/mocktools-ruby-dns-mock-dns-mock-server-written-on-ruby-mimic-any-dns-records-for-your-test-envi-ry4kkklfl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"gem","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ruby Flow","item":"https://daily.dev/sources/rubyflow"},{"@type":"ListItem","position":3,"name":"mocktools/ruby-dns-mock: DNS mock server written on 💎 Ruby. Mimic any DNS records for your test environment with fake DNS server."}]}
```

