├── .gitattributes ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── docker-compose.yml ├── net.dnsclient.sln └── net.dnsclient ├── .config └── dotnet-tools.json ├── DnsClientApp.cs ├── Program.cs ├── Properties ├── PublishProfiles │ └── FolderProfile.pubxml └── launchSettings.json ├── appsettings.Development.json ├── appsettings.json ├── install.sh ├── named.root ├── net.dnsclient.csproj ├── root-anchors.xml ├── start.bat ├── start.sh ├── systemd.service ├── uninstall.sh └── wwwroot ├── css ├── bootstrap.min.css ├── bootstrap.min.css.map ├── font-awesome.min.css └── main.css ├── favicon.ico ├── fonts ├── FontAwesome.otf ├── fontawesome-webfont.eot ├── fontawesome-webfont.svg ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff ├── fontawesome-webfont.woff2 ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── img ├── loader.gif └── logo25x25.png ├── index.html ├── js ├── bootstrap.min.js ├── dnsclient.js ├── jquery.min.js └── main.js └── json ├── dnsclient-server-list-builtin.json └── readme.txt /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | *.sh text eol=lf 6 | supervisor.conf text eol=lf 7 | systemd.service text eol=lf 8 | # Using the HEREDOC feature expects LF: 9 | Dockerfile text eol=lf 10 | ############################################################################### 11 | # Set default behavior for command prompt diff. 12 | # 13 | # This is need for earlier builds of msysgit that does not have it on by 14 | # default for csharp files. 15 | # Note: This is only used by command line 16 | ############################################################################### 17 | #*.cs diff=csharp 18 | 19 | ############################################################################### 20 | # Set the merge driver for project and solution files 21 | # 22 | # Merging from the command prompt will add diff markers to the files if there 23 | # are conflicts (Merging from VS is not affected by the settings below, in VS 24 | # the diff markers are never inserted). Diff markers may cause the following 25 | # file extensions to fail to load in VS. An alternative would be to treat 26 | # these files as binary and thus will always conflict and require user 27 | # intervention with every merge. To do so, just uncomment the entries below 28 | ############################################################################### 29 | #*.sln merge=binary 30 | #*.csproj merge=binary 31 | #*.vbproj merge=binary 32 | #*.vcxproj merge=binary 33 | #*.vcproj merge=binary 34 | #*.dbproj merge=binary 35 | #*.fsproj merge=binary 36 | #*.lsproj merge=binary 37 | #*.wixproj merge=binary 38 | #*.modelproj merge=binary 39 | #*.sqlproj merge=binary 40 | #*.wwaproj merge=binary 41 | 42 | ############################################################################### 43 | # behavior for image files 44 | # 45 | # image files are treated as binary by default. 46 | ############################################################################### 47 | #*.jpg binary 48 | #*.png binary 49 | #*.gif binary 50 | 51 | ############################################################################### 52 | # diff behavior for common document formats 53 | # 54 | # Convert binary document formats to text before diffing them. This feature 55 | # is only available from the command line. Turn it on by uncommenting the 56 | # entries below. 57 | ############################################################################### 58 | #*.doc diff=astextplain 59 | #*.DOC diff=astextplain 60 | #*.docx diff=astextplain 61 | #*.DOCX diff=astextplain 62 | #*.dot diff=astextplain 63 | #*.DOT diff=astextplain 64 | #*.pdf diff=astextplain 65 | #*.PDF diff=astextplain 66 | #*.rtf diff=astextplain 67 | #*.RTF diff=astextplain 68 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | [Xx]64/ 19 | [Xx]86/ 20 | [Bb]uild/ 21 | bld/ 22 | [Bb]in/ 23 | [Oo]bj/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | artifacts/ 46 | 47 | *_i.c 48 | *_p.c 49 | *_i.h 50 | *.ilk 51 | *.meta 52 | *.obj 53 | *.pch 54 | *.pdb 55 | *.pgc 56 | *.pgd 57 | *.rsp 58 | *.sbr 59 | *.tlb 60 | *.tli 61 | *.tlh 62 | *.tmp 63 | *.tmp_proj 64 | *.log 65 | *.vspscc 66 | *.vssscc 67 | .builds 68 | *.pidb 69 | *.svclog 70 | *.scc 71 | 72 | # Chutzpah Test files 73 | _Chutzpah* 74 | 75 | # Visual C++ cache files 76 | ipch/ 77 | *.aps 78 | *.ncb 79 | *.opendb 80 | *.opensdf 81 | *.sdf 82 | *.cachefile 83 | *.VC.db 84 | 85 | # Visual Studio profiler 86 | *.psess 87 | *.vsp 88 | *.vspx 89 | *.sap 90 | 91 | # TFS 2012 Local Workspace 92 | $tf/ 93 | 94 | # Guidance Automation Toolkit 95 | *.gpState 96 | 97 | # ReSharper is a .NET coding add-in 98 | _ReSharper*/ 99 | *.[Rr]e[Ss]harper 100 | *.DotSettings.user 101 | 102 | # JustCode is a .NET coding add-in 103 | .JustCode 104 | 105 | # TeamCity is a build add-in 106 | _TeamCity* 107 | 108 | # DotCover is a Code Coverage Tool 109 | *.dotCover 110 | 111 | # NCrunch 112 | _NCrunch_* 113 | .*crunch*.local.xml 114 | nCrunchTemp_* 115 | 116 | # MightyMoose 117 | *.mm.* 118 | AutoTest.Net/ 119 | 120 | # Web workbench (sass) 121 | .sass-cache/ 122 | 123 | # Installshield output folder 124 | [Ee]xpress/ 125 | 126 | # DocProject is a documentation generator add-in 127 | DocProject/buildhelp/ 128 | DocProject/Help/*.HxT 129 | DocProject/Help/*.HxC 130 | DocProject/Help/*.hhc 131 | DocProject/Help/*.hhk 132 | DocProject/Help/*.hhp 133 | DocProject/Help/Html2 134 | DocProject/Help/html 135 | 136 | # Click-Once directory 137 | publish/ 138 | 139 | # Publish Web Output 140 | *.[Pp]ublish.xml 141 | *.azurePubxml 142 | 143 | # TODO: Un-comment the next line if you do not want to checkin 144 | # your web deploy settings because they may include unencrypted 145 | # passwords 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # NuGet Packages 150 | *.nupkg 151 | # The packages folder can be ignored because of Package Restore 152 | **/packages/* 153 | # except build/, which is used as an MSBuild target. 154 | !**/packages/build/ 155 | # Uncomment if necessary however generally it will be regenerated when needed 156 | #!**/packages/repositories.config 157 | # NuGet v3's project.json files produces more ignoreable files 158 | *.nuget.props 159 | *.nuget.targets 160 | 161 | # Microsoft Azure Build Output 162 | csx/ 163 | *.build.csdef 164 | 165 | # Microsoft Azure Emulator 166 | ecf/ 167 | rcf/ 168 | 169 | # Microsoft Azure ApplicationInsights config file 170 | ApplicationInsights.config 171 | 172 | # Windows Store app package directory 173 | AppPackages/ 174 | BundleArtifacts/ 175 | 176 | # Visual Studio cache files 177 | # files ending in .cache can be ignored 178 | *.[Cc]ache 179 | # but keep track of directories ending in .cache 180 | !*.[Cc]ache/ 181 | 182 | # Others 183 | ClientBin/ 184 | [Ss]tyle[Cc]op.* 185 | ~$* 186 | *~ 187 | *.dbmdl 188 | *.dbproj.schemaview 189 | *.pfx 190 | *.publishsettings 191 | node_modules/ 192 | orleans.codegen.cs 193 | 194 | # RIA/Silverlight projects 195 | Generated_Code/ 196 | 197 | # Backup & report files from converting an old project file 198 | # to a newer Visual Studio version. Backup files are not needed, 199 | # because we have git ;-) 200 | _UpgradeReport_Files/ 201 | Backup*/ 202 | UpgradeLog*.XML 203 | UpgradeLog*.htm 204 | 205 | # SQL Server files 206 | *.mdf 207 | *.ldf 208 | 209 | # Business Intelligence projects 210 | *.rdl.data 211 | *.bim.layout 212 | *.bim_*.settings 213 | 214 | # Microsoft Fakes 215 | FakesAssemblies/ 216 | 217 | # GhostDoc plugin setting file 218 | *.GhostDoc.xml 219 | 220 | # Node.js Tools for Visual Studio 221 | .ntvs_analysis.dat 222 | 223 | # Visual Studio 6 build log 224 | *.plg 225 | 226 | # Visual Studio 6 workspace options file 227 | *.opt 228 | 229 | # Visual Studio LightSwitch build output 230 | **/*.HTMLClient/GeneratedArtifacts 231 | **/*.DesktopClient/GeneratedArtifacts 232 | **/*.DesktopClient/ModelManifest.xml 233 | **/*.Server/GeneratedArtifacts 234 | **/*.Server/ModelManifest.xml 235 | _Pvt_Extensions 236 | 237 | # LightSwitch generated files 238 | GeneratedArtifacts/ 239 | ModelManifest.xml 240 | 241 | # Paket dependency manager 242 | .paket/paket.exe 243 | 244 | # FAKE - F# Make 245 | .fake/ -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax=docker.io/docker/dockerfile:1 2 | 3 | FROM mcr.microsoft.com/dotnet/aspnet:8.0 4 | 5 | # Add the MS repo to install `libmsquic` to support DNS-over-QUIC: 6 | ADD --link https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb / 7 | RUN < 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DNS Client 2 | DNS Client is an ASP.NET Core web application hosted on https://dnsclient.net/. 3 | 4 | # Features 5 | - Works on Windows, Linux, macOS and Raspberry Pi. 6 | - Docker image available on [Docker Hub](https://hub.docker.com/r/technitium/dns-client). 7 | - Web app interface works with any modern web browser like Chrome, FireFox or Edge. 8 | - Allows querying any DNS server. 9 | - Supports DNSSEC validation with RSA, ECDSA and EdDSA algorithms for all DNS transport protocols. 10 | - Supports DNS-over-HTTPS, DNS-over-TLS and DNS-over-QUIC protocols. 11 | - Built-in recursive resolver to automatically query authoritative name servers. 12 | - Supports IPv6. 13 | - Open source cross-platform .NET implementation hosted on GitHub. 14 | 15 | # Linux / Raspberry Pi Automated Installer And Updater 16 | ``` 17 | curl -sSL https://download.technitium.com/dnsclient/install.sh | sudo bash 18 | ``` 19 | Run the above command in Terminal or using SSH to install or update the DNS Client. 20 | 21 | Note! Raspberry Pi with an arm7 CPU is supported and thus both Raspberry Pi 1 and Raspberry Pi Zero which have arm6 CPU are not supported. 22 | 23 | # Docker 24 | ``` 25 | docker pull technitium/dns-client:latest 26 | ``` 27 | Pull the official image from [Docker Hub](https://hub.docker.com/r/technitium/dns-client). Use the [docker-compose.yml](https://github.com/TechnitiumSoftware/net.dnsclient/blob/master/docker-compose.yml) example to create a new container and edit it as required for your deployments. 28 | 29 | # Manual Installation 30 | 31 | ## System Requirements 32 | - Requires [ASP.NET Core 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) installed. 33 | 34 | ## Download 35 | - [DnsClientPortable.tar.gz](https://go.technitium.com/?id=26) 36 | 37 | ## Manual Install Instructions 38 | - Install [ASP.NET Core 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) runtime. 39 | - Extract the downloaded DNS Client tar archive. 40 | - Run start.bat on Windows or start.sh on Linux to start the web app. 41 | - Open http://localhost:8001/ in any web browser to use the web app. 42 | - Edit the `appsettings.json` file for changing advanced options like enabling IPv6 preference. 43 | 44 | # Configuring HTTPS 45 | To enable HTTPS or setting specific end points, configure the `appsettings.json` file as described in the [documentation](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-9.0#configure-https-in-appsettingsjson). 46 | 47 | # Support 48 | For support, send an email to support@technitium.com. For any issues, feedback, or feature request, create an issue on [GitHub](https://github.com/TechnitiumSoftware/net.dnsclient/issues). 49 | 50 | # Become A Patron 51 | Make contribution to Technitium and help making new software, updates, and features possible. 52 | 53 | [Donate Now!](https://www.patreon.com/technitium) 54 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | services: 2 | dns-client: 3 | container_name: dns-client 4 | hostname: dns-client 5 | image: technitium/dns-client:latest 6 | ports: 7 | - "8001:8001/tcp" #DNS Client web app 8 | restart: unless-stopped 9 | -------------------------------------------------------------------------------- /net.dnsclient.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.28803.352 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "net.dnsclient", "net.dnsclient\net.dnsclient.csproj", "{D50E429B-66BA-4FB9-BFC4-3671196A27AA}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {D50E429B-66BA-4FB9-BFC4-3671196A27AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {D50E429B-66BA-4FB9-BFC4-3671196A27AA}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {D50E429B-66BA-4FB9-BFC4-3671196A27AA}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {D50E429B-66BA-4FB9-BFC4-3671196A27AA}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {5FA457FF-93EA-44FE-8B2E-17F3C741E62A} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /net.dnsclient/.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "dotnet-ef": { 6 | "version": "3.1.0", 7 | "commands": [ 8 | "dotnet-ef" 9 | ] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /net.dnsclient/DnsClientApp.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Technitium dnsclient.net 3 | Copyright (C) 2025 Shreyas Zare (shreyas@technitium.com) 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | 18 | */ 19 | 20 | using Microsoft.AspNetCore.Builder; 21 | using Microsoft.AspNetCore.Hosting; 22 | using Microsoft.AspNetCore.Http; 23 | using Microsoft.AspNetCore.StaticFiles; 24 | using Microsoft.Extensions.Configuration; 25 | using Microsoft.Extensions.Hosting; 26 | using System; 27 | using System.Collections.Generic; 28 | using System.IO; 29 | using System.Net; 30 | using System.Net.Sockets; 31 | using System.Reflection; 32 | using System.Text.Json; 33 | using System.Threading; 34 | using TechnitiumLibrary.Net; 35 | using TechnitiumLibrary.Net.Dns; 36 | using TechnitiumLibrary.Net.Dns.ResourceRecords; 37 | 38 | namespace net.dnsclient 39 | { 40 | public class DnsClientApp 41 | { 42 | static readonly char[] domainTrimChars = new char[] { '\t', ' ', '.' }; 43 | 44 | public IConfiguration Configuration { get; set; } 45 | 46 | public DnsClientApp(IConfiguration configuration) 47 | { 48 | Configuration = configuration; 49 | } 50 | 51 | public void Configure(IApplicationBuilder app, IHostEnvironment env) 52 | { 53 | int staticFilesCachePeriod; 54 | 55 | if (env.IsDevelopment()) 56 | { 57 | staticFilesCachePeriod = 60; 58 | app.UseDeveloperExceptionPage(); 59 | } 60 | else 61 | { 62 | staticFilesCachePeriod = 14400; 63 | } 64 | 65 | app.UseDefaultFiles(); 66 | app.UseStaticFiles(new StaticFileOptions() 67 | { 68 | OnPrepareResponse = delegate (StaticFileResponseContext ctx) 69 | { 70 | ctx.Context.Response.Headers.Append("Cache-Control", $"public, max-age={staticFilesCachePeriod}"); 71 | } 72 | }); 73 | 74 | app.Run(async (context) => 75 | { 76 | HttpRequest request = context.Request; 77 | HttpResponse response = context.Response; 78 | 79 | switch (request.Path) 80 | { 81 | case "/api/dnsclient/": 82 | try 83 | { 84 | string server = request.Query["server"]; 85 | string domain = request.Query["domain"]; 86 | DnsResourceRecordType type = Enum.Parse(request.Query["type"], true); 87 | 88 | NetworkAddress eDnsClientSubnet = null; 89 | string strEDnsClientSubnet = request.Query["eDnsClientSubnet"]; 90 | if (!string.IsNullOrEmpty(strEDnsClientSubnet)) 91 | { 92 | eDnsClientSubnet = NetworkAddress.Parse(strEDnsClientSubnet); 93 | switch (eDnsClientSubnet.AddressFamily) 94 | { 95 | case AddressFamily.InterNetwork: 96 | if (eDnsClientSubnet.PrefixLength == 32) 97 | eDnsClientSubnet = new NetworkAddress(eDnsClientSubnet.Address, 24); 98 | 99 | break; 100 | 101 | case AddressFamily.InterNetworkV6: 102 | if (eDnsClientSubnet.PrefixLength == 128) 103 | eDnsClientSubnet = new NetworkAddress(eDnsClientSubnet.Address, 56); 104 | 105 | break; 106 | } 107 | } 108 | 109 | bool dnssecValidation = false; 110 | string strDnssecValidation = request.Query["dnssec"]; 111 | if (!string.IsNullOrEmpty(strDnssecValidation)) 112 | dnssecValidation = bool.Parse(strDnssecValidation); 113 | 114 | domain = domain.Trim(domainTrimChars); 115 | 116 | bool preferIpv6 = Configuration.GetValue("PreferIpv6"); 117 | ushort udpPayloadSize = Configuration.GetValue("UdpPayloadSize"); 118 | bool randomizeName = false; 119 | bool qnameMinimization = false; 120 | int retries = Configuration.GetValue("Retries"); 121 | int timeout = Configuration.GetValue("Timeout"); 122 | 123 | DnsDatagram dnsResponse; 124 | List rawResponses = new List(); 125 | string dnssecErrorMessage = null; 126 | 127 | if (server.Equals("recursive-resolver", StringComparison.OrdinalIgnoreCase)) 128 | { 129 | DnsQuestionRecord question; 130 | 131 | if ((type == DnsResourceRecordType.PTR) && IPAddress.TryParse(domain, out IPAddress address)) 132 | question = new DnsQuestionRecord(address, DnsClass.IN); 133 | else 134 | question = new DnsQuestionRecord(domain, type, DnsClass.IN); 135 | 136 | DnsCache dnsCache = new DnsCache(); 137 | dnsCache.MinimumRecordTtl = 0; 138 | dnsCache.MaximumRecordTtl = 7 * 24 * 60 * 60; 139 | 140 | try 141 | { 142 | dnsResponse = await TechnitiumLibrary.TaskExtensions.TimeoutAsync(async delegate (CancellationToken cancellationToken1) 143 | { 144 | return await DnsClient.RecursiveResolveAsync(question, dnsCache, null, preferIpv6, udpPayloadSize, randomizeName, qnameMinimization, dnssecValidation, eDnsClientSubnet, retries, timeout, rawResponses: rawResponses, cancellationToken: cancellationToken1); 145 | }, 60000); 146 | } 147 | catch (DnsClientResponseDnssecValidationException ex) 148 | { 149 | if (ex.InnerException is DnsClientResponseDnssecValidationException ex1) 150 | ex = ex1; 151 | 152 | dnsResponse = ex.Response; 153 | dnssecErrorMessage = ex.Message; 154 | } 155 | } 156 | else if (server.Equals("system-dns", StringComparison.OrdinalIgnoreCase)) 157 | { 158 | DnsClient dnsClient = new DnsClient(); 159 | 160 | dnsClient.PreferIPv6 = preferIpv6; 161 | dnsClient.RandomizeName = randomizeName; 162 | dnsClient.Retries = retries; 163 | dnsClient.Timeout = timeout; 164 | dnsClient.UdpPayloadSize = udpPayloadSize; 165 | dnsClient.DnssecValidation = dnssecValidation; 166 | dnsClient.EDnsClientSubnet = eDnsClientSubnet; 167 | 168 | try 169 | { 170 | dnsResponse = await dnsClient.ResolveAsync(domain, type); 171 | } 172 | catch (DnsClientResponseDnssecValidationException ex) 173 | { 174 | if (ex.InnerException is DnsClientResponseDnssecValidationException ex1) 175 | ex = ex1; 176 | 177 | dnsResponse = ex.Response; 178 | dnssecErrorMessage = ex.Message; 179 | } 180 | } 181 | else 182 | { 183 | DnsTransportProtocol protocol = Enum.Parse(request.Query["protocol"], true); 184 | NameServerAddress nameServer = NameServerAddress.Parse(server); 185 | 186 | if (nameServer.Protocol != protocol) 187 | nameServer = nameServer.ChangeProtocol(protocol); 188 | 189 | if (nameServer.IsIPEndPointStale) 190 | { 191 | await nameServer.ResolveIPAddressAsync(new DnsClient() { PreferIPv6 = preferIpv6, RandomizeName = randomizeName, Retries = retries, Timeout = timeout }, preferIpv6); 192 | } 193 | else if ((nameServer.DomainEndPoint is null) && ((protocol == DnsTransportProtocol.Udp) || (protocol == DnsTransportProtocol.Tcp))) 194 | { 195 | try 196 | { 197 | await nameServer.ResolveDomainNameAsync(new DnsClient() { PreferIPv6 = preferIpv6, RandomizeName = randomizeName, Retries = retries, Timeout = timeout }); 198 | } 199 | catch 200 | { } 201 | } 202 | 203 | DnsClient dnsClient = new DnsClient(nameServer); 204 | 205 | dnsClient.PreferIPv6 = preferIpv6; 206 | dnsClient.RandomizeName = randomizeName; 207 | dnsClient.Retries = retries; 208 | dnsClient.Timeout = timeout; 209 | dnsClient.UdpPayloadSize = udpPayloadSize; 210 | dnsClient.DnssecValidation = dnssecValidation; 211 | dnsClient.EDnsClientSubnet = eDnsClientSubnet; 212 | 213 | try 214 | { 215 | dnsResponse = await dnsClient.ResolveAsync(domain, type); 216 | } 217 | catch (DnsClientResponseDnssecValidationException ex) 218 | { 219 | if (ex.InnerException is DnsClientResponseDnssecValidationException ex1) 220 | ex = ex1; 221 | 222 | dnsResponse = ex.Response; 223 | dnssecErrorMessage = ex.Message; 224 | } 225 | } 226 | 227 | using (MemoryStream mS = new MemoryStream(4096)) 228 | { 229 | Utf8JsonWriter jsonWriter = new Utf8JsonWriter(mS); 230 | jsonWriter.WriteStartObject(); 231 | 232 | if (dnssecErrorMessage is null) 233 | { 234 | jsonWriter.WriteString("status", "ok"); 235 | } 236 | else 237 | { 238 | jsonWriter.WriteString("status", "warning"); 239 | jsonWriter.WriteString("warningMessage", dnssecErrorMessage); 240 | } 241 | 242 | jsonWriter.WritePropertyName("response"); 243 | dnsResponse.SerializeTo(jsonWriter); 244 | 245 | jsonWriter.WritePropertyName("rawResponses"); 246 | jsonWriter.WriteStartArray(); 247 | 248 | for (int i = 0; i < rawResponses.Count; i++) 249 | rawResponses[i].SerializeTo(jsonWriter); 250 | 251 | jsonWriter.WriteEndArray(); 252 | 253 | jsonWriter.WriteEndObject(); 254 | jsonWriter.Flush(); 255 | 256 | response.ContentType = "application/json; charset=utf-8"; 257 | response.ContentLength = mS.Length; 258 | 259 | mS.Position = 0; 260 | using (Stream stream = response.Body) 261 | { 262 | await mS.CopyToAsync(stream); 263 | } 264 | } 265 | } 266 | catch (Exception ex) 267 | { 268 | using (MemoryStream mS = new MemoryStream(4096)) 269 | { 270 | Utf8JsonWriter jsonWriter = new Utf8JsonWriter(mS); 271 | jsonWriter.WriteStartObject(); 272 | 273 | jsonWriter.WriteString("status", "error"); 274 | jsonWriter.WriteString("errorMessage", ex.Message); 275 | jsonWriter.WriteString("stackTrace", ex.StackTrace); 276 | 277 | if (ex.InnerException != null) 278 | jsonWriter.WriteString("innerErrorMessage", ex.InnerException.Message); 279 | 280 | jsonWriter.WriteEndObject(); 281 | jsonWriter.Flush(); 282 | 283 | response.ContentType = "application/json; charset=utf-8"; 284 | response.ContentLength = mS.Length; 285 | 286 | mS.Position = 0; 287 | using (Stream stream = response.Body) 288 | { 289 | await mS.CopyToAsync(stream); 290 | } 291 | } 292 | } 293 | break; 294 | 295 | case "/api/version": 296 | response.Headers.ContentType = "application/json; charset=utf-8"; 297 | await response.WriteAsync("{\"status\":\"ok\", \"response\": {\"version\": \"" + GetCleanVersion(Assembly.GetExecutingAssembly().GetName().Version) + "\"}}"); 298 | break; 299 | 300 | default: 301 | response.StatusCode = (int)HttpStatusCode.NotFound; 302 | response.ContentLength = 0; 303 | break; 304 | } 305 | }); 306 | } 307 | 308 | private static string GetCleanVersion(Version version) 309 | { 310 | string strVersion = version.Major + "." + version.Minor; 311 | 312 | if (version.Build > 0) 313 | strVersion += "." + version.Build; 314 | 315 | if (version.Revision > 0) 316 | strVersion += "." + version.Revision; 317 | 318 | return strVersion; 319 | } 320 | } 321 | } 322 | -------------------------------------------------------------------------------- /net.dnsclient/Program.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Technitium dnsclient.net 3 | Copyright (C) 2021 Shreyas Zare (shreyas@technitium.com) 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | 18 | */ 19 | 20 | using Microsoft.AspNetCore; 21 | using Microsoft.AspNetCore.Hosting; 22 | using Microsoft.Extensions.Configuration; 23 | using System.IO; 24 | 25 | namespace net.dnsclient 26 | { 27 | public class Program 28 | { 29 | public static void Main(string[] args) 30 | { 31 | CreateWebHostBuilder(args).Build().Run(); 32 | } 33 | 34 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) => 35 | WebHost.CreateDefaultBuilder(args) 36 | .ConfigureAppConfiguration((hostingContext, config) => 37 | { 38 | config.SetBasePath(Directory.GetCurrentDirectory()); 39 | config.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true); 40 | }) 41 | .UseStartup(); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /net.dnsclient/Properties/PublishProfiles/FolderProfile.pubxml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | FileSystem 9 | FileSystem 10 | Release 11 | Any CPU 12 | 13 | true 14 | false 15 | net8.0 16 | d50e429b-66ba-4fb9-bfc4-3671196a27aa 17 | false 18 | bin\Release\publish\ 19 | true 20 | 21 | -------------------------------------------------------------------------------- /net.dnsclient/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:54700", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "net.dnsclient.NETCore": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "environmentVariables": { 22 | "ASPNETCORE_ENVIRONMENT": "Development" 23 | }, 24 | "applicationUrl": "https://localhost:5001;http://localhost:5000" 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /net.dnsclient/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /net.dnsclient/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Warning" 5 | } 6 | }, 7 | "AllowedHosts": "*", 8 | "PreferIpv6": false, 9 | "UdpPayloadSize": 1232, 10 | "Retries": 2, 11 | "Timeout": 10000 12 | } 13 | -------------------------------------------------------------------------------- /net.dnsclient/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | dotnetDir="/opt/dotnet" 4 | dotnetVersion="8.0" 5 | dotnetRuntime="Microsoft.AspNetCore.App 8.0." 6 | dotnetUrl="https://dot.net/v1/dotnet-install.sh" 7 | 8 | dnsClientDir="/opt/technitium/dnsclient" 9 | dnsClientTar="$dnsClientDir/DnsClientPortable.tar.gz" 10 | dnsClientUrl="https://download.technitium.com/dnsclient/DnsClientPortable.tar.gz" 11 | 12 | installLog="$dnsClientDir/install.log" 13 | 14 | echo "" 15 | echo "===============================" 16 | echo "Technitium DNS Client Installer" 17 | echo "===============================" 18 | echo "" 19 | 20 | mkdir -p $dnsClientDir 21 | echo "" > $installLog 22 | 23 | if dotnet --list-runtimes 2> /dev/null | grep -q "$dotnetRuntime"; 24 | then 25 | dotnetFound="yes" 26 | else 27 | dotnetFound="no" 28 | fi 29 | 30 | if [ ! -d $dotnetDir ] && [ "$dotnetFound" = "yes" ] 31 | then 32 | echo "ASP.NET Core Runtime is already installed." 33 | else 34 | if [ -d $dotnetDir ] && [ "$dotnetFound" = "yes" ] 35 | then 36 | dotnetUpdate="yes" 37 | echo "Updating ASP.NET Core Runtime..." 38 | else 39 | dotnetUpdate="no" 40 | echo "Installing ASP.NET Core Runtime..." 41 | fi 42 | 43 | curl -sSL $dotnetUrl | bash /dev/stdin -c $dotnetVersion --runtime aspnetcore --no-path --install-dir $dotnetDir --verbose >> $installLog 2>&1 44 | 45 | if [ ! -f "/usr/bin/dotnet" ] 46 | then 47 | ln -s $dotnetDir/dotnet /usr/bin >> $installLog 2>&1 48 | fi 49 | 50 | if dotnet --list-runtimes 2> /dev/null | grep -q "$dotnetRuntime"; 51 | then 52 | if [ "$dotnetUpdate" = "yes" ] 53 | then 54 | echo "ASP.NET Core Runtime was updated successfully!" 55 | else 56 | echo "ASP.NET Core Runtime was installed successfully!" 57 | fi 58 | else 59 | echo "Failed to install ASP.NET Core Runtime. Please check '$installLog' for details." 60 | exit 1 61 | fi 62 | fi 63 | 64 | echo "" 65 | echo "Downloading Technitium DNS Client..." 66 | 67 | if ! curl -o $dnsClientTar --fail $dnsClientUrl >> $installLog 2>&1 68 | then 69 | echo "Failed to download Technitium DNS Client from: $dnsClientUrl" 70 | echo "Please check '$installLog' for details." 71 | exit 1 72 | fi 73 | 74 | echo "Installing Technitium DNS Client..." 75 | 76 | tar -zxf $dnsClientTar -C $dnsClientDir >> $installLog 2>&1 77 | 78 | echo "" 79 | 80 | if ! [ "$(ps --no-headers -o comm 1 | tr -d '\n')" = "systemd" ] 81 | then 82 | echo "Failed to install Technitium DNS Client: systemd was not detected." 83 | exit 1 84 | fi 85 | 86 | if [ -f "/etc/systemd/system/dnsclient.service" ] 87 | then 88 | echo "Restarting systemd service..." 89 | systemctl restart dnsclient.service >> $installLog 2>&1 90 | else 91 | echo "Configuring systemd service..." 92 | cp $dnsClientDir/systemd.service /etc/systemd/system/dnsclient.service 93 | systemctl enable dnsclient.service >> $installLog 2>&1 94 | systemctl start dnsclient.service >> $installLog 2>&1 95 | fi 96 | 97 | echo "" 98 | echo "Technitium DNS Client was installed successfully!" 99 | echo "Open http://$(cat /proc/sys/kernel/hostname):8001/ to access the DNS Client web service." 100 | echo "" 101 | echo "Note! Edit the '/etc/systemd/system/dnsclient.service' service config file to change the DNS Client web server port." 102 | echo "" 103 | echo "Donate! Make a contribution by becoming a Patron: https://www.patreon.com/technitium" 104 | echo "" 105 | -------------------------------------------------------------------------------- /net.dnsclient/named.root: -------------------------------------------------------------------------------- 1 | ; This file holds the information on root name servers needed to 2 | ; initialize cache of Internet domain name servers 3 | ; (e.g. reference this file in the "cache . " 4 | ; configuration file of BIND domain name servers). 5 | ; 6 | ; This file is made available by InterNIC 7 | ; under anonymous FTP as 8 | ; file /domain/named.cache 9 | ; on server FTP.INTERNIC.NET 10 | ; -OR- RS.INTERNIC.NET 11 | ; 12 | ; last update: November 07, 2024 13 | ; related version of root zone: 2024110701 14 | ; 15 | ; FORMERLY NS.INTERNIC.NET 16 | ; 17 | . 3600000 NS A.ROOT-SERVERS.NET. 18 | A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4 19 | A.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:ba3e::2:30 20 | ; 21 | ; FORMERLY NS1.ISI.EDU 22 | ; 23 | . 3600000 NS B.ROOT-SERVERS.NET. 24 | B.ROOT-SERVERS.NET. 3600000 A 170.247.170.2 25 | B.ROOT-SERVERS.NET. 3600000 AAAA 2801:1b8:10::b 26 | ; 27 | ; FORMERLY C.PSI.NET 28 | ; 29 | . 3600000 NS C.ROOT-SERVERS.NET. 30 | C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12 31 | C.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2::c 32 | ; 33 | ; FORMERLY TERP.UMD.EDU 34 | ; 35 | . 3600000 NS D.ROOT-SERVERS.NET. 36 | D.ROOT-SERVERS.NET. 3600000 A 199.7.91.13 37 | D.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2d::d 38 | ; 39 | ; FORMERLY NS.NASA.GOV 40 | ; 41 | . 3600000 NS E.ROOT-SERVERS.NET. 42 | E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10 43 | E.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:a8::e 44 | ; 45 | ; FORMERLY NS.ISC.ORG 46 | ; 47 | . 3600000 NS F.ROOT-SERVERS.NET. 48 | F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241 49 | F.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2f::f 50 | ; 51 | ; FORMERLY NS.NIC.DDN.MIL 52 | ; 53 | . 3600000 NS G.ROOT-SERVERS.NET. 54 | G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4 55 | G.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:12::d0d 56 | ; 57 | ; FORMERLY AOS.ARL.ARMY.MIL 58 | ; 59 | . 3600000 NS H.ROOT-SERVERS.NET. 60 | H.ROOT-SERVERS.NET. 3600000 A 198.97.190.53 61 | H.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:1::53 62 | ; 63 | ; FORMERLY NIC.NORDU.NET 64 | ; 65 | . 3600000 NS I.ROOT-SERVERS.NET. 66 | I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17 67 | I.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fe::53 68 | ; 69 | ; OPERATED BY VERISIGN, INC. 70 | ; 71 | . 3600000 NS J.ROOT-SERVERS.NET. 72 | J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30 73 | J.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:c27::2:30 74 | ; 75 | ; OPERATED BY RIPE NCC 76 | ; 77 | . 3600000 NS K.ROOT-SERVERS.NET. 78 | K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129 79 | K.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fd::1 80 | ; 81 | ; OPERATED BY ICANN 82 | ; 83 | . 3600000 NS L.ROOT-SERVERS.NET. 84 | L.ROOT-SERVERS.NET. 3600000 A 199.7.83.42 85 | L.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:9f::42 86 | ; 87 | ; OPERATED BY WIDE 88 | ; 89 | . 3600000 NS M.ROOT-SERVERS.NET. 90 | M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 91 | M.ROOT-SERVERS.NET. 3600000 AAAA 2001:dc3::35 92 | ; End of file -------------------------------------------------------------------------------- /net.dnsclient/net.dnsclient.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | false 5 | true 6 | net8.0 7 | InProcess 8 | Shreyas Zare 9 | Technitium 10 | https://github.com/TechnitiumSoftware/net.dnsclient 11 | https://dnsclient.net/ 12 | 13 | Copyright (C) 2025 Shreyas Zare (shreyas@technitium.com) 14 | 8.4 15 | false 16 | DnsClient.Net 17 | DnsClient.Net 18 | DnsClientApp 19 | 7030d121-871d-4d7e-a6b9-8178a1fa2869 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | ..\..\TechnitiumLibrary\bin\TechnitiumLibrary.dll 33 | 34 | 35 | ..\..\TechnitiumLibrary\bin\TechnitiumLibrary.Net.dll 36 | 37 | 38 | 39 | 40 | 41 | PreserveNewest 42 | 43 | 44 | PreserveNewest 45 | 46 | 47 | PreserveNewest 48 | 49 | 50 | PreserveNewest 51 | 52 | 53 | PreserveNewest 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /net.dnsclient/root-anchors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | . 4 | 5 | 19036 6 | 8 7 | 2 8 | 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5 9 | 10 | 11 | 20326 12 | 8 13 | 2 14 | E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D 15 | AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3+/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kvArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+eoZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU= 16 | 257 17 | 18 | 19 | 38696 20 | 8 21 | 2 22 | 683D2D0ACB8C9B712A1948B27F741219298D0A450D612C483AF444A4C0FB2B16 23 | AwEAAa96jeuknZlaeSrvyAJj6ZHv28hhOKkx3rLGXVaC6rXTsDc449/cidltpkyGwCJNnOAlFNKF2jBosZBU5eeHspaQWOmOElZsjICMQMC3aeHbGiShvZsx4wMYSjH8e7Vrhbu6irwCzVBApESjbUdpWWmEnhathWu1jo+siFUiRAAxm9qyJNg/wOZqqzL/dL/q8PkcRU5oUKEpUge71M3ej2/7CPqpdVwuMoTvoB+ZOT4YeGyxMvHmbrxlFzGOHOijtzN+u1TQNatX2XBuzZNQ1K+s2CXkPIZo7s6JgZyvaBevYtxPvYLw4z9mR7K2vaF18UYH9Z9GNUUeayffKC73PYc= 24 | 257 25 | 26 | -------------------------------------------------------------------------------- /net.dnsclient/start.bat: -------------------------------------------------------------------------------- 1 | dotnet DnsClientApp.dll --urls http://localhost:8001/ -------------------------------------------------------------------------------- /net.dnsclient/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | dotnet DnsClientApp.dll --urls http://localhost:8001/ 4 | -------------------------------------------------------------------------------- /net.dnsclient/systemd.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Technitium DNS Client 3 | 4 | [Service] 5 | WorkingDirectory=/opt/technitium/dnsclient 6 | ExecStart=/usr/bin/dotnet /opt/technitium/dnsclient/DnsClientApp.dll --urls "http://[::]:8001/" 7 | Restart=always 8 | # Restart service after 10 seconds if the dotnet service crashes: 9 | RestartSec=10 10 | KillSignal=SIGINT 11 | SyslogIdentifier=dotnet-dnsclient 12 | User=www-data 13 | Environment=ASPNETCORE_ENVIRONMENT=Production 14 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false 15 | 16 | [Install] 17 | WantedBy=multi-user.target 18 | -------------------------------------------------------------------------------- /net.dnsclient/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | dotnetDir="/opt/dotnet" 4 | 5 | dnsClientDir="/opt/technitium/dnsclient" 6 | 7 | echo "" 8 | echo "=================================" 9 | echo "Technitium DNS Client Uninstaller" 10 | echo "=================================" 11 | echo "" 12 | echo "Uninstalling Technitium DNS Client..." 13 | 14 | if [ -d $dnsClientDir ] 15 | then 16 | if [ "$(ps --no-headers -o comm 1 | tr -d '\n')" = "systemd" ] 17 | then 18 | sudo systemctl disable dnsclient.service >/dev/null 2>&1 19 | sudo systemctl stop dnsclient.service >/dev/null 2>&1 20 | rm /etc/systemd/system/dnsclient.service >/dev/null 2>&1 21 | fi 22 | 23 | rm -rf $dnsClientDir >/dev/null 2>&1 24 | 25 | if [ -d $dotnetDir ] 26 | then 27 | echo "Uninstalling .NET Runtime..." 28 | rm /usr/bin/dotnet >/dev/null 2>&1 29 | rm -rf $dotnetDir >/dev/null 2>&1 30 | fi 31 | fi 32 | 33 | echo "" 34 | echo "Thank you for using Technitium DNS Client!" 35 | -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/css/font-awesome.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.3.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0, 0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-genderless:before,.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"} -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/css/main.css: -------------------------------------------------------------------------------- 1 |  2 | html, body { 3 | height: 100% !important; 4 | } 5 | 6 | body { 7 | margin: 0px !important; 8 | line-height: 1.42857143 !important; 9 | } 10 | 11 | a { 12 | color: #6699ff; 13 | } 14 | 15 | a:hover { 16 | color: #6699ff; 17 | } 18 | 19 | #header { 20 | background-color: #6699ff; 21 | height: 32px; 22 | margin-bottom: -32px; 23 | box-shadow: 0px 1px 15px 0px #888888; 24 | width: 100%; 25 | } 26 | 27 | #header .title { 28 | margin: 0 auto; 29 | color: #ffffff; 30 | padding: 0px 15px 0px 15px; 31 | } 32 | 33 | #header .title img { 34 | vertical-align: text-bottom; 35 | } 36 | 37 | #header .title .text { 38 | font-size: 24px; 39 | font-weight: 600; 40 | font-family: Arial; 41 | margin-left: 4px; 42 | } 43 | 44 | 45 | #content { 46 | min-height: 100%; 47 | } 48 | 49 | .container { 50 | margin-left: auto; 51 | margin-right: auto; 52 | padding: 55px 15px 85px 15px; 53 | word-wrap: break-word; 54 | } 55 | 56 | .auto-resize-img { 57 | max-width: 100%; 58 | height: auto; 59 | display: block; 60 | margin-right: auto; 61 | margin-left: auto; 62 | } 63 | 64 | .center-iframe { 65 | display: block; 66 | margin-right: auto; 67 | margin-left: auto; 68 | max-width: 640px; 69 | max-height: 480px; 70 | } 71 | 72 | .center-iframe iframe { 73 | width: 100%; 74 | height: 100%; 75 | } 76 | 77 | #footer { 78 | background-color: rgb(243, 243, 243); 79 | padding: 20px 0px 20px 0px; 80 | margin-top: -55px; 81 | box-shadow: 0px 2px 15px 1px #888888; 82 | clear: both; 83 | position: relative; 84 | height: 55px; 85 | } 86 | 87 | #footer .content { 88 | margin: 0 auto; 89 | color: rgb(119,119,119); 90 | font-family: Arial, sans-serif; 91 | font-size: 11px; 92 | font-weight: 600; 93 | text-align: center; 94 | } 95 | 96 | #footer .content a { 97 | color: #6699ff; 98 | text-decoration: none; 99 | } 100 | 101 | #footer .content a:hover { 102 | color: #6699ff; 103 | } 104 | 105 | 106 | @media (max-width: 480px) { 107 | #txtDomain, #txtServer { 108 | min-width: unset !important; 109 | } 110 | } 111 | 112 | @media (min-width: 768px) { 113 | #header .title, .container, #footer .content { 114 | width: 750px; 115 | } 116 | } 117 | 118 | @media (min-width: 992px) { 119 | #header .title, .container, #footer .content { 120 | width: 970px; 121 | } 122 | } 123 | 124 | @media (min-width: 1200px) { 125 | #header .title, .container, #footer .content { 126 | width: 1170px; 127 | } 128 | } 129 | 130 | .form-inline .form-group { 131 | margin-right: 10px; 132 | margin-bottom: 15px; 133 | } 134 | -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/favicon.ico -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/img/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/img/loader.gif -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/img/logo25x25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TechnitiumSoftware/net.dnsclient/348fb8b557f32159d4d94115d99f63c749240fb6/net.dnsclient/wwwroot/img/logo25x25.png -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Technitium DNS Client | An online domain name lookup service 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 |
28 |
29 |
30 |
31 |

DNS Client

32 |
33 |
34 | 35 |
36 |
37 |
38 |
39 |
40 |
41 | 42 | 48 |
49 | 50 |
51 | 52 | 53 |
54 | 55 |
56 | 57 | 85 |
86 | 87 |
88 | 89 | 96 |
97 | 98 |
99 | 100 | 101 |
102 | 103 |
104 |
105 | 108 |
109 |
110 |
111 |
112 |
113 | 114 |
115 |
116 |
117 | 118 |
119 | 120 | 121 | 122 | 152 |
153 |
154 | 155 | 156 |
Need a DNS Server? Get Technitium DNS Server for free!
157 |
View the DNS Client code on  GitHub
158 |
159 |
160 | 161 | 162 | 163 | 164 | -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.4.1 (https://getbootstrap.com/) 3 | * Copyright 2011-2019 Twitter, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||3this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(idocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},s.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},s.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},m.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=g(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&g(document).find(g.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),n=o.length;n--;){var s=o[n];if("click"==s)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",r="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(t){var e=this.$element.data();for(var i in e)e.hasOwnProperty(i)&&-1!==g.inArray(i,o)&&delete e[i];return(t=g.extend({},this.getDefaults(),e,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},m.prototype.getDelegateOptions=function(){var i={},o=this.getDefaults();return this._options&&g.each(this._options,function(t,e){o[t]!=e&&(i[t]=e)}),i},m.prototype.enter=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},m.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},m.prototype.leave=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},m.prototype.show=function(){var t=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var i=this,o=this.tip(),n=this.getUID(this.type);this.setContent(),o.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,r=a.test(s);r&&(s=s.replace(a,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(g(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(r){var p=s,c=this.getPosition(this.$viewport);s="bottom"==s&&l.bottom+d>c.bottom?"top":"top"==s&&l.top-dc.width?"left":"left"==s&&l.left-ha.top+a.height&&(n.top=a.top+a.height-l)}else{var h=e.left-s,d=e.left+s+i;ha.right&&(n.left=a.left+a.width-d)}return n},m.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},m.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=g(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(t){var e=this;t&&((e=g(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},m.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},m.prototype.sanitizeHtml=function(t){return n(t,this.options.whiteList,this.options.sanitizeFn)};var e=g.fn.tooltip;g.fn.tooltip=function i(o){return this.each(function(){var t=g(this),e=t.data("bs.tooltip"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.tooltip",e=new m(this,i)),"string"==typeof o&&e[o]())})},g.fn.tooltip.Constructor=m,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=e,this}}(jQuery),function(n){"use strict";var s=function(t,e){this.init("popover",t,e)};if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.4.1",s.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((s.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var o=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===o&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===o?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function e(o){return this.each(function(){var t=n(this),e=t.data("bs.popover"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.popover",e=new s(this,i)),"string"==typeof o&&e[o]())})},n.fn.popover.Constructor=s,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery),function(s){"use strict";function n(t,e){this.$body=s(document.body),this.$scrollElement=s(t).is(document.body)?s(window):s(t),this.options=s.extend({},n.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s.proxy(this.process,this)),this.refresh(),this.process()}function e(o){return this.each(function(){var t=s(this),e=t.data("bs.scrollspy"),i="object"==typeof o&&o;e||t.data("bs.scrollspy",e=new n(this,i)),"string"==typeof o&&e[o]()})}n.VERSION="3.4.1",n.DEFAULTS={offset:10},n.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},n.prototype.refresh=function(){var t=this,o="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),s.isWindow(this.$scrollElement[0])||(o="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=s(this),e=t.data("target")||t.attr("href"),i=/^#./.test(e)&&s(e);return i&&i.length&&i.is(":visible")&&[[i[o]().top+n,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},n.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,s=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),o<=e)return a!=(t=s[s.length-1])&&this.activate(t);if(a&&e=n[t]&&(n[t+1]===undefined||e .active"),n=i&&r.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),n?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&n?o.one("bsTransitionEnd",s).emulateTransitionEnd(a.TRANSITION_DURATION):s(),o.removeClass("in")};var t=r.fn.tab;r.fn.tab=e,r.fn.tab.Constructor=a,r.fn.tab.noConflict=function(){return r.fn.tab=t,this};var i=function(t){t.preventDefault(),e.call(r(this),"show")};r(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(l){"use strict";var h=function(t,e){this.options=l.extend({},h.DEFAULTS,e);var i=this.options.target===h.DEFAULTS.target?l(this.options.target):l(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(o){return this.each(function(){var t=l(this),e=t.data("bs.affix"),i="object"==typeof o&&o;e||t.data("bs.affix",e=new h(this,i)),"string"==typeof o&&e[o]()})}h.VERSION="3.4.1",h.RESET="affix affix-top affix-bottom",h.DEFAULTS={offset:0,target:window},h.prototype.getState=function(t,e,i,o){var n=this.$target.scrollTop(),s=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return n. 17 | 18 | */ 19 | 20 | $(function () { 21 | loadVersion(); 22 | 23 | loadServerList(); 24 | 25 | processUrlBookmark(); 26 | 27 | $('.dropdown-menu').on('click', 'a', function (e) { 28 | e.preventDefault(); 29 | 30 | var itemText = $(this).text(); 31 | $(this).closest('.dropdown').find('input').val(itemText); 32 | 33 | if (itemText.indexOf("QUIC") !== -1) 34 | $("#optProtocol").val("QUIC"); 35 | else if ((itemText.indexOf("TLS") !== -1) || (itemText.indexOf(":853") !== -1)) 36 | $("#optProtocol").val("TLS"); 37 | else if ((itemText.indexOf("HTTPS") !== -1) || (itemText.indexOf("http://") !== -1) || (itemText.indexOf("https://") !== -1)) 38 | $("#optProtocol").val("HTTPS"); 39 | else { 40 | switch ($("#optProtocol").val()) { 41 | case "UDP": 42 | case "TCP": 43 | break; 44 | 45 | default: 46 | $("#optProtocol").val("UDP"); 47 | break; 48 | } 49 | } 50 | }); 51 | }); 52 | 53 | function loadServerList() { 54 | $.ajax({ 55 | type: "GET", 56 | url: "json/dnsclient-server-list-custom.json", 57 | dataType: "json", 58 | cache: false, 59 | async: false, 60 | success: function (responseJSON, status, jqXHR) { 61 | loadServerListFrom(responseJSON); 62 | }, 63 | error: function (jqXHR, textStatus, errorThrown) { 64 | $.ajax({ 65 | type: "GET", 66 | url: "json/dnsclient-server-list-builtin.json", 67 | dataType: "json", 68 | cache: false, 69 | async: false, 70 | success: function (responseJSON, status, jqXHR) { 71 | loadServerListFrom(responseJSON); 72 | }, 73 | error: function (jqXHR, textStatus, errorThrown) { 74 | showAlert("danger", "Error!", "Failed to load server list: " + jqXHR.status + " " + jqXHR.statusText); 75 | } 76 | }); 77 | } 78 | }); 79 | } 80 | 81 | function loadServerListFrom(responseJSON) { 82 | if ((responseJSON.length > 0) && (responseJSON[0].addresses.length > 0)) { 83 | if ((responseJSON[0].name == null) || (responseJSON[0].name.length == 0)) 84 | $("#txtServer").val(responseJSON[0].addresses[0]); 85 | else 86 | $("#txtServer").val(responseJSON[0].name + " {" + responseJSON[0].addresses[0] + "}"); 87 | } 88 | else { 89 | $("#txtServer").val(""); 90 | } 91 | 92 | var htmlList = ""; 93 | 94 | for (var i = 0; i < responseJSON.length; i++) { 95 | for (var j = 0; j < responseJSON[i].addresses.length; j++) { 96 | if ((responseJSON[i].name == null) || (responseJSON[i].name.length == 0)) 97 | htmlList += "
  • " + htmlEncode(responseJSON[i].addresses[j]) + "
  • "; 98 | else 99 | htmlList += "
  • " + htmlEncode(responseJSON[i].name) + " {" + htmlEncode(responseJSON[i].addresses[j]) + "}
  • "; 100 | } 101 | } 102 | 103 | $("#optDnsClientNameServers").html(htmlList); 104 | } 105 | 106 | function loadVersion() { 107 | $.ajax({ 108 | type: "GET", 109 | url: "api/version", 110 | dataType: 'json', 111 | cache: false, 112 | success: function (responseJSON, status, jqXHR) { 113 | $("#lblVersion").text("v" + responseJSON.response.version); 114 | } 115 | }); 116 | } 117 | 118 | function processUrlBookmark() { 119 | if (window.location.hash.length > 0) { 120 | var values = window.location.hash.substring(1).split("/"); 121 | if (values.length >= 3) { 122 | $("#txtServer").val(decodeURIComponent(values[0])); 123 | $("#txtDomain").val(decodeURIComponent(values[1])); 124 | $("#optType").val(values[2]); 125 | 126 | if (values.length >= 4) 127 | $("#optProtocol").val(values[3]); 128 | else 129 | $("#optProtocol").val("UDP"); 130 | 131 | if (values.length >= 5) 132 | $("#chkDnssecValidation").prop("checked", values[4].toLowerCase() === "true"); 133 | else 134 | $("#chkDnssecValidation").prop("checked", false); 135 | 136 | if (values.length >= 6) 137 | $("#txtClientSubnet").val(decodeURIComponent(values[5])); 138 | else 139 | $("#txtClientSubnet").val(""); 140 | 141 | if ($("#txtServer").val() === "Recursive Query (recursive-resolver)") 142 | $("#txtServer").val("Recursive Query {recursive-resolver}"); 143 | 144 | resolveDomain(); 145 | } 146 | } 147 | } 148 | 149 | function resolveDomain() { 150 | var btn = $("#btnResolve").button('loading'); 151 | 152 | var server = $("#txtServer").val(); 153 | 154 | if ((server.indexOf("recursive-resolver") !== -1) || (server.indexOf("system-dns") !== -1)) 155 | $("#optProtocol").val("UDP"); 156 | 157 | var domain = $("#txtDomain").val(); 158 | var type = $("#optType").val(); 159 | var protocol = $("#optProtocol").val(); 160 | var dnssecValidation = $("#chkDnssecValidation").prop("checked"); 161 | var eDnsClientSubnet = $("#txtClientSubnet").val(); 162 | 163 | { 164 | var i = server.indexOf("{"); 165 | if (i > -1) { 166 | var j = server.lastIndexOf("}"); 167 | server = server.substring(i + 1, j); 168 | } 169 | } 170 | 171 | server = server.trim(); 172 | 173 | if ((server === null) || (server === "")) { 174 | showAlert("warning", "Missing!", "Please enter a valid DNS server."); 175 | btn.button('reset'); 176 | $("#txtServer").trigger("focus"); 177 | return; 178 | } 179 | 180 | if ((domain === null) || (domain === "")) { 181 | showAlert("warning", "Missing!", "Please enter a domain name to query."); 182 | btn.button('reset'); 183 | $("#txtDomain").trigger("focus"); 184 | return; 185 | } 186 | else { 187 | var i = domain.indexOf("://"); 188 | if (i > -1) { 189 | var j = domain.indexOf(":", i + 3); 190 | 191 | if (j < 0) 192 | j = domain.indexOf("/", i + 3); 193 | 194 | if (j > -1) 195 | domain = domain.substring(i + 3, j); 196 | else 197 | domain = domain.substring(i + 3); 198 | 199 | $("#txtDomain").val(domain); 200 | } 201 | } 202 | 203 | window.location.hash = encodeURIComponent($("#txtServer").val()) + "/" + encodeURIComponent(domain) + "/" + type + "/" + protocol + "/" + dnssecValidation + "/" + encodeURIComponent(eDnsClientSubnet); 204 | 205 | var apiUrl = "api/dnsclient/?server=" + encodeURIComponent(server) + "&domain=" + encodeURIComponent(domain) + "&type=" + type + "&protocol=" + protocol + "&dnssec=" + dnssecValidation + "&eDnsClientSubnet=" + encodeURIComponent(eDnsClientSubnet); 206 | 207 | var divLoader = $("#divLoader"); 208 | var divOutputAccordion = $("#divOutputAccordion"); 209 | 210 | //show loader 211 | hideAlert(); 212 | divOutputAccordion.hide(); 213 | divLoader.show(); 214 | 215 | $.ajax({ 216 | type: "GET", 217 | url: apiUrl, 218 | dataType: 'json', 219 | cache: false, 220 | success: function (responseJSON, status, jqXHR) { 221 | divLoader.hide(); 222 | btn.button('reset'); 223 | 224 | switch (responseJSON.status) { 225 | case "warning": 226 | showAlert("warning", "Warning!", responseJSON.warningMessage); 227 | 228 | case "ok": 229 | $("#preFinalResponse").text(JSON.stringify(responseJSON.response, null, 2)); 230 | $("#divFinalResponseCollapse").collapse("show"); 231 | $("#divRawResponsesCollapse").collapse("hide"); 232 | divOutputAccordion.show(); 233 | break; 234 | 235 | case "error": 236 | showAlert("danger", "Error!", responseJSON.errorMessage + (responseJSON.innerErrorMessage == null ? "" : " " + responseJSON.innerErrorMessage)); 237 | break; 238 | 239 | default: 240 | showAlert("danger", "Error!", "Invalid status code was received."); 241 | break; 242 | } 243 | 244 | if ((responseJSON.rawResponses != null)) { 245 | if (responseJSON.rawResponses.length == 0) { 246 | $("#divRawResponsePanel").hide(); 247 | } 248 | else { 249 | var rawListHtml = ""; 250 | 251 | for (var i = 0; i < responseJSON.rawResponses.length; i++) { 252 | rawListHtml += "
  • " + JSON.stringify(responseJSON.rawResponses[i], null, 2) + "
  • "; 253 | } 254 | 255 | $("#spanRawResponsesCount").text(responseJSON.rawResponses.length); 256 | $("#ulRawResponsesList").html(rawListHtml); 257 | $("#divRawResponsesCollapse").collapse("hide"); 258 | $("#divRawResponsePanel").show(); 259 | } 260 | } 261 | }, 262 | error: function (jqXHR, textStatus, errorThrown) { 263 | showAlert("danger", "Error!", jqXHR.status + " " + jqXHR.statusText); 264 | divLoader.hide(); 265 | btn.button('reset'); 266 | } 267 | }); 268 | 269 | //add server name to list if doesnt exists 270 | var txtServerName = $("#txtServer").val(); 271 | var containsServer = false; 272 | 273 | $("ul.dropdown-menu a").each(function () { 274 | if ($(this).html() === txtServerName) 275 | containsServer = true; 276 | }); 277 | 278 | if (!containsServer) 279 | $("ul.dropdown-menu").prepend("
  • " + htmlEncode(txtServerName) + "
  • "); 280 | } 281 | 282 | function showAlert(type, title, message) { 283 | var alertHTML = "
    \ 284 | \ 285 | " + title + " " + htmlEncode(message) + "\ 286 |
    "; 287 | 288 | var divAlert = $(".AlertPlaceholder"); 289 | 290 | divAlert.html(alertHTML); 291 | divAlert.show(); 292 | 293 | if (type === "success") { 294 | setTimeout(function () { 295 | hideAlert(); 296 | }, 5000); 297 | } 298 | 299 | return true; 300 | } 301 | 302 | function hideAlert() { 303 | $(".AlertPlaceholder").hide(); 304 | } 305 | 306 | function htmlEncode(value) { 307 | return $('
    ').text(value).html().replace(/"/g, """); 308 | } 309 | -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/js/main.js: -------------------------------------------------------------------------------- 1 | /* 2 | Technitium dnsclient.net 3 | Copyright (C) 2024 Shreyas Zare (shreyas@technitium.com) 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | 18 | */ 19 | 20 | $(function () { 21 | $("#header").html(""); 22 | $("#footer").html(""); 23 | }); 24 | -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/json/dnsclient-server-list-builtin.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Recursive Query", 4 | "addresses": [ "recursive-resolver" ] 5 | }, 6 | { 7 | "name": "System DNS", 8 | "addresses": [ "system-dns" ] 9 | }, 10 | { 11 | "name": "Cloudflare", 12 | "addresses": [ 13 | "1.1.1.1", 14 | "1.0.0.1", 15 | "[2606:4700:4700::1111]", 16 | "[2606:4700:4700::1001]" 17 | ] 18 | }, 19 | { 20 | "name": "Cloudflare TLS", 21 | "addresses": [ 22 | "cloudflare-dns.com (1.1.1.1:853)", 23 | "cloudflare-dns.com (1.0.0.1:853)", 24 | "cloudflare-dns.com ([2606:4700:4700::1111]:853)", 25 | "cloudflare-dns.com ([2606:4700:4700::1001]:853)" 26 | ] 27 | }, 28 | { 29 | "name": "Cloudflare HTTPS", 30 | "addresses": [ 31 | "https://cloudflare-dns.com/dns-query (1.1.1.1)" 32 | ] 33 | }, 34 | { 35 | "name": "Google", 36 | "addresses": [ 37 | "8.8.8.8", 38 | "8.8.4.4", 39 | "[2001:4860:4860::8888]", 40 | "[2001:4860:4860::8844]" 41 | ] 42 | }, 43 | { 44 | "name": "Google TLS", 45 | "addresses": [ 46 | "dns.google (8.8.8.8:853)", 47 | "dns.google (8.8.4.4:853)", 48 | "dns.google ([2001:4860:4860::8888]:853)", 49 | "dns.google ([2001:4860:4860::8844]:853)" 50 | ] 51 | }, 52 | { 53 | "name": "Google HTTPS", 54 | "addresses": [ 55 | "https://dns.google/dns-query (8.8.8.8)" 56 | ] 57 | }, 58 | { 59 | "name": "Quad9 Secure", 60 | "addresses": [ 61 | "9.9.9.9", 62 | "[2620:fe::fe]" 63 | ] 64 | }, 65 | { 66 | "name": "Quad9 Secure TLS", 67 | "addresses": [ 68 | "dns.quad9.net (9.9.9.9:853)", 69 | "dns.quad9.net ([2620:fe::fe]:853)" 70 | ] 71 | }, 72 | { 73 | "name": "Quad9 Secure HTTPS", 74 | "addresses": [ 75 | "https://dns.quad9.net/dns-query (9.9.9.9)" 76 | ] 77 | }, 78 | { 79 | "name": "OpenDNS", 80 | "addresses": [ 81 | "208.67.222.222", 82 | "208.67.220.220", 83 | "[2620:0:ccc::2]", 84 | "[2620:0:ccd::2]" 85 | ] 86 | }, 87 | { 88 | "name": "OpenDNS TLS", 89 | "addresses": [ 90 | "dns.opendns.com (208.67.222.222:853)", 91 | "dns.opendns.com (208.67.220.220:853)", 92 | "dns.opendns.com ([2620:0:ccc::2]:853)", 93 | "dns.opendns.com ([2620:0:ccd::2]:853)" 94 | ] 95 | }, 96 | { 97 | "name": "OpenDNS HTTPS", 98 | "addresses": [ 99 | "https://doh.opendns.com/dns-query (208.67.222.222)" 100 | ] 101 | }, 102 | { 103 | "name": "AdGuard", 104 | "addresses": [ 105 | "94.140.14.14", 106 | "94.140.15.15", 107 | "[2a10:50c0::ad1:ff]", 108 | "[2a10:50c0::ad2:ff]" 109 | ] 110 | }, 111 | { 112 | "name": "AdGuard TLS", 113 | "addresses": [ 114 | "dns.adguard-dns.com (94.140.14.14:853)", 115 | "dns.adguard-dns.com ([2a10:50c0::ad1:ff]:853)" 116 | ] 117 | }, 118 | { 119 | "name": "AdGuard HTTPS", 120 | "addresses": [ 121 | "https://dns.adguard-dns.com/dns-query (94.140.14.14)" 122 | ] 123 | }, 124 | { 125 | "name": "AdGuard QUIC", 126 | "addresses": [ 127 | "dns.adguard-dns.com (94.140.14.14:853)", 128 | "dns.adguard-dns.com ([2a10:50c0::ad1:ff]:853)" 129 | ] 130 | }, 131 | { 132 | "name": "Level3", 133 | "addresses": [ 134 | "4.2.2.1", 135 | "4.2.2.2" 136 | ] 137 | }, 138 | { 139 | "name": "Ultra", 140 | "addresses": [ 141 | "156.154.70.1", 142 | "156.154.71.1" 143 | ] 144 | }, 145 | { 146 | "name": "Dyn", 147 | "addresses": [ 148 | "216.146.35.35", 149 | "216.146.36.36" 150 | ] 151 | }, 152 | { 153 | "name": null, 154 | "addresses": [ 155 | "a.root-servers.net", 156 | "b.root-servers.net", 157 | "c.root-servers.net", 158 | "d.root-servers.net", 159 | "e.root-servers.net", 160 | "f.root-servers.net", 161 | "g.root-servers.net", 162 | "h.root-servers.net", 163 | "i.root-servers.net", 164 | "j.root-servers.net", 165 | "k.root-servers.net", 166 | "l.root-servers.net", 167 | "m.root-servers.net" 168 | ] 169 | } 170 | ] 171 | -------------------------------------------------------------------------------- /net.dnsclient/wwwroot/json/readme.txt: -------------------------------------------------------------------------------- 1 | READ ME 2 | ======= 3 | 4 | This folder contains JSON formatted files that are used by the web app to fetch various lists. The JSON files that end with "-builtin" are the ones that are shipped as a part of the software package and are expected to be overwritten when you update the software. 5 | 6 | You can override these built-in lists by creating your own custom lists. To do this, create a new JSON file with the exact same name except, replace "-builtin" with "-custom" in the name. Use the same JSON format as the built-in list in your custom list to add items. When a custom list is available, the web app will always prefer it. 7 | 8 | For example, if you wish to have a custom list of servers listed for DNS Client, copy the "dnsclient-server-list-builtin.json" file as "dnsclient-server-list-custom.json" and edit it to have the desired list of servers. 9 | 10 | Note! Once the custom list file is saved, you will need to refresh the web app so that it loads the updated custom list. 11 | 12 | Warning! Editing the built-in json files will make it look like it works well, but when the software is updated, the built-in json file will be overwritten causing you to lose any custom changes that you made. 13 | --------------------------------------------------------------------------------