This article is a mirror article of machine translation, please click here to jump to the original article.

View: 5692|Reply: 7

Practical Operation: Using Docker to Build DNS Service (dnsmasq)

[Copy link]
Posted on 5/31/2022 9:03:06 PM | | | |
Requirements: You need to set up a DNS server to resolve some special domain names, and if others use the DNS, you can hijack the specified domain name.

DNSmasq is a small and convenient tool for configuring DNS and DHCP for small networks, providing DNS functionality and optional DHCP functionality. It serves domains that are only available locally and do not appear on DNS servers worldwide. The DHCP server and DNS server are combined, and allow the DHCP-assigned addresses to be resolved normally in DNS, and these DHCP-assigned addresses and related commands can be configured to each host or to a core device (such as a router).

Docker image address:The hyperlink login is visible.


Profile Details:The hyperlink login is visible.

First, create/opt/dnsmasq.confThe configuration file is as follows:

Create a dnsmasq container and provide the web management port 5380 with the following command:

HTTP_USER: The administrator account of the web page login
HTTP_PASS: The administrator password for logging in to the web page


Open it through a browser: http://ip:5380/ account is: itsvse and password is: a123456

Log in to the DNSMASQ container and check the private IP address, because my network is relatively special, in fact, you can directly use the external IP address as the DNS server address, you can skip this step,You can directly configure DNS as your server's public IP address, remember to open the UDP 53 port of the DNS server!!

I set the DNS to the private network address of the dnsmasq container on the server, and I dialed up to connect to the server on my local computer, and I can successfully obtain the configured DNS address. (Steps omitted)



Let's try pinging ittest.itsvse.comdomain name, you can see that it is our customized resolution IP address, as shown in the figure below:



(Note:test.itsvse.comThere is no resolution record configured on the root nameserver)


Let's forge the analysis of Baidu domain name, as shown in the figure below:



Of course, you can also test domain name resolution through nslookup, with the following command:



(End)

Score

Number of participants1MB+1 Collapse reason
Dingzhen + 1 Oh no!

See all ratings





Previous:[Practice] Use .NET to switch the URL of the Edge browser tab
Next:VS compiles Mixed Platform x64
 Landlord| Posted on 5/31/2022 9:12:56 PM |
nslookup command briefly introduced
https://www.itsvse.com/thread-10091-1-1.html
Posted on 6/3/2022 10:54:15 PM |
Learn a little...
Posted on 6/8/2022 9:19:30 AM |
Good stuff, good good
 Landlord| Posted on 2/24/2025 11:15:39 AM |
Technitium DNS ServerSimpler




Reference:The hyperlink login is visible.
 Landlord| Posted on 2/24/2025 1:11:27 PM |
BIND 9

Bind is short for Berkeley Internet Name Domain Service, which is an open source software that implements DNS servers. It has become the most widely used DNS server software in the world, and more than half of the DNS servers on the Internet are set up with Bind, which has become the de facto standard in DNS.

history

  • BIND4 version, the BIND package was originally written at the University of California, Berkeley in the early 1980s as a graduate program with funding from the U.S. Defense Advanced Research Projects Administration (DARPA). Versions of BIND through 4.8.3 are maintained by the Computer Systems Research Group (CSRG) at the University of California, Berkeley. Douglas Terry, Mark Painter, David Riggle, and Songnian Zhou formed the original BIND project team.
  • BIND8 version, Internet Software Consortium, Inc. (ISC) was founded in 1994 by Rick Adams, Paul Vixie, and Carl Malamud to provide a place for the development and maintenance of BIND. BIND versions starting with 4.9.3 are developed and maintained by the ISC and supported by ISC's sponsors. As co-architects/programmers, Bob Halley and Paul Vixie released the first production-ready version of BIND version 8 in May 1997. BIND versions 4 and 8 have been officially deprecated. In January 2004, the ISC changed its name to Internet Systems Consortium, Inc.
  • BIND9, released in September 2000, significantly rewrote almost all aspects of the underlying BIND architecture.
  • BIND10, which was developed between 2009~2014, ISC began to try to rewrite BIND from scratch using BIND 10. It is designed to replace and improve BIND 9 and is based on a completely new application framework. In 2014,The ISC ended the development of BIND 10, and instead refocused on investing in BIND 9.

Official website:The hyperlink login is visible.

Project Address:The hyperlink login is visible.

 Landlord| Posted on 2/24/2025 1:19:39 PM |
There are many open source DNS.

  • Bind
  • PowerDNS
  • CoreDNS
  • DNSPod-SR
  • Dnsmasq
  • Atomia DNS


Reference:The hyperlink login is visible.
 Landlord| Posted on 2/24/2025 7:44:20 PM |
.NET/C# Open Source DNS Service Built by Technitium DNS Server
https://www.itsvse.com/thread-10953-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com