resolv-0.2.0.2/0000755000000000000000000000000007346545000011354 5ustar0000000000000000resolv-0.2.0.2/ChangeLog.md0000644000000000000000000000406307346545000013530 0ustar0000000000000000See also http://pvp.haskell.org/faq # Revision history for `resolv` ## 0.2.0.2 _2023-06-12, Alexey Radkov and Andreas Abel_ * Support Haiku OS by including `libnetwork` in configure script. (PR [#23](https://github.com/haskell-hvr/resolv/pull/23).) ## 0.2.0.1 _2023-03-31, Alexey Radkov and Andreas Abel_ * Fix 0.2.0.0: Ship updated `configure` script. ## 0.2.0.0 _2023-03-31, Alexey Radkov and Andreas Abel_ * Bump `bytestring` to `>= 0.10` for correct `IsString ByteString` instance. (PR [#16](https://github.com/haskell-hvr/resolv/pull/16).) * Fix memory leaks due to missing `res_nclose()` after each `res_ninit()` call. (PR [#12](https://github.com/haskell-hvr/resolv/pull/12).) * Check the value of `h_errno` on failures of `res_nquery()` and throw an appropriate exception of type `DnsException` built with one of new constructors `DnsHostNotFound`, `DnsNoData`, `DnsNoRecovery`, or `DnsTryAgain`. Note that previously such exceptions were thrown by `fail` and had type `IOError`. (PR [#17](https://github.com/haskell-hvr/resolv/pull/17).) * Suppress configure warning on option `--with-compiler` passed by Cabal. (PR [#21](https://github.com/haskell-hvr/resolv/pull/21).) * Tested with GHC 8.0 - 9.6. ## 0.1.2.0 _2020-03-27, Herbert Valerio Riedel_ * Add new high-level API functions `queryPTR`, `arpaIPv4`, and `arpaIPv6` for performing reverse address lookups. ## 0.1.1.3 _2019-08-26, Herbert Valerio Riedel_ * GHC 8.8 / `base-4.13` only compat hotfix release; the next release will support older GHC/`base` versions again. ## 0.1.1.2 _2018-10-27, Herbert Valerio Riedel_ * Clarify/relax licensing terms. ## 0.1.1.1 _2017-10-26, Herbert Valerio Riedel_ * Improve Autoconf script. ## 0.1.1.0 _2017-10-22, Herbert Valerio Riedel_ * Use Autoconf to detect which library (if any) to link for `res_query(3)`. * Use reentrant `res_nquery(3)` API if available and signal via new `resIsReentrant :: Bool` constant. * Expose `DnsException` and `QR`. ## 0.1.0.0 _2017-10-22, Herbert Valerio Riedel_ * First version. Released on an unsuspecting world. resolv-0.2.0.2/LICENSE0000644000000000000000000000233307346545000012362 0ustar0000000000000000This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License (a copy is included as `LICENSE.GPLv2`), or (at your option) any later version. As a special exception, the copyright holders of this library give you permission to link this library with the independent modules that constitute the package and its dependencies for the purpose of producing the `cabal` executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting `cabal` executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obliged to do so. If you do not wish to do so, delete this exception statement from your version. The aforementioned special exception applies (at your option) retroactively to all prior releases of this library. resolv-0.2.0.2/LICENSE.GPLv20000644000000000000000000004317307346545000013262 0ustar0000000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. resolv-0.2.0.2/LICENSE.GPLv30000644000000000000000000010444207346545000013260 0ustar0000000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . resolv-0.2.0.2/Setup.hs0000644000000000000000000000011107346545000013001 0ustar0000000000000000import Distribution.Simple main = defaultMainWithHooks autoconfUserHooks resolv-0.2.0.2/cbits/0000755000000000000000000000000007346545000012460 5ustar0000000000000000resolv-0.2.0.2/cbits/hs_resolv.h0000644000000000000000000000676407346545000014652 0ustar0000000000000000#if !defined(HS_RESOLV_H) #define HS_RESOLV_H #include "hs_resolv_config.h" #include #if defined(HAVE_NETINET_IN_H) # include #endif #if defined(HAVE_DECL_H_ERRNO) # include #endif #if defined(HAVE_ARPA_NAMESER_H) # include #endif #include #include /* This is usually provided via */ #if !defined(QUERY) # define QUERY ns_o_query #endif #if !defined(USE_RES_NQUERY) # error USE_RES_NQUERY not defined #endif #if USE_RES_NQUERY && (SIZEOF_STRUCT___RES_STATE <= 0) # error broken invariant #endif /* Macro to calculate error code returned by hs_get_h_errno */ #define __HS_GET_H_ERRNO(h_errno) \ switch(h_errno) \ { \ case HOST_NOT_FOUND: return 1; \ case NO_DATA: return 2; \ case NO_RECOVERY: return 3; \ case TRY_AGAIN: return 4; \ case 0: return 0; \ default: return -1; \ } #if USE_RES_NQUERY inline static int res_opt_set_use_dnssec(struct __res_state *s) { assert(s); if (!(s->options & RES_INIT)) { int rc = res_ninit(s); if (rc) return rc; } s->options |= RES_USE_DNSSEC | RES_USE_EDNS0; return 0; } inline static int hs_res_mkquery(struct __res_state *s, const char *dname, int class, int type, unsigned char *req, int reqlen0) { assert(s); int reqlen = res_nmkquery(s, QUERY, dname, class, type, NULL, 0, NULL, req, reqlen0); assert(reqlen <= reqlen0); return reqlen; } inline static int hs_res_send(struct __res_state *s, const unsigned char *msg, int msglen, unsigned char *answer, int anslen) { assert(s); return res_nsend(s, msg, msglen, answer, anslen); } inline static int hs_res_query(struct __res_state *s, const char *dname, int class, int type, unsigned char *answer, int anslen) { assert(s); return res_nquery(s, dname, class, type, answer, anslen); } /* res_nclose() finalizes resources allocated by res_ninit() and subsequent * calls to res_nquery() */ inline static void hs_res_close(struct __res_state *s) { assert(s); res_nclose(s); } inline static int hs_get_h_errno(struct __res_state *s) { #if defined(HAVE_DECL_H_ERRNO) #if defined(HAVE_STRUCT___RES_STATE_RES_H_ERRNO) assert(s); __HS_GET_H_ERRNO(s->res_h_errno) #else __HS_GET_H_ERRNO(h_errno) #endif #else return -1; #endif } #else /* USE_RES_NQUERY */ /* use non-reentrant API */ inline static int res_opt_set_use_dnssec(void *s) { assert(!s); if (!(_res.options & RES_INIT)) { int rc = res_init(); if (rc) return rc; } _res.options |= RES_USE_DNSSEC | RES_USE_EDNS0; return 0; } inline static int hs_res_mkquery(void *s, const char *dname, int class, int type, unsigned char *req, int reqlen0) { assert(!s); int reqlen = res_mkquery(QUERY, dname, class, type, NULL, 0, NULL, req, reqlen0); assert(reqlen <= reqlen0); return reqlen; } inline static int hs_res_send(void *s, const unsigned char *msg, int msglen, unsigned char *answer, int anslen) { assert(!s); return res_send(msg, msglen, answer, anslen); } inline static int hs_res_query(void *s, const char *dname, int class, int type, unsigned char *answer, int anslen) { assert(!s); return res_query(dname, class, type, answer, anslen); } inline static void hs_res_close(void *s) { } inline static int hs_get_h_errno(void *s) { #if defined(HAVE_DECL_H_ERRNO) __HS_GET_H_ERRNO(h_errno) #else return -1; #endif } #endif /* USE_RES_NQUERY */ #endif /* HS_RESOLV_H */ resolv-0.2.0.2/cbits/hs_resolv_config.h.in0000644000000000000000000000454107346545000016573 0ustar0000000000000000/* cbits/hs_resolv_config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_NAMESER_H /* Define to 1 if you have the declaration of `h_errno', and to 0 if you don't. */ #undef HAVE_DECL_H_ERRNO /* Define to 1 if you have the declaration of `res_nquery', and to 0 if you don't. */ #undef HAVE_DECL_RES_NQUERY /* Define to 1 if you have the declaration of `res_query', and to 0 if you don't. */ #undef HAVE_DECL_RES_QUERY /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDIO_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if `res_h_errno' is a member of `struct __res_state'. */ #undef HAVE_STRUCT___RES_STATE_RES_H_ERRNO /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* The size of `struct __res_state', as computed by sizeof. */ #undef SIZEOF_STRUCT___RES_STATE /* Define to 1 if all of the C90 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #undef STDC_HEADERS /* Define to 1 in order to use res_nquery(3) API */ #undef USE_RES_NQUERY /* Define to empty if `const' does not conform to ANSI C. */ #undef const resolv-0.2.0.2/configure0000644000000000000000000044676007346545000013301 0ustar0000000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for resolv 0.0. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, # Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="as_nop=: if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes else $as_nop as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$as_shell as_have_required=yes if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null then : break 2 fi fi done;; esac as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes fi fi if test "x$CONFIG_SHELL" != x then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno then : printf "%s\n" "$0: This script requires a shell more modern than all" printf "%s\n" "$0: the shells that I found on your system." if test ${ZSH_VERSION+y} ; then printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and hvr@gnu.org about $0: your system, including any error possibly output before $0: this message. Then install a modern shell, or manually $0: run the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='resolv' PACKAGE_TARNAME='resolv' PACKAGE_VERSION='0.0' PACKAGE_STRING='resolv 0.0' PACKAGE_BUGREPORT='hvr@gnu.org' PACKAGE_URL='' ac_unique_file="resolv.cabal" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_STDIO_H # include #endif #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_header_c_list= ac_subst_vars='LTLIBOBJS LIBOBJS EXTRA_LIBS CPP_OPTIONS OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking with_compiler with_hc ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures resolv 0.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/resolv] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of resolv 0.0:";; esac cat <<\_ACEOF Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF resolv configure 0.0 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR # ------------------------------------------------------------------ # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. ac_fn_check_decl () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_decl_name=`echo $2|sed 's/ *(.*//'` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 printf %s "checking whether $as_decl_name is declared... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` eval ac_save_FLAGS=\$$6 as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { #ifndef $as_decl_name #ifdef __cplusplus (void) $as_decl_use; #else (void) $as_decl_name; #endif #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval $6=\$ac_save_FLAGS fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_check_decl # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_run LINENO # ---------------------- # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that # executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=$ac_mid; break else $as_nop as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_lo=$ac_mid; break else $as_nop as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done else $as_nop ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=$ac_mid else $as_nop as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval (void) { return $2; } static unsigned long int ulongval (void) { return $2; } #include #include int main (void) { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : echo >>conftest.val; read $3 &5 printf %s "checking for $2.$3... " >&6; } if eval test \${$4+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main (void) { static $2 ac_aggr; if (ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main (void) { static $2 ac_aggr; if (sizeof ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" else $as_nop eval "$4=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$4 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member ac_configure_args_raw= for ac_arg do case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_configure_args_raw " '$ac_arg'" done case $ac_configure_args_raw in *$as_nl*) ac_safe_unquote= ;; *) ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. ac_unsafe_a="$ac_unsafe_z#~" ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; esac cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by resolv $as_me 0.0, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && printf "%s\n" "$as_me: caught signal $ac_signal" printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi for ac_site_file in $ac_site_files do case $ac_site_file in #( */*) : ;; #( *) : ac_site_file=./$ac_site_file ;; esac if test -f "$ac_site_file" && test -r "$ac_site_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Test code for whether the C compiler supports C89 (global declarations) ac_c_conftest_c89_globals=' /* Does the compiler advertise C89 conformance? Do not test the value of __STDC__, because some compilers set it to 0 while being otherwise adequately conformant. */ #if !defined __STDC__ # error "Compiler does not advertise C89 conformance" #endif #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated as an "x". The following induces an error, until -std is added to get proper ANSI mode. Curiously \x00 != x always comes out true, for an array size at least. It is necessary to write \x00 == 0 to get something that is true only with -std. */ int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) '\''x'\'' int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), int, int);' # Test code for whether the C compiler supports C89 (body of main). ac_c_conftest_c89_main=' ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); ' # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' // Does the compiler advertise C99 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare // FILE and stderr. #define debug(...) dprintf (2, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK #error "your preprocessor is broken" #endif #if BIG_OK #else #error "your preprocessor is broken" #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) continue; return 0; } // Check varargs and va_copy. static bool test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str = ""; int number = 0; float fnumber = 0; while (*format) { switch (*format++) { case '\''s'\'': // string str = va_arg (args_copy, const char *); break; case '\''d'\'': // int number = va_arg (args_copy, int); break; case '\''f'\'': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); return *str && number && fnumber; } ' # Test code for whether the C compiler supports C99 (body of main). ac_c_conftest_c99_main=' // Check bool. _Bool success = false; success |= (argc != 0); // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[0] = argv[0][0]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' || dynamic_array[ni.number - 1] != 543); ' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' // Does the compiler advertise C11 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif // Check _Alignas. char _Alignas (double) aligned_as_double; char _Alignas (0) no_special_alignment; extern char aligned_as_int; char _Alignas (0) _Alignas (int) aligned_as_int; // Check _Alignof. enum { int_alignment = _Alignof (int), int_array_alignment = _Alignof (int[100]), char_alignment = _Alignof (char) }; _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); // Check _Noreturn. int _Noreturn does_not_return (void) { for (;;) continue; } // Check _Static_assert. struct test_static_assert { int x; _Static_assert (sizeof (int) <= sizeof (long int), "_Static_assert does not work in struct"); long int y; }; // Check UTF-8 literals. #define u8 syntax error! char const utf8_literal[] = u8"happens to be ASCII" "another string"; // Check duplicate typedefs. typedef long *long_ptr; typedef long int *long_ptr; typedef long_ptr long_ptr; // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. struct anonymous { union { struct { int i; int j; }; struct { int k; long int l; } w; }; int m; } v1; ' # Test code for whether the C compiler supports C11 (body of main). ac_c_conftest_c11_main=' _Static_assert ((offsetof (struct anonymous, i) == offsetof (struct anonymous, w.k)), "Anonymous union alignment botch"); v1.i = 2; v1.w.k = 5; ok |= v1.i != 5; ' # Test code for whether the C compiler supports C11 (complete). ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} ${ac_c_conftest_c11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} ${ac_c_conftest_c11_main} return ok; } " # Test code for whether the C compiler supports C99 (complete). ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} return ok; } " # Test code for whether the C compiler supports C89 (complete). ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} return ok; } " as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers cbits/hs_resolv_config.h" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 printf %s "checking whether the C compiler works... " >&6; } ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else $as_nop ac_file='' fi if test -z "$ac_file" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 printf %s "checking for an ANSI C-conforming const... " >&6; } if test ${ac_cv_c_const+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* IBM XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_const=yes else $as_nop ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 printf "%s\n" "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then printf "%s\n" "#define const /**/" >>confdefs.h fi # Check whether --with-compiler was given. if test ${with_compiler+y} then : withval=$with_compiler; fi # Check whether --with-hc was given. if test ${with_hc+y} then : withval=$with_hc; fi ac_header= ac_cache= for ac_item in $ac_header_c_list do if test $ac_cache; then ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then printf "%s\n" "#define $ac_item 1" >> confdefs.h fi ac_header= ac_cache= elif test $ac_header; then ac_cache=$ac_item else ac_header=$ac_item fi done if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" if test "x$ac_cv_header_netinet_in_h" = xyes then : printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default" if test "x$ac_cv_header_arpa_nameser_h" = xyes then : printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " #include #ifdef HAVE_NETINET_IN_H # include #endif #ifdef HAVE_ARPA_NAMESER_H # include #endif #include " if test "x$ac_cv_header_resolv_h" = xyes then : else $as_nop as_fn_error $? "required header not found" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } if test ${ac_cv_c_undeclared_builtin_options+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_CFLAGS=$CFLAGS ac_cv_c_undeclared_builtin_options='cannot detect' for ac_arg in '' -fno-builtin; do CFLAGS="$ac_save_CFLAGS $ac_arg" # This test program should *not* compile successfully. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { (void) strchr; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop # This test program should compile successfully. # No library function is consistently available on # freestanding implementations, so test against a dummy # declaration. Include always-available headers on the # off chance that they somehow elicit warnings. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include extern void ac_decl (int, char *); int main (void) { (void) ac_decl (0, (char *) 0); (void) ac_decl; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : if test x"$ac_arg" = x then : ac_cv_c_undeclared_builtin_options='none needed' else $as_nop ac_cv_c_undeclared_builtin_options=$ac_arg fi break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done CFLAGS=$ac_save_CFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } case $ac_cv_c_undeclared_builtin_options in #( 'cannot detect') : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot make $CC report undeclared builtins See \`config.log' for more details" "$LINENO" 5; } ;; #( 'none needed') : ac_c_undeclared_builtin_options='' ;; #( *) : ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; esac ac_fn_check_decl "$LINENO" "res_query" "ac_cv_have_decl_res_query" " #include #ifdef HAVE_NETINET_IN_H # include #endif #ifdef HAVE_ARPA_NAMESER_H # include #endif #include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_res_query" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_RES_QUERY $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "res_nquery" "ac_cv_have_decl_res_nquery" " #include #ifdef HAVE_NETINET_IN_H # include #endif #ifdef HAVE_ARPA_NAMESER_H # include #endif #include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_res_nquery" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_RES_NQUERY $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" " #include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_h_errno" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_H_ERRNO $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 printf %s "checking for library containing res_query... " >&6; } if test ${ac_cv_search_res_query+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_NETINET_IN_H # include #endif #ifdef HAVE_ARPA_NAMESER_H # include #endif #include int main (void) { res_query(0,0,0,0,0) ; return 0; } _ACEOF for ac_lib in '' resolv bind network; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_res_query=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_res_query+y} then : break fi done if test ${ac_cv_search_res_query+y} then : else $as_nop ac_cv_search_res_query=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 printf "%s\n" "$ac_cv_search_res_query" >&6; } ac_res=$ac_cv_search_res_query if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" EXTRA_LIBS="$EXTRA_LIBS $ac_lib" else $as_nop as_fn_error $? "could not figure out which C library contains res_query(3)" "$LINENO" 5 fi USE_RES_NQUERY=0 if test "x$ac_cv_have_decl_res_nquery" = xyes; then # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct __res_state" >&5 printf %s "checking size of struct __res_state... " >&6; } if test ${ac_cv_sizeof_struct___res_state+y} then : printf %s "(cached) " >&6 else $as_nop if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct __res_state))" "ac_cv_sizeof_struct___res_state" " #include #ifdef HAVE_NETINET_IN_H # include #endif #ifdef HAVE_ARPA_NAMESER_H # include #endif #include " then : else $as_nop if test "$ac_cv_type_struct___res_state" = yes; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (struct __res_state) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_struct___res_state=0 fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct___res_state" >&5 printf "%s\n" "$ac_cv_sizeof_struct___res_state" >&6; } printf "%s\n" "#define SIZEOF_STRUCT___RES_STATE $ac_cv_sizeof_struct___res_state" >>confdefs.h SIZEOF_RES_STATE="$ac_cv_sizeof_struct___res_state" if test "$SIZEOF_RES_STATE" -gt 0; then USE_RES_NQUERY=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_nquery" >&5 printf %s "checking for library containing res_nquery... " >&6; } if test ${ac_cv_search_res_nquery+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_NETINET_IN_H # include #endif #ifdef HAVE_ARPA_NAMESER_H # include #endif #include int main (void) { res_nquery(0,0,0,0,0,0) ; return 0; } _ACEOF for ac_lib in '' resolv bind; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_res_nquery=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_res_nquery+y} then : break fi done if test ${ac_cv_search_res_nquery+y} then : else $as_nop ac_cv_search_res_nquery=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_nquery" >&5 printf "%s\n" "$ac_cv_search_res_nquery" >&6; } ac_res=$ac_cv_search_res_nquery if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" EXTRA_LIBS="$EXTRA_LIBS $ac_lib" else $as_nop USE_RES_NQUERY=0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which C library contains res_nquery(3)" >&5 printf "%s\n" "$as_me: WARNING: could not figure out which C library contains res_nquery(3)" >&2;} fi ac_fn_c_check_member "$LINENO" "struct __res_state" "res_h_errno" "ac_cv_member_struct___res_state_res_h_errno" " #include #ifdef HAVE_NETINET_IN_H # include #endif #ifdef HAVE_ARPA_NAMESER_H # include #endif #include " if test "x$ac_cv_member_struct___res_state_res_h_errno" = xyes then : printf "%s\n" "#define HAVE_STRUCT___RES_STATE_RES_H_ERRNO 1" >>confdefs.h fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not determine sizeof(struct __res_state)" >&5 printf "%s\n" "$as_me: WARNING: could not determine sizeof(struct __res_state)" >&2;} fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which DNS api to use" >&5 printf %s "checking which DNS api to use... " >&6; } case "x$USE_RES_NQUERY" in x0) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: res_query(3)" >&5 printf "%s\n" "res_query(3)" >&6; } CPP_OPTIONS="-DUSE_RES_NQUERY=0 -DSIZEOF_RES_STATE=0" ;; x1) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: res_nquery(3)" >&5 printf "%s\n" "res_nquery(3)" >&6; } CPP_OPTIONS="-DUSE_RES_NQUERY=1 -DSIZEOF_RES_STATE=$SIZEOF_RES_STATE" ;; *) as_fn_error $? "no suitable DNS API detected" "$LINENO" 5 ;; esac printf "%s\n" "#define USE_RES_NQUERY $USE_RES_NQUERY" >>confdefs.h ac_config_files="$ac_config_files resolv.buildinfo" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by resolv $as_me 0.0, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to ." _ACEOF ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ resolv config.status 0.0 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX printf "%s\n" "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "cbits/hs_resolv_config.h") CONFIG_HEADERS="$CONFIG_HEADERS cbits/hs_resolv_config.h" ;; "resolv.buildinfo") CONFIG_FILES="$CONFIG_FILES resolv.buildinfo" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi resolv-0.2.0.2/resolv.buildinfo.in0000644000000000000000000000007107346545000015166 0ustar0000000000000000extra-libraries: @EXTRA_LIBS@ cpp-options: @CPP_OPTIONS@ resolv-0.2.0.2/resolv.cabal0000644000000000000000000001156607346545000013663 0ustar0000000000000000cabal-version: 2.2 name: resolv version: 0.2.0.2 synopsis: Domain Name Service (DNS) lookup via the libresolv standard library routines description: { This package implements an API for accessing the [Domain Name Service (DNS)](https://tools.ietf.org/html/rfc1035) resolver service via the standard @libresolv@ system library (whose API is often available directly via the standard @libc@ C library) on Unix systems. . This package also includes support for decoding message record types as defined in the following RFCs: . - [RFC 1035](https://tools.ietf.org/html/rfc1035): Domain Names - Implementation And Specification - [RFC 1183](https://tools.ietf.org/html/rfc1183): New DNS RR Definitions - [RFC 2782](https://tools.ietf.org/html/rfc2782): A DNS RR for specifying the location of services (DNS SRV) - [RFC 2915](https://tools.ietf.org/html/rfc2915): The Naming Authority Pointer (NAPTR) DNS Resource Record - [RFC 3596](https://tools.ietf.org/html/rfc3596): DNS Extensions to Support IP Version 6 - [RFC 4034](https://tools.ietf.org/html/rfc4034): Resource Records for the DNS Security Extensions - [RFC 4255](https://tools.ietf.org/html/rfc4255): Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints - [RFC 4408](https://tools.ietf.org/html/rfc4408): Sender Policy Framework (SPF) for Authorizing Use of Domains in E-Mail, Version 1 - [RFC 5155](https://tools.ietf.org/html/rfc5155): DNS Security (DNSSEC) Hashed Authenticated Denial of Existence - [RFC 6844](https://tools.ietf.org/html/rfc6844): DNS Certification Authority Authorization (CAA) Resource Record - [RFC 6891](https://tools.ietf.org/html/rfc6891): Extension Mechanisms for DNS (EDNS(0)) - [RFC 7553](https://tools.ietf.org/html/rfc7553): The Uniform Resource Identifier (URI) DNS Resource Record . For Windows, the package [windns](https://hackage.haskell.org/package/windns) provides a compatible subset of this package's API. } license: GPL-2.0-or-later license-files: LICENSE LICENSE.GPLv2 LICENSE.GPLv3 author: Herbert Valerio Riedel maintainer: Alexey Radkov category: Network build-type: Configure bug-reports: https://github.com/haskell-hvr/resolv/issues extra-doc-files: ChangeLog.md extra-source-files: cbits/hs_resolv.h cbits/hs_resolv_config.h.in testdata/msg/*.bin testdata/msg/*.show resolv.buildinfo.in configure extra-tmp-files: autom4te.cache config.log config.status resolv.buildinfo cbits/hs_resolv_config.h tested-with: GHC == 9.6.2 GHC == 9.4.5 GHC == 9.2.8 GHC == 9.0.2 GHC == 8.10.7 GHC == 8.8.4 GHC == 8.6.5 GHC == 8.4.4 GHC == 8.2.2 GHC == 8.0.2 -- Not supported by ghcup: -- GHC == 7.10.3 -- GHC == 7.8.4 -- GHC == 7.6.3 source-repository head type: git location: https://github.com/haskell-hvr/resolv.git library default-language: Haskell2010 other-extensions: BangPatterns CApiFFI CPP DeriveDataTypeable DeriveFoldable DeriveFunctor DeriveTraversable GeneralizedNewtypeDeriving OverloadedStrings RecordWildCards Trustworthy hs-source-dirs: src exposed-modules: Network.DNS other-modules: Network.DNS.Message Network.DNS.FFI Compat build-depends: base >= 4.6 && < 5 -- bytestring-0.10.0.0 was shipped with GHC 7.6 (base-4.6) , base16-bytestring >= 0.1 && < 1.1 , binary ^>= 0.7.3 || ^>= 0.8 -- we need binary-0.7.3 for isolate , bytestring >= 0.10.0.0 && < 0.12 -- instance IsString ByteString exists in its form since bytestring-0.10.0.0 -- see https://github.com/haskell-hvr/resolv/pull/13#issuecomment-1213876161 , containers ^>= 0.4.2.1 || ^>= 0.5 || ^>= 0.6 ghc-options: -Wall include-dirs: cbits test-suite resolv. default-language: Haskell2010 hs-source-dirs: src-test main-is: Tests1.hs type: exitcode-stdio-1.0 -- dependencies whose version constraints are inherited via lib:resolv component build-depends: resolv , base , bytestring -- additional dependencies not inherited build-depends: tasty >= 1.2.3 && < 1.5 , tasty-hunit ^>= 0.10.0 , directory ^>= 1.1.0 || ^>= 1.2.0 || ^>= 1.3.0 , filepath ^>= 1.3.0 || ^>= 1.4.0 resolv-0.2.0.2/src-test/0000755000000000000000000000000007346545000013120 5ustar0000000000000000resolv-0.2.0.2/src-test/Tests1.hs0000644000000000000000000000641407346545000014644 0ustar0000000000000000{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Applicative as A import qualified Control.Exception as E import Control.Monad import qualified Data.ByteString as BS import System.Directory (getDirectoryContents, removeFile) import System.FilePath (dropExtension, takeExtension, (<.>), ()) import qualified Test.Tasty as T import qualified Test.Tasty.HUnit as T import qualified Network.DNS as DNS main :: IO () main = do msgfiles <- filter ((== ".bin") . takeExtension) <$> getDirectoryContents "testdata/msg" let tests1 = [ msgFileTest1 (dropExtension fn) | fn <- msgfiles ] tests2 = [ msgFileTest2 (dropExtension fn) | fn <- msgfiles ] T.defaultMain (T.testGroup "" [ T.testGroup "decode" tests1 , T.testGroup "enc/dec" tests2 , T.testGroup "Type/TypeSym" [ testTypeToFromSym1, testTypeToFromSym2 ] , T.testGroup "mkQueryRaw" [ mkQueryRawText1 ] ]) testTypeToFromSym1 :: T.TestTree testTypeToFromSym1 = T.testCase "testTypeToFromSym1" $ do forM_ [minBound..maxBound] $ \sym -> do T.assertEqual "" (Just sym) (DNS.typeToSym . DNS.typeFromSym $ sym) testTypeToFromSym2 :: T.TestTree testTypeToFromSym2 = T.testCase "testTypeToFromSym2" $ do forM_ (map DNS.Type [minBound..maxBound]) $ \ty -> case DNS.typeToSym ty of Nothing -> pure () Just sym -> T.assertEqual "" (DNS.typeFromSym sym) ty msgFileTest1 :: FilePath -> T.TestTree msgFileTest1 fn = T.testCase fn $ do bs <- BS.readFile ("testdata" "msg" fn <.> "bin") msg1 <- assertJust "failed to decode message" $ DNS.decodeMessage bs -- load reference value let refFn = "testdata" "msg" fn <.> "show" writeFile (refFn ++ "~") (show (msg1 :: DNS.Msg DNS.Name)) msg0 <- read <$> readFile refFn assertEqShow (pure ()) msg0 msg1 removeFile (refFn ++ "~") msgFileTest2 :: FilePath -> T.TestTree msgFileTest2 fn = T.testCase fn $ do -- use this as reference message bs <- BS.readFile ("testdata" "msg" fn <.> "bin") msg0 <- assertJust "failed to decode stored message" $ DNS.decodeMessage bs -- print msg0 -- encode it now again let Just msg0bin = DNS.encodeMessage (msg0 :: DNS.Msg DNS.Labels) msg1 <- assertJust "failed to decode re-encoded message" $ DNS.decodeMessage msg0bin assertEqShow (pure ()) msg0 msg1 mkQueryRawText1 :: T.TestTree mkQueryRawText1 = T.testCase "mkQueryRawText1" $ do msgraw <- DNS.mkQueryRaw DNS.classIN (DNS.Name "www.google.com") (DNS.typeFromSym DNS.TypeA) let Just msg = DNS.decodeMessage msgraw assertEqShow (pure ()) (head (DNS.msgQD msg)) (DNS.MsgQuestion (DNS.Name "www.google.com.") (DNS.Type 1) (DNS.Class 1)) assertJust :: String -> Maybe a -> IO a assertJust msg Nothing = T.assertFailure msg assertJust _ (Just v) = A.pure v assertEqShow :: Show a => IO () -> a -> a -> T.Assertion assertEqShow onFail ref cur | show ref /= show cur = do onFail T.assertFailure ("expected: " ++ show ref ++ "\n but got: " ++ show cur) | otherwise = A.pure () resolv-0.2.0.2/src/0000755000000000000000000000000007346545000012143 5ustar0000000000000000resolv-0.2.0.2/src/Compat.hs0000644000000000000000000000270707346545000013730 0ustar0000000000000000{-# LANGUAGE CPP #-} -- | -- Copyright: © 2017 Herbert Valerio Riedel -- SPDX-License-Identifier: GPL-2.0-or-later module Compat ( toStrict , fromStrict , guard , replicateM , unless , when , A.Applicative(..) , (<$>) , Mon.Monoid(..) , Foldable , F.forM_ , toList , traverse , T.Traversable , module Data.Word , module Data.Int , module Data.Maybe , putInt32be , getInt32be ) where --import qualified Data.ByteString.Lazy as BSL import Control.Applicative as A import Control.Monad as M import Data.Binary.Get import Data.Binary.Put #if MIN_VERSION_bytestring(0,10,0) import Data.ByteString.Lazy (fromStrict, toStrict) #else import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as BS.L #endif import Data.Foldable as F import Data.Int import Data.Maybe import Data.Monoid as Mon (Monoid (..)) import Data.Traversable as T import Data.Word #if !(MIN_VERSION_bytestring(0,10,0)) fromStrict :: BS.ByteString -> BS.L.ByteString fromStrict = BS.L.fromChunks . (:[]) toStrict :: BS.L.ByteString -> BS.ByteString toStrict = mconcat . BS.L.toChunks #endif #if !MIN_VERSION_binary(0,8,1) putInt32be :: Int32 -> Put putInt32be x = putWord32be (fromIntegral x) getInt32be :: Get Int32 getInt32be = fromIntegral <$> getWord32be #endif resolv-0.2.0.2/src/Network/0000755000000000000000000000000007346545000013574 5ustar0000000000000000resolv-0.2.0.2/src/Network/DNS.hs0000644000000000000000000003370707346545000014566 0ustar0000000000000000{-# LANGUAGE CApiFFI #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE Trustworthy #-} -- | -- Copyright: © 2017 Herbert Valerio Riedel -- SPDX-License-Identifier: GPL-2.0-or-later -- -- This module implements an API for accessing -- the [Domain Name Service (DNS)](https://tools.ietf.org/html/rfc1035) -- resolver service via the standard @libresolv@ system library -- on Unix systems. -- module Network.DNS ( -- ** High level API queryA , queryAAAA , queryCNAME , queryPTR , querySRV , queryTXT -- * Mid-level API , query , DnsException(..) -- * Low-level API , resIsReentrant , queryRaw , sendRaw , mkQueryRaw , decodeMessage , encodeMessage , mkQueryMsg -- * Types -- ** Basic types -- *** Names/Labels , Label , Labels(..) , IsLabels(..) , Name(..) , caseFoldName -- *** Character strings , CharStr(..) -- *** IP addresses , IPv4(..), arpaIPv4 , IPv6(..), arpaIPv6 -- *** RR TTL & Class , TTL(..) , Class(..) , classIN -- *** Message types , Type(..) , TypeSym(..) , typeFromSym , typeToSym -- ** Messages , Msg(..) , MsgHeader(..) , MsgHeaderFlags(..), QR(..) , MsgQuestion(..) , MsgRR(..) , RData(..) , rdType , SRV(..) ) where import Control.Exception import Data.Bits (unsafeShiftR, (.&.)) import Data.Typeable (Typeable) import Foreign.C import Foreign.Marshal.Alloc import Numeric (showInt) import Prelude import qualified Data.ByteString as BS import qualified Data.ByteString.Char8 as BSC import Compat import Network.DNS.FFI import Network.DNS.Message -- | Exception thrown in case of errors while resolving or encoding/decoding into a 'Msg'. -- -- @since 0.1.1.0 data DnsException = DnsEncodeException | DnsDecodeException | DnsHostNotFound -- ^ No such domain (authoritative) -- -- @since 0.2.0.0 | DnsNoData -- ^ No record for requested type -- -- @since 0.2.0.0 | DnsNoRecovery -- ^ Non recoverable errors, REFUSED, NOTIMP -- -- @since 0.2.0.0 | DnsTryAgain -- ^ No such domain (non-authoritative) or SERVERFAIL -- -- @since 0.2.0.0 deriving (Show, Typeable) instance Exception DnsException -- | Send a query via @res_query(3)@ and decode its response into a 'Msg' -- -- Throws 'DnsException' in case of resolving or encoding/decoding errors. May throw other IO exceptions in case of network errors. -- -- === Example -- -- >>> query classIN (Name "_mirrors.hackage.haskell.org") TypeTXT -- Just (Msg{msgHeader = MsgHeader{mhId = 56694, -- mhFlags = MsgHeaderFlags{mhQR = IsResponse, mhOpcode = 0, mhAA = False, -- mhTC = False, mhRD = True, mhRA = True, mhZ = False, -- mhAD = False, mhCD = False, mhRCode = 0}, -- mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, -- msgQD = [MsgQuestion (Name "_mirrors.hackage.haskell.org.") (Type 16) (Class 1)], -- msgAN = [MsgRR{rrName = Name "_mirrors.hackage.haskell.org.", -- rrClass = Class 1, rrTTL = TTL 299, -- rrData = RDataTXT ["0.urlbase=http://hackage.fpcomplete.com/", -- "1.urlbase=http://objects-us-west-1.dream.io/hackage-mirror/"]}], -- msgNS = [], -- msgAR = [MsgRR{rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}] -- }) -- query :: IsLabels n => Class -> n -> TypeSym -> IO (Msg n) query cls name0 qtype | Just name <- toName name0 = do bs <- queryRaw cls name (typeFromSym qtype) msg <- evaluate (decodeMessage bs) maybe (throwIO DnsDecodeException) pure msg | otherwise = throwIO DnsEncodeException -- | Send a query via @res_query(3)@, the return value is the raw binary response message. -- -- You can use 'decodeMessage' to decode the response message. queryRaw :: Class -> Name -> Type -> IO BS.ByteString queryRaw (Class cls) (Name name) qtype = withCResState $ \stptr -> do allocaBytes max_msg_size $ \resptr -> do _ <- c_memset resptr 0 max_msg_size BS.useAsCString name $ \dn -> do withCResInit stptr $ do reslen <- c_res_query stptr dn (fromIntegral cls) qtypeVal resptr max_msg_size unless (reslen <= max_msg_size) $ fail "res_query(3) message size overflow" errno <- getErrno when (reslen < 0) $ do unless (errno == eOK) $ throwErrno "res_query" h_errno <- c_get_h_errno stptr case h_errno of 1 -> throwIO DnsHostNotFound 2 -> throwIO DnsNoData 3 -> throwIO DnsNoRecovery 4 -> throwIO DnsTryAgain _ -> fail "res_query(3) failed" BS.packCStringLen (resptr, fromIntegral reslen) where -- The DNS protocol is inherently 16-bit-offset based; so 64KiB is -- a reasonable maximum message size most implementations seem to -- support. max_msg_size :: Num a => a max_msg_size = 0x10000 qtypeVal :: CInt qtypeVal = case qtype of Type w -> fromIntegral w -- | Send a raw preformatted query via @res_send(3)@. sendRaw :: BS.ByteString -> IO BS.ByteString sendRaw req = withCResState $ \stptr -> do allocaBytes max_msg_size $ \resptr -> do _ <- c_memset resptr 0 max_msg_size BS.useAsCStringLen req $ \(reqptr,reqlen) -> do withCResInit stptr $ do reslen <- c_res_send stptr reqptr (fromIntegral reqlen) resptr max_msg_size unless (reslen <= max_msg_size) $ fail "res_send(3) message size overflow" errno <- getErrno when (reslen < 0) $ do unless (errno == eOK) $ throwErrno "res_send" fail "res_send(3) failed" BS.packCStringLen (resptr, fromIntegral reslen) where -- The DNS protocol is inherently 16-bit-offset based; so 64KiB is -- a reasonable maximum message size most implementations seem to -- support. max_msg_size :: Num a => a max_msg_size = 0x10000 -- | Construct a DNS query 'Msg' in the style of 'mkQueryRaw' mkQueryMsg :: IsLabels n => Class -> n -> Type -> Msg n mkQueryMsg cls l qtype = Msg (MsgHeader{..}) [MsgQuestion l qtype cls] [] [] [MsgRR {..}] where mhId = 31337 mhFlags = MsgHeaderFlags { mhQR = IsQuery , mhOpcode = 0 , mhAA = False , mhTC = False , mhRD = True , mhRA = False , mhZ = False , mhAD = True , mhCD = False , mhRCode = 0 } mhQDCount = 1 mhANCount = 0 mhNSCount = 0 mhARCount = 1 rrName = fromLabels Root rrClass = Class 512 rrTTL = TTL 0x8000 rrData = RDataOPT "" -- | Use @res_mkquery(3)@ to construct a DNS query message. mkQueryRaw :: Class -> Name -> Type -> IO BS.ByteString mkQueryRaw (Class cls) (Name name) qtype = withCResState $ \stptr -> do allocaBytes max_msg_size $ \resptr -> do _ <- c_memset resptr 0 max_msg_size BS.useAsCString name $ \dn -> do withCResInit stptr $ do reslen <- c_res_mkquery stptr dn (fromIntegral cls) qtypeVal resptr max_msg_size unless (reslen <= max_msg_size) $ fail "res_mkquery(3) message size overflow" errno <- getErrno when (reslen < 0) $ do unless (errno == eOK) $ throwErrno "res_query" fail "res_mkquery(3) failed" BS.packCStringLen (resptr, fromIntegral reslen) where -- The DNS protocol is inherently 16-bit-offset based; so 64KiB is -- a reasonable maximum message size most implementations seem to -- support. max_msg_size :: Num a => a max_msg_size = 0x10000 qtypeVal :: CInt qtypeVal = case qtype of Type w -> fromIntegral w ---------------------------------------------------------------------------- -- Common High-level queries -- | Normalise 'Name' -- -- This function case folds 'Name's as described in -- in [RFC 4343, section 3](https://tools.ietf.org/html/rfc4343#section-3) -- by subtracting @0x20@ from all octets in the inclusive range -- @[0x61..0x7A]@ (i.e. mapping @['a'..'z']@ to @['A'..'Z']@). -- -- This operation is idempotent. caseFoldName :: Name -> Name caseFoldName (Name n) = (Name n'') where n' = BS.map cf n n'' | BS.null n' = "." | BS.last n' == 0x2e {- '.' -} = n' | otherwise = n' `mappend` "." -- case fold (c.f. RFC4343) cf w | 0x61 <= w && w <= 0x7a = w - 0x20 | otherwise = w ---------------------------------------------------------------------------- -- | Query @A@ record (see [RFC 1035, section 3.4.1](https://tools.ietf.org/html/rfc1035#section-3.4.1)). -- -- This query returns only exact matches (modulo 'foldCaseName'). -- E.g. in case of @CNAME@ responses even if the -- answer section would contain @A@ records for the hostnames pointed -- to by the @CNAME@. You can use 'query' if you need more control. -- -- >>> queryA (Name "www.google.com") -- [(TTL 72,IPv4 0xd83acde4)] -- queryA :: Name -> IO [(TTL,IPv4)] queryA n = do res <- query classIN n' TypeA pure [ (ttl,ip4) | MsgRR { rrData = RDataA ip4, rrTTL = ttl, rrName = n1, rrClass = Class 1 } <- msgAN res, caseFoldName n1 == n' ] where n' = caseFoldName n -- | Query @AAAA@ records (see [RFC 3596](https://tools.ietf.org/html/rfc3596)). -- -- This query returns only exact matches (modulo 'foldCaseName'). -- E.g. in case of @CNAME@ responses even if the answer section would -- contain @A@ records for the hostnames pointed to by the -- @CNAME@. You can use 'query' if you need more control. -- -- >>> queryAAAA (Name "www.google.com") -- [(TTL 299,IPv6 0x2a0014504001081e 0x2004)] -- queryAAAA :: Name -> IO [(TTL,IPv6)] queryAAAA n = do res <- query classIN n' TypeAAAA pure [ (ttl,ip6) | MsgRR { rrData = RDataAAAA ip6, rrTTL = ttl, rrName = n1, rrClass = Class 1 } <- msgAN res, caseFoldName n1 == n' ] where n' = caseFoldName n -- | Query @CNAME@ records (see [RFC 1035, section 3.3.1](https://tools.ietf.org/html/rfc1035#section-3.3.1)). -- -- >>> queryCNAME (Name "hackage.haskell.org") -- [(TTL 299,Name "j.global-ssl.fastly.net.")] -- queryCNAME :: Name -> IO [(TTL,Name)] queryCNAME n = do res <- query classIN n' TypeAAAA pure [ (ttl,cname) | MsgRR { rrData = RDataCNAME cname, rrTTL = ttl, rrName = n1, rrClass = Class 1 } <- msgAN res, caseFoldName n1 == n' ] where n' = caseFoldName n -- | Query @PTR@ records (see [RFC 1035, section 3.3.12](https://tools.ietf.org/html/rfc1035#section-3.3.12)). -- -- >>> queryPTR (Name "4.4.8.8.in-addr.arpa.") -- [(TTL 14390,Name "dns.google.")] -- -- See also 'arpaIPv6' and 'arpaIPv4' for converting 'IPv6' and 'IPv4' values to the respective @.arpa."@ domain name for reverse lookups. -- -- @since 0.1.2.0 queryPTR :: Name -> IO [(TTL,Name)] queryPTR n = do res <- query classIN n' TypePTR pure [ (ttl,ptrs) | MsgRR { rrData = RDataPTR ptrs, rrTTL = ttl, rrName = n1, rrClass = Class 1 } <- msgAN res, caseFoldName n1 == n' ] where n' = caseFoldName n -- | Query @TXT@ records (see [RFC 1035, section 3.3.14](https://tools.ietf.org/html/rfc1035#section-3.3.14)). -- -- >>> queryTXT (Name "_mirrors.hackage.haskell.org") -- [(TTL 299,["0.urlbase=http://hackage.fpcomplete.com/", -- "1.urlbase=http://objects-us-west-1.dream.io/hackage-mirror/"])] -- queryTXT :: Name -> IO [(TTL,[CharStr])] queryTXT n = do res <- query classIN n' TypeTXT pure [ (ttl,txts) | MsgRR { rrData = RDataTXT txts, rrTTL = ttl, rrName = n1, rrClass = Class 1 } <- msgAN res, caseFoldName n1 == n' ] where n' = caseFoldName n -- | Query @SRV@ records (see [RFC 2782](https://tools.ietf.org/html/rfc2782)). -- -- >>> querySRV (Name "_imap._tcp.gmail.com") -- [(TTL 21599,SRV {srvPriority = 0, srvWeight = 0, srvPort = 0, srvTarget = Name "."})] -- querySRV :: Name -> IO [(TTL,SRV Name)] querySRV n = do res <- query classIN n' TypeSRV pure [ (ttl,srv) | MsgRR { rrData = RDataSRV srv, rrTTL = ttl, rrName = n1, rrClass = Class 1 } <- msgAN res, caseFoldName n1 == n' ] where n' = caseFoldName n -- | Convert 'IPv4' address to @in-addr.arpa.@ 'Name' (see [RFC 1035, section 3.5](https://tools.ietf.org/html/rfc1035#section-3.5)). -- -- >>> arpaIPv4 (IPv4 0x8080404) -- Name "4.4.8.8.in-addr.arpa." -- -- @since 0.1.2.0 arpaIPv4 :: IPv4 -> Name arpaIPv4 (IPv4 w) = Name (BSC.pack s) where s = showInt o0 ('.' : showInt o1 ('.' : showInt o2 ('.' : showInt o3 ".in-addr.arpa."))) o0, o1, o2, o3 :: Word8 o0 = fromIntegral $ w o1 = fromIntegral $ w `unsafeShiftR` 8 o2 = fromIntegral $ w `unsafeShiftR` 16 o3 = fromIntegral $ w `unsafeShiftR` 24 -- | Convert 'IPv4' address to @ip6.arpa.@ 'Name' (see [RFC 3596, section 2.5](https://tools.ietf.org/html/rfc3596#section-2.5)). -- -- >>> arpaIPv6 (IPv6 0x2001486048600000 0x8844) -- Name "4.4.8.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.8.4.0.6.8.4.1.0.0.2.ip6.arpa." -- -- @since 0.1.2.0 arpaIPv6 :: IPv6 -> Name arpaIPv6 (IPv6 hi lo) = Name (BSC.pack s) where s = go 16 lo (go 16 hi "ip6.arpa.") go :: Int -> Word64 -> ShowS go 0 _ cont = cont go n w cont = nib : '.' : go (n-1) w' cont where nib :: Char nib | x < 10 = toEnum (fromIntegral (0x30 + x)) | otherwise = toEnum (fromIntegral (0x57 + x)) x = w .&. 0xf w' = w `unsafeShiftR` 4 resolv-0.2.0.2/src/Network/DNS/0000755000000000000000000000000007346545000014220 5ustar0000000000000000resolv-0.2.0.2/src/Network/DNS/FFI.hs0000644000000000000000000000574107346545000015167 0ustar0000000000000000{-# LANGUAGE CApiFFI #-} {-# LANGUAGE CPP #-} module Network.DNS.FFI where import Control.Concurrent.MVar import Control.Monad (unless) import Control.Exception (bracket) import Foreign.C import Foreign.Marshal.Alloc import Foreign.Ptr import System.IO.Unsafe (unsafePerformIO) #if !defined(USE_RES_NQUERY) # error USE_RES_NQUERY not defined #endif {-# INLINE resIsReentrant #-} -- | Whether the reentrant DNS resolver C API (e.g. @res_nquery(3)@, @res_nsend(3)@) is being used. -- -- If this this 'False', then as a fall-back -- @res_query(3)@/@res_send(3)@ are used, protected by a global mutex. -- -- @since 0.1.1.0 resIsReentrant :: Bool #if USE_RES_NQUERY resIsReentrant = True #else resIsReentrant = False #endif #if !defined(SIZEOF_RES_STATE) # error SIZEOF_RES_STATE not defined #endif #if USE_RES_NQUERY && (SIZEOF_RES_STATE <= 0) # error broken invariant #endif {-# INLINE sizeOfResState #-} sizeOfResState :: CSize sizeOfResState = SIZEOF_RES_STATE data CResState {-# NOINLINE resolvLock #-} resolvLock :: MVar () resolvLock = unsafePerformIO $ newMVar () withCResState :: (Ptr CResState -> IO a) -> IO a withCResState act | resIsReentrant = allocaBytes (fromIntegral sizeOfResState) $ \ptr -> do _ <- c_memset ptr 0 sizeOfResState act ptr | otherwise = withMVar resolvLock $ \() -> act nullPtr withCResInit :: Ptr CResState -> IO a -> IO a withCResInit stptr act = bracket initialize finalize $ const act where initialize = do rc1 <- c_res_opt_set_use_dnssec stptr unless (rc1 == 0) $ fail "res_init(3) failed" resetErrno finalize _ = c_res_close stptr -- void *memset(void *s, int c, size_t n); foreign import capi unsafe "string.h memset" c_memset :: Ptr a -> CInt -> CSize -> IO (Ptr a) -- int res_query(void *, const char *dname, int class, int type, unsigned char *answer, int anslen); foreign import capi safe "hs_resolv.h hs_res_query" c_res_query :: Ptr CResState -> CString -> CInt -> CInt -> Ptr CChar -> CInt -> IO CInt -- int res_send(void *, const unsigned char *msg, int msglen, unsigned char *answer, int anslen); foreign import capi safe "hs_resolv.h hs_res_send" c_res_send :: Ptr CResState -> Ptr CChar -> CInt -> Ptr CChar -> CInt -> IO CInt -- int res_opt_set_use_dnssec(void *); foreign import capi safe "hs_resolv.h res_opt_set_use_dnssec" c_res_opt_set_use_dnssec :: Ptr CResState -> IO CInt -- int hs_res_mkquery(void *, const char *dname, int class, int type, unsigned char *req, int reqlen0); foreign import capi safe "hs_resolv.h hs_res_mkquery" c_res_mkquery :: Ptr CResState -> CString -> CInt -> CInt -> Ptr CChar -> CInt -> IO CInt -- void hs_res_close(void *); foreign import capi safe "hs_resolv.h hs_res_close" c_res_close :: Ptr CResState -> IO () -- void *hs_get_h_errno(void *); foreign import capi unsafe "hs_resolv.h hs_get_h_errno" c_get_h_errno :: Ptr CResState -> IO CInt resolv-0.2.0.2/src/Network/DNS/Message.hs0000644000000000000000000010205207346545000016140 0ustar0000000000000000{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CApiFFI #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} -- | -- Copyright: © 2017 Herbert Valerio Riedel -- SPDX-License-Identifier: GPL-2.0-or-later -- -- Internal module module Network.DNS.Message where import qualified Data.ByteString.Base16 as B16 import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as BSL import Data.Function import Data.List (groupBy) import Data.String import Numeric (showHex) import Prelude import Data.Binary import Data.Binary.Get import Data.Binary.Put import Data.Bits import Data.Map (Map) import qualified Data.Map as Map import Data.Set (Set) import qualified Data.Set as Set import Compat -- | An IPv6 address -- -- The IP address is represented in network order, -- i.e. @2606:2800:220:1:248:1893:25c8:1946@ is -- represented as @(IPv6 0x2606280002200001 0x248189325c81946)@. data IPv6 = IPv6 !Word64 !Word64 deriving (Eq,Ord,Read) instance Show IPv6 where showsPrec p (IPv6 hi lo) = showParen (p >= 11) (showString "IPv6 0x" . showHex hi . showString " 0x" . showHex lo) instance Binary IPv6 where put (IPv6 hi lo) = putWord64be hi >> putWord64be lo get = IPv6 <$> getWord64be <*> getWord64be -- | An IPv4 address -- -- The IP address is represented in network order, i.e. @127.0.0.1@ is -- represented as @(IPv4 0x7f000001)@. data IPv4 = IPv4 !Word32 deriving (Eq,Ord,Read) instance Show IPv4 where showsPrec p (IPv4 n) = showParen (p >= 11) (showString "IPv4 0x" . showHex n) instance Binary IPv4 where put (IPv4 w) = putWord32be w get = IPv4 <$> getWord32be -- | @\@ as per [RFC 1035, section 3.3](https://tools.ietf.org/html/rfc1035#section-3.3). -- -- A domain-name represented as a series of labels separated by dots. -- -- See also 'Labels' for list-based representation. -- -- __NOTE__: The 'Labels' type is able to properly represent domain -- names whose components contain dots which the 'Name' representation -- cannot. newtype Name = Name BS.ByteString deriving (Read,Show,Eq,Ord) -- | @\@ as per [RFC 1035, section 3.3](https://tools.ietf.org/html/rfc1035#section-3.3). -- -- A sequence of up to 255 octets -- -- The limit of 255 octets is caused by the encoding which uses by a -- prefixed octet denoting the length. newtype CharStr = CharStr BS.ByteString deriving (Eq,Ord,IsString) instance Show CharStr where showsPrec p (CharStr bs) = showsPrec p bs instance Read CharStr where readsPrec p = map (\(x,y) -> (CharStr x,y)) <$> readsPrec p instance Binary CharStr where put (CharStr bs) | BS.length bs > 0xff = error "putString: string too long" | otherwise = do putWord8 (fromIntegral $ BS.length bs) putByteString bs get = do len' <- getWord8 CharStr <$> getByteString (fromIntegral len') {- Resource records -- https://en.wikipedia.org/wiki/List_of_DNS_record_types RFC 1035 A 1 a host address NS 2 an authoritative name server CNAME 5 the canonical name for an alias SOA 6 marks the start of a zone of authority PTR 12 a domain name pointer MX 15 mail exchange TXT 16 text strings RFC 3596 AAAA 28 IPv6 RFC 2782 SRV 33 Location of services ---- RFC3597 Handling of Unknown DNS Resource Record (RR) Types -} -- | Represents a DNS message as per [RFC 1035](https://tools.ietf.org/html/rfc1035) data Msg l = Msg { msgHeader :: !MsgHeader , msgQD :: [MsgQuestion l] , msgAN, msgNS, msgAR :: [MsgRR l] } deriving (Read,Show,Functor,Foldable,Traversable) -- | DNS message header section as per [RFC 1035, section 4.1.1](https://tools.ietf.org/html/rfc1035#section-4.1.1) data MsgHeader = MsgHeader { mhId :: !Word16 , mhFlags :: !MsgHeaderFlags , mhQDCount :: !Word16 , mhANCount :: !Word16 , mhNSCount :: !Word16 , mhARCount :: !Word16 } deriving (Read,Show) -- | DNS message header section as per [RFC 1035, section 4.1.2](https://tools.ietf.org/html/rfc1035#section-4.1.2) data MsgQuestion l = MsgQuestion !l !Type !Class deriving (Eq,Read,Show,Functor,Foldable,Traversable) -- | DNS message header flags as per [RFC 1035, section 4.1.1](https://tools.ietf.org/html/rfc1035#section-4.1.1) data MsgHeaderFlags = MsgHeaderFlags { mhQR :: !QR , mhOpcode :: !Word8 -- actually Word4 , mhAA :: !Bool , mhTC :: !Bool , mhRD :: !Bool , mhRA :: !Bool , mhZ :: !Bool -- reserved/unused bit , mhAD :: !Bool -- RFC4035 , mhCD :: !Bool -- RFC4035 , mhRCode :: !Word8 -- Word4 } deriving (Read,Show) -- | DNS resource record section as per [RFC 1035, section 4.1.3](https://tools.ietf.org/html/rfc1035#section-4.1.3) data MsgRR l = MsgRR { rrName :: !l , rrClass :: !Class , rrTTL :: !TTL , rrData :: !(RData l) } deriving (Eq,Read,Show,Functor,Foldable,Traversable) -- | DNS resource record data (see also 'MsgRR' and 'TypeSym') data RData l = RDataA !IPv4 | RDataAAAA !IPv6 | RDataCNAME !l | RDataPTR !l | RDataHINFO !CharStr !CharStr | RDataNS !l | RDataMX !Word16 !l | RDataTXT ![CharStr] | RDataSPF ![CharStr] | RDataSOA !l !l !Word32 !Word32 !Word32 !Word32 !Word32 | RDataSRV !(SRV l) -- RFC 1183 | RDataAFSDB !Word16 !l -- RFC 2915 | RDataNAPTR !Word16 !Word16 !CharStr !CharStr !CharStr !l -- RFC 7553 | RDataURI !Word16 !Word16 !BS.ByteString -- RFC 4034 | RDataRRSIG !Word16 !Word8 !Word8 !Word32 !Word32 !Word32 !Word16 !l !BS.ByteString | RDataDNSKEY !Word16 !Word8 !Word8 !BS.ByteString | RDataDS !Word16 !Word8 !Word8 !BS.ByteString | RDataNSEC !l !(Set Type) -- RFC 4255 | RDataSSHFP !Word8 !Word8 !BS.ByteString -- RFC 5155 | RDataNSEC3PARAM !Word8 !Word8 !Word16 !CharStr | RDataNSEC3 !Word8 !Word8 !Word16 !CharStr !CharStr !(Set Type) -- RFC 6844 | RDataCAA !Word8 !CharStr !BS.ByteString -- pseudo-record | RDataOPT !BS.ByteString -- FIXME -- unknown/unsupported | RData !Type !BS.ByteString -- ^ Unknown/undecoded resource record type deriving (Eq,Read,Show,Functor,Foldable,Traversable) -- | @SRV@ Record data as per [RFC 2782](https://tools.ietf.org/html/rfc2782) data SRV l = SRV { srvPriority :: !Word16 , srvWeight :: !Word16 , srvPort :: !Word16 , srvTarget :: !l } deriving (Eq,Read,Show,Functor,Foldable,Traversable) ---------------------------------------------------------------------------- decodeMessage' :: BS.ByteString -> Maybe (Msg Labels) decodeMessage' bs = do (rest, _, v) <- either handleParseFail Just $ decodeOrFail (fromStrict bs) -- don't allow trailing garbage guard (BSL.null rest) let ofss = Set.fromList $ mapMaybe labelsPtr (toList v) ofsmap <- retrieveLabelPtrs bs ofss traverse (resolveLabelPtr ofsmap) v where -- handleParseFail _ = Nothing handleParseFail (rest, n, e) = error $ show (e, n, BSL.length rest, BS.length bs) ++ "\n" ++ show (B16.encode $ toStrict rest) -- | Decode a raw DNS message (query or response) -- -- Returns 'Nothing' on decoding failures. decodeMessage :: IsLabels n => BS.ByteString -> Maybe (Msg n) decodeMessage = fmap (fmap fromLabels) . decodeMessage' encodeMessage' :: Msg Labels -> BS.ByteString encodeMessage' m = toStrict $ encode (fmap labels2labelsPtr m) -- | Construct a raw DNS message (query or response) -- -- May return 'Nothing' in input parameters are detected to be invalid. encodeMessage :: IsLabels n => Msg n -> Maybe BS.ByteString encodeMessage m = encodeMessage' <$> traverse toLabels m instance Binary l => Binary (Msg l) where get = do hdr@MsgHeader{..} <- get Msg hdr <$> replicateM (fromIntegral mhQDCount) get <*> replicateM (fromIntegral mhANCount) get <*> replicateM (fromIntegral mhNSCount) get <*> replicateM (fromIntegral mhARCount) get put (Msg hdr qds ans nss ars) = do put hdr mapM_ put qds mapM_ put ans mapM_ put nss mapM_ put ars instance Binary MsgHeader where get = MsgHeader <$> getWord16be <*> get <*> getWord16be <*> getWord16be <*> getWord16be <*> getWord16be put (MsgHeader{..}) = do putWord16be mhId put mhFlags putWord16be mhQDCount putWord16be mhANCount putWord16be mhNSCount putWord16be mhARCount instance Binary MsgHeaderFlags where put = putWord16be . encodeFlags get = decodeFlags <$> getWord16be -- | Decode message header flag field -- -- > +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -- > |QR| Opcode |AA|TC|RD|RA|??|AD|CD| RCODE | -- > +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -- decodeFlags :: Word16 -> MsgHeaderFlags decodeFlags w = MsgHeaderFlags{..} where mhQR = if testBit w 15 then IsResponse else IsQuery mhOpcode = shiftR' 11 .&. 0xf mhAA = testBit w 10 mhTC = testBit w 9 mhRD = testBit w 8 mhRA = testBit w 7 mhZ = testBit w 6 mhAD = testBit w 5 mhCD = testBit w 4 mhRCode = fromIntegral w .&. 0xf shiftR' = fromIntegral . shiftR w encodeFlags :: MsgHeaderFlags -> Word16 encodeFlags MsgHeaderFlags{..} = (case mhQR of IsResponse -> bit 15 IsQuery -> 0) .|. (fromIntegral mhOpcode `shiftL` 11) .|. (if mhAA then bit 10 else 0) .|. (if mhTC then bit 9 else 0) .|. (if mhRD then bit 8 else 0) .|. (if mhRA then bit 7 else 0) .|. (if mhZ then bit 6 else 0) .|. (if mhAD then bit 5 else 0) .|. (if mhCD then bit 4 else 0) .|. (fromIntegral mhRCode) -- | Encodes whether message is a query or a response -- -- @since 0.1.1.0 data QR = IsQuery | IsResponse deriving (Eq,Read,Show) ---------------------------------------------------------------------------- infixr 5 :.: -- | A DNS Label -- -- Must be non-empty and at most 63 octets. type Label = BS.ByteString -- | A @@ as per [RFC 1035, section 3.3](https://tools.ietf.org/html/rfc1035#section-3.3) expressed as list of 'Label's. -- -- See also 'Name' data Labels = !Label :.: !Labels | Root deriving (Read,Show,Eq,Ord) labelsToList :: Labels -> [Label] labelsToList (x :.: xs) = x : labelsToList xs labelsToList Root = [""] -- | Types that represent @@ as per [RFC 1035, section 3.3](https://tools.ietf.org/html/rfc1035#section-3.3) and can be converted to and from 'Labels'. class IsLabels s where toLabels :: s -> Maybe Labels fromLabels :: Labels -> s instance IsLabels Labels where fromLabels = id toLabels ls | all isLabelValid (init (labelsToList ls)) = Just ls | otherwise = Nothing where isLabelValid l = not (BS.null l) && BS.length l < 0x40 instance IsLabels Name where fromLabels = labels2name toLabels = name2labels toName :: IsLabels n => n -> Maybe Name toName = fmap fromLabels . toLabels name2labels :: Name -> Maybe Labels name2labels (Name n) | all (\l -> not (BS.null l) && BS.length l < 0x40) n' = Just $! foldr (:.:) Root n' | otherwise = Nothing where n' | BS.isSuffixOf "." n = BS.split 0x2e (BS.init n) | otherwise = BS.split 0x2e n labels2name :: Labels -> Name labels2name Root = Name "." labels2name ls = Name (BS.intercalate "." $ labelsToList ls) -- | IOW, a domain-name -- -- May contain pointers -- -- Can be resolved into a 'Labels' without label ptrs. data LabelsPtr = Label !Label !LabelsPtr -- ^ See RC2181: a label must be between 1-63 octets; can be arbitrary binary data | LPtr !Word16 | LNul deriving (Eq,Read,Show) labels2labelsPtr :: Labels -> LabelsPtr labels2labelsPtr Root = LNul labels2labelsPtr (l :.: rest) = Label l (labels2labelsPtr rest) instance Binary LabelsPtr where get = go [] where go acc = do l0 <- getLabel case l0 of Right bs | BS.null bs -> pure (foldr Label LNul $ reverse acc) | otherwise -> go (bs:acc) Left ofs -> pure (foldr Label (LPtr ofs) $ reverse acc) getLabel :: Get (Either Word16 BS.ByteString) getLabel = do len <- getWord8 if len >= 0x40 then do when (len .&. 0xc0 /= 0xc0) $ fail ("invalid length octet " ++ show len) ofs <- fromIntegral <$> getWord8 pure $ Left $ (fromIntegral (len .&. 0x3f) `shiftL` 8) .|. ofs else Right <$> getByteString (fromIntegral len) put LNul = putWord8 0 put (Label l next) | BS.length l < 1 || BS.length l >= 0x40 = error "put (Label {}): invalid label size" | otherwise = do putWord8 (fromIntegral (BS.length l)) putByteString l put next put (LPtr ofs) | ofs < 0x4000 = putWord16be (0xc000 .|. ofs) | otherwise = error "put (LPtr {}): invalid offset" -- | Compute serialised size of 'LabelsPtr' labelsSize :: LabelsPtr -> Word16 labelsSize = fromIntegral . go 0 where go n (LPtr _) = n+2 go n LNul = n+1 go n (Label bs rest) = go (n + 1 + BS.length bs) rest -- | Extract pointer-offset from 'LabelsPtr' (if it exists) labelsPtr :: LabelsPtr -> Maybe Word16 labelsPtr (Label _ ls) = labelsPtr ls labelsPtr LNul = Nothing labelsPtr (LPtr ofs) = Just ofs ---------------------------------------------------------------------------- instance Binary l => Binary (MsgQuestion l) where get = MsgQuestion <$> get <*> get <*> get put (MsgQuestion l qt cls) = put l >> put qt >> put cls instance Binary l => Binary (MsgRR l) where get = do rrName <- get rrType <- get rrClass <- get rrTTL <- get rrData <- getRData rrType pure (MsgRR {..}) put (MsgRR{..}) = do put rrName put (either id typeFromSym $ rdType rrData) put rrClass put rrTTL putRData rrData getRData :: Binary l => Type -> Get (RData l) getRData qt = do len <- fromIntegral <$> getWord16be let unknownRdata = RData qt <$> getByteString len getByteStringRest = consumeRestWith getByteString consumeRestWith act = do curofs <- fromIntegral <$> bytesRead act (len - curofs) isolate len $ case typeToSym qt of Nothing -> unknownRdata Just ts -> case ts of TypeA -> RDataA <$> get TypeAFSDB -> RDataAFSDB <$> getWord16be <*> get TypeNS -> RDataNS <$> get TypeCNAME -> RDataCNAME <$> get TypeSOA -> RDataSOA <$> get <*> get <*> getWord32be <*> getWord32be <*> getWord32be <*> getWord32be <*> getWord32be TypePTR -> RDataPTR <$> get TypeHINFO -> RDataHINFO <$> get <*> get TypeMX -> RDataMX <$> getWord16be <*> get TypeTXT -> RDataTXT <$> getUntilEmpty TypeSPF -> RDataSPF <$> getUntilEmpty TypeAAAA -> RDataAAAA <$> get TypeSRV -> RDataSRV <$> get TypeNAPTR -> RDataNAPTR <$> getWord16be -- order <*> getWord16be --preference <*> get -- flags <*> get -- services <*> get -- regexp <*> get -- replacement TypeRRSIG -> RDataRRSIG <$> getWord16be <*> getWord8 <*> getWord8 <*> getWord32be <*> getWord32be <*> getWord32be <*> getWord16be <*> get -- uncompressed <*> getByteStringRest TypeDNSKEY -> RDataDNSKEY <$> getWord16be <*> getWord8 <*> getWord8 <*> getByteString (len - 4) TypeDS -> RDataDS <$> getWord16be <*> getWord8 <*> getWord8 <*> getByteString (len - 4) TypeNSEC -> RDataNSEC <$> get <*> decodeNsecTypeMap TypeURI -> RDataURI <$> getWord16be -- prio <*> getWord16be -- weight <*> getByteString (len - 4) TypeSSHFP -> RDataSSHFP <$> getWord8 <*> getWord8 <*> getByteString (len - 2) TypeNSEC3PARAM -> RDataNSEC3PARAM <$> getWord8 <*> getWord8 <*> getWord16be <*> get -- salt TypeNSEC3 -> RDataNSEC3 <$> getWord8 <*> getWord8 <*> getWord16be <*> get -- salt <*> get -- next hashed owner name <*> decodeNsecTypeMap TypeCAA -> RDataCAA <$> getWord8 -- flags <*> get -- tag -- TODO: must be non-empty <*> getByteStringRest TypeOPT -> RDataOPT <$> getByteString len -- FIXME TypeANY -> unknownRdata -- shouldn't happen putRData :: Binary l => RData l -> Put putRData rd = do let rdata = runPut (putRData' rd) rdataLen = BSL.length rdata unless (rdataLen < 0x10000) $ error "rdata too large" putWord16be (fromIntegral rdataLen) putLazyByteString rdata putRData' :: Binary l => RData l -> Put putRData' rd = case rd of RDataA ip4 -> put ip4 RDataAAAA ip6 -> put ip6 RDataCNAME cname -> put cname RDataOPT d -> putByteString d RDataMX prio l -> putWord16be prio >> put l RDataSOA l1 l2 w1 w2 w3 w4 w5 -> do put l1 put l2 putWord32be w1 putWord32be w2 putWord32be w3 putWord32be w4 putWord32be w5 RDataPTR l -> put l RDataNS l -> put l RDataTXT ss -> mapM_ put ss RDataSPF ss -> mapM_ put ss RDataSRV srv -> put srv RDataAFSDB w l -> putWord16be w >> put l RDataHINFO s1 s2 -> put s1 >> put s2 RDataRRSIG w1 w2 w3 w4 w5 w6 w7 l s -> do putWord16be w1 putWord8 w2 putWord8 w3 putWord32be w4 putWord32be w5 putWord32be w6 putWord16be w7 put l putByteString s RDataDNSKEY w1 w2 w3 s -> do putWord16be w1 putWord8 w2 putWord8 w3 putByteString s RDataNSEC3PARAM w1 w2 w3 s -> do putWord8 w1 putWord8 w2 putWord16be w3 put s RDataNSEC3 w1 w2 w3 s1 s2 tm -> do putWord8 w1 putWord8 w2 putWord16be w3 put s1 put s2 encodeNsecTypeMap tm RDataCAA fl s1 s2 -> do putWord8 fl put s1 putByteString s2 RDataURI w1 w2 s -> do putWord16be w1 putWord16be w2 putByteString s RDataDS w1 w2 w3 s -> do putWord16be w1 putWord8 w2 putWord8 w3 putByteString s RDataNSEC l tm -> do put l encodeNsecTypeMap tm RDataNAPTR w1 w2 s1 s2 s3 l -> do putWord16be w1 putWord16be w2 put s1 put s2 put s3 put l RDataSSHFP w1 w2 s -> do putWord8 w1 putWord8 w2 putByteString s RData _ raw -> putByteString raw -- _ -> error ("putRData: " ++ show rd) instance Binary l => Binary (SRV l) where get = SRV <$> getWord16be <*> getWord16be <*> getWord16be <*> get put (SRV w1 w2 w3 l) = do putWord16be w1 putWord16be w2 putWord16be w3 put l {- NSEC type-bitmap example: A NS SOA TXT AAAA RRSIG NSEC DNSKEY '00 07 62 00 80 08 00 03 80' '00000000 00000111 01100010 00000000 10000000 00001000 00000000 00000011 10000000' Win=#0 len=7 ^{SOA} ^{TXT} ^{AAAA} ^{DNSKEY} ^^{A,NS} ^^{RRSIG,NSEC} -} decodeNsecTypeMap :: Get (Set Type) decodeNsecTypeMap = do r <- concat <$> untilEmptyWith decode1 -- TODO: enforce uniqueness pure (Set.fromList r) where -- decode single window decode1 = do wi <- getWord8 l <- getWord8 unless (0 < l && l <= 32) $ fail "invalid bitmap length" bmap <- getByteString (fromIntegral l) let winofs = (fromIntegral wi)*0x100 :: Int lst = [ Type (fromIntegral (winofs+j*8+7-i)) | (j,x) <- zip [0..] (BS.unpack bmap) , i <- [7,6..0] , testBit x i ] pure lst encodeNsecTypeMap :: Set Type -> Put encodeNsecTypeMap bmap = do when (Set.null bmap) $ error "invalid empty type-map" -- when (Set.member 0 bmap) $ fail "invalid TYPE0 set in type-map" -- TODO: verify that Meta-TYPES and QTYPEs aren't contained in bmap forM_ (Map.toList bmap') $ \(wi, tm) -> do putWord8 wi put (CharStr $ BS.pack tm) where bmap' = fmap set2bitmap . splitToBlocks $ Set.map (\(Type w)->w) bmap set2bitmap :: Set Word8 -> [Word8] set2bitmap = go 0 0 . Set.toList where go _ acc [] = if acc == 0 then [] else [acc] go j acc (i:is) | j' > j = acc : go (j+1) 0 (i:is) | j' == j = go j' (acc .|. bit (7 - fromIntegral i')) is | otherwise = error "set2bitmap: the impossible happened" where (j',i') = i `quotRem` 8 splitToBlocks :: Set Word16 -> Map Word8 (Set Word8) splitToBlocks js = Map.fromList $ map (\xs -> (fst $ head xs, Set.fromList (map snd xs))) js' where hi16 :: Word16 -> Word8 hi16 = fromIntegral . flip shiftR 8 lo16 :: Word16 -> Word8 lo16 = fromIntegral . (.&. 0xff) js' :: [[(Word8,Word8)]] js' = groupBy ((==) `on` fst) (map ((,) <$> hi16 <*> lo16) (Set.toList js)) -- | Resolves/parses label pointer used for label compressing -- -- Returns 'Nothing' on failure retrieveLabelPtr :: BS.ByteString -> Word16 -> Maybe LabelsPtr retrieveLabelPtr msg ofs = case decodeOrFail (fromStrict $ BS.drop (fromIntegral ofs) msg) of Left _ -> Nothing Right (_, _, v) -> Just v -- | Resolve set of label pointer offsets -- -- Invariants (/iff/ result is not 'Nothing') -- -- * all requested offsets will be contained in the result map -- -- * any offsets contained in the resolved 'Labels' will be part of -- the result map as well -- -- NB: No cycle detection is performed, nor are 'Labels' flattened retrieveLabelPtrs :: BS.ByteString -> Set Word16 -> Maybe (Map Word16 LabelsPtr) retrieveLabelPtrs msg ofss0 = go =<< lupPtrs1 ofss0 where go :: Map Word16 LabelsPtr -> Maybe (Map Word16 LabelsPtr) go m0 = do let missingOfss = Set.fromList (mapMaybe labelsPtr (toList m0)) Set.\\ Map.keysSet m0 if Set.null missingOfss then pure m0 -- fix-point reached else do m1 <- lupPtrs1 missingOfss go (Map.union m0 m1) -- single lookup step lupPtrs1 :: Set Word16 -> Maybe (Map Word16 LabelsPtr) lupPtrs1 ofss1 = Map.fromList . zip (toList ofss1) <$> traverse (retrieveLabelPtr msg) (toList ofss1) -- | Checks for maximum name length (255) and (therefore indirectly) cycle-checking resolveLabelPtr :: Map Word16 LabelsPtr -> LabelsPtr -> Maybe Labels resolveLabelPtr ofsmap = go 0 [] where go :: Int -> [BS.ByteString] -> LabelsPtr -> Maybe Labels go !n acc (Label x ls) = go (n+1+BS.length x) (x:acc) ls go n acc LNul | n < 255 = Just $! foldr (:.:) Root (reverse acc) | otherwise = Nothing -- length violation go n acc (LPtr ofs) | n < 255 = go n acc =<< lup ofs | otherwise = Nothing lup :: Word16 -> Maybe LabelsPtr lup ofs = Map.lookup ofs ofsmap {- Resource records -- https://en.wikipedia.org/wiki/List_of_DNS_record_types RFC 1035 A 1 a host address NS 2 an authoritative name server CNAME 5 the canonical name for an alias SOA 6 marks the start of a zone of authority PTR 12 a domain name pointer MX 15 mail exchange TXT 16 text strings RFC 3596 AAAA 28 IPv6 RFC 2782 SRV 33 Location of services ---- RFC3597 Handling of Unknown DNS Resource Record (RR) Types -} -- | Raw DNS record type code -- -- See also 'TypeSym' newtype Type = Type Word16 deriving (Eq,Ord,Read,Show) instance Binary Type where put (Type w) = putWord16be w get = Type <$> getWord16be -- | DNS @CLASS@ code as per [RFC 1035, section 3.2.4](https://tools.ietf.org/html/rfc1035#section-3.2.4) -- -- The most commonly used value is 'classIN'. newtype Class = Class Word16 deriving (Eq,Ord,Read,Show) -- | The 'Class' constant for @IN@ (Internet) classIN :: Class classIN = Class 1 instance Binary Class where put (Class w) = putWord16be w get = Class <$> getWord16be -- | Cache time-to-live expressed in seconds newtype TTL = TTL Int32 deriving (Eq,Ord,Read,Show) instance Binary TTL where put (TTL i) = putInt32be i get = TTL <$> getInt32be -- http://www.bind9.net/dns-parameters -- | Symbolic DNS record type data TypeSym = TypeA -- ^ [RFC 1035](https://tools.ietf.org/html/rfc1035) | TypeAAAA -- ^ [RFC 3596](https://tools.ietf.org/html/rfc3596) | TypeAFSDB -- ^ [RFC 1183](https://tools.ietf.org/html/rfc1183) | TypeANY -- ^ [RFC 1035](https://tools.ietf.org/html/rfc1035) (query) | TypeCAA -- ^ [RFC 6844](https://tools.ietf.org/html/rfc6844) | TypeCNAME -- ^ [RFC 1035](https://tools.ietf.org/html/rfc1035) | TypeDNSKEY -- ^ [RFC 4034](https://tools.ietf.org/html/rfc4034) | TypeDS -- ^ [RFC 4034](https://tools.ietf.org/html/rfc4034) | TypeHINFO -- ^ [RFC 1035](https://tools.ietf.org/html/rfc1035) | TypeMX -- ^ [RFC 1035](https://tools.ietf.org/html/rfc1035) | TypeNAPTR -- ^ [RFC 2915](https://tools.ietf.org/html/rfc2915) | TypeNS -- ^ [RFC 1035](https://tools.ietf.org/html/rfc1035) | TypeNSEC -- ^ [RFC 4034](https://tools.ietf.org/html/rfc4034) | TypeNSEC3 -- ^ [RFC 5155](https://tools.ietf.org/html/rfc5155) | TypeNSEC3PARAM -- ^ [RFC 5155](https://tools.ietf.org/html/rfc5155) | TypeOPT -- ^ [RFC 6891](https://tools.ietf.org/html/rfc6891) (meta) | TypePTR -- ^ [RFC 1035](https://tools.ietf.org/html/rfc1035) | TypeRRSIG -- ^ [RFC 4034](https://tools.ietf.org/html/rfc4034) | TypeSOA -- ^ [RFC 1035](https://tools.ietf.org/html/rfc1035) | TypeSPF -- ^ [RFC 4408](https://tools.ietf.org/html/rfc4408) | TypeSRV -- ^ [RFC 2782](https://tools.ietf.org/html/rfc2782) | TypeSSHFP -- ^ [RFC 4255](https://tools.ietf.org/html/rfc4255) | TypeTXT -- ^ [RFC 1035](https://tools.ietf.org/html/rfc1035) | TypeURI -- ^ [RFC 7553](https://tools.ietf.org/html/rfc7553) deriving (Eq,Ord,Enum,Bounded,Read,Show) -- | Convert symbolic 'TypeSym' to numeric 'Type' code typeFromSym :: TypeSym -> Type typeFromSym ts = Type $ case ts of TypeA -> 1 TypeNS -> 2 TypeCNAME -> 5 TypeSOA -> 6 TypePTR -> 12 TypeHINFO -> 13 TypeMX -> 15 TypeTXT -> 16 TypeAFSDB -> 18 TypeAAAA -> 28 TypeSRV -> 33 TypeNAPTR -> 35 TypeOPT -> 41 TypeDS -> 43 TypeSSHFP -> 44 TypeRRSIG -> 46 TypeNSEC -> 47 TypeDNSKEY -> 48 TypeNSEC3 -> 50 TypeNSEC3PARAM -> 51 TypeSPF -> 99 TypeANY -> 255 TypeURI -> 256 TypeCAA -> 257 -- | Convert 'Type' code to symbolic 'TypeSym' typeToSym :: Type -> Maybe TypeSym typeToSym (Type w) = case w of 1 -> Just TypeA 2 -> Just TypeNS 5 -> Just TypeCNAME 6 -> Just TypeSOA 12 -> Just TypePTR 13 -> Just TypeHINFO 15 -> Just TypeMX 16 -> Just TypeTXT 18 -> Just TypeAFSDB 28 -> Just TypeAAAA 33 -> Just TypeSRV 35 -> Just TypeNAPTR 41 -> Just TypeOPT 43 -> Just TypeDS 44 -> Just TypeSSHFP 46 -> Just TypeRRSIG 47 -> Just TypeNSEC 48 -> Just TypeDNSKEY 50 -> Just TypeNSEC3 51 -> Just TypeNSEC3PARAM 99 -> Just TypeSPF 255 -> Just TypeANY 256 -> Just TypeURI 257 -> Just TypeCAA _ -> Nothing -- | Extract the resource record type of a 'RData' object rdType :: RData l -> Either Type TypeSym rdType rd = case rd of RDataA {} -> Right TypeA RDataAAAA {} -> Right TypeAAAA RDataAFSDB {} -> Right TypeAFSDB RDataCAA {} -> Right TypeCAA RDataCNAME {} -> Right TypeCNAME RDataDNSKEY {} -> Right TypeDNSKEY RDataDS {} -> Right TypeDS RDataHINFO {} -> Right TypeHINFO RDataMX {} -> Right TypeMX RDataNAPTR {} -> Right TypeNAPTR RDataNS {} -> Right TypeNS RDataNSEC {} -> Right TypeNSEC RDataNSEC3 {} -> Right TypeNSEC3 RDataNSEC3PARAM {} -> Right TypeNSEC3PARAM RDataOPT {} -> Right TypeOPT RDataPTR {} -> Right TypePTR RDataRRSIG {} -> Right TypeRRSIG RDataSOA {} -> Right TypeSOA RDataSRV {} -> Right TypeSRV RDataTXT {} -> Right TypeTXT RDataSPF {} -> Right TypeSPF RDataURI {} -> Right TypeURI RDataSSHFP {} -> Right TypeSSHFP -- RData ty _ -> maybe (Left ty) Right (typeToSym ty) {- TODO: type-bitmap: A NS SOA TXT AAAA RRSIG NSEC DNSKEY '00 07 62 00 80 08 00 03 80' '00000000 00000111 01100010 00000000 10000000 00001000 00000000 00000011 10000000' Win=#0 len=7 ^{SOA} ^{TXT} ^{AAAA} ^{DNSKEY} ^^{A,NS} ^^{RRSIG,NSEC} " ".join(map("{:08b}".format,[0,7,98,0,128,8,0,3,128])) "\NUL\a\"\NUL\NUL\NUL\NUL\ETX\128" NS SOA RRSIG NSEC DNSKEY [ (winofs+j*8+7-i) | (j,x) <- zip [0..] xs, i <- [7,6..0], testBit x i ] -} -- helpers getUntilEmpty :: Binary a => Get [a] getUntilEmpty = untilEmptyWith get untilEmptyWith :: Get a -> Get [a] untilEmptyWith g = go [] where go acc = do e <- isEmpty if e then pure (reverse acc) else do v <- g go (v : acc) {- TODO: MsgRR{rrName = Name "stanford.edu.", rrClass = 1, rrTTL = 1799, rrData = RData 29 "\NUL\DC2\SYN\DC3\136\a\244\212e\200\252\194\NUL\152\150\128"}, https://en.wikipedia.org/wiki/LOC_record LOC record statdns.net. IN LOC 52 22 23.000 N 4 53 32.000 E -2.00m 0.00m 10000m 10m SW1A2AA.find.me.uk. 86399 IN LOC 51 30 12.748 N 0 7 39.611 W 0.00m 0.00m 0.00m 0.00m https://tools.ietf.org/html/rfc1876 -} resolv-0.2.0.2/testdata/msg/0000755000000000000000000000000007346545000013753 5ustar0000000000000000resolv-0.2.0.2/testdata/msg/01ca022e21220474ca6100f21d137b42.bin0000644000000000000000000000020707346545000020442 0ustar0000000000000000hackagehaskellorg j global-sslfastlynet>1ns1> hostmasterfastlycomx+fX :resolv-0.2.0.2/testdata/msg/01ca022e21220474ca6100f21d137b42.show0000644000000000000000000000126207346545000020654 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 50673, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 1, mhARCount = 0}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 15) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 185, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [MsgRR {rrName = Name "fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataSOA (Name "ns1.fastly.net.") (Name "hostmaster.fastly.com.") 2016110301 3600 600 604800 30}], msgAR = []}resolv-0.2.0.2/testdata/msg/033cb8330c8fba5fbb8bd48fd60fd6c3.bin0000644000000000000000000000016307346545000021320 0ustar0000000000000000^⁀_mirrorshackagehaskellorg 5. ANY obsoletedSee draft-ietf-dnsop-refuse-any)resolv-0.2.0.2/testdata/msg/033cb8330c8fba5fbb8bd48fd60fd6c3.show0000644000000000000000000000117107346545000021530 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 24290, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "_mirrors.hackage.haskell.org.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "_mirrors.hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 3637, rrData = RDataHINFO "ANY obsoleted" "See draft-ietf-dnsop-refuse-any"}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/03edcc6e3a8f04350e45b3c718df1cb5.bin0000644000000000000000000000020707346545000021151 0ustar0000000000000000hackagehaskellorg +j global-sslfastlynet>1ns1> hostmasterfastlycomx+fX :resolv-0.2.0.2/testdata/msg/03edcc6e3a8f04350e45b3c718df1cb5.show0000644000000000000000000000126207346545000021363 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 44451, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 1, mhARCount = 0}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 28) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [MsgRR {rrName = Name "fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataSOA (Name "ns1.fastly.net.") (Name "hostmaster.fastly.com.") 2016110301 3600 600 604800 30}], msgAR = []}resolv-0.2.0.2/testdata/msg/04e610d95902b1898ee6abce328905dd.bin0000644000000000000000000000022207346545000020747 0ustar0000000000000000&hackagehaskellorg j global-sslfastlynet>1ns1> hostmasterfastlycomx+fX :)resolv-0.2.0.2/testdata/msg/04e610d95902b1898ee6abce328905dd.show0000644000000000000000000000140507346545000021163 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 50214, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 1, mhARCount = 1}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 16) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 147, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [MsgRR {rrName = Name "fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataSOA (Name "ns1.fastly.net.") (Name "hostmaster.fastly.com.") 2016110301 3600 600 604800 30}], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/0c2248ed621e903da402b64d8dc12fbc.bin0000644000000000000000000000077707346545000021075 0ustar0000000000000000zicom2 Q=a gtld-serversnetnstld verisign-grs Y' :Q .QYaYjcom, |W?ڹ:]"Vm.PN["k)j8B%xoݻ OۮiXVrUo8 N JL$Ӕ6j̹EmZ>Y8Y\226\247\186\128\RS\232\250\DC18\1961ns1> hostmasterfastlycomx+fX :resolv-0.2.0.2/testdata/msg/0d629a3dca9212d2279cbe2ecc2d55f6.show0000644000000000000000000000126107346545000021366 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 3440, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 1, mhARCount = 0}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 16) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [MsgRR {rrName = Name "fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataSOA (Name "ns1.fastly.net.") (Name "hostmaster.fastly.com.") 2016110301 3600 600 604800 30}], msgAR = []}resolv-0.2.0.2/testdata/msg/0e0f94e6e23136bfdc62cc55340e8be9.bin0000644000000000000000000000040107346545000021101 0ustar00000000000000002www microsoftcom #www microsoftcom-c-2edgekeynet/ ~7www microsoftcom-c-2edgekeynet globalredirakadnsM^e1863dspb akamaiedgeM*1n0dspb hostmasterakamaiY)resolv-0.2.0.2/testdata/msg/0e0f94e6e23136bfdc62cc55340e8be9.show0000644000000000000000000000220307346545000021313 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 12953, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 3, mhNSCount = 1, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 6) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 698, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 3454, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")}], msgNS = [MsgRR {rrName = Name "dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 298, rrData = RDataSOA (Name "n0dspb.akamaiedge.net.") (Name "hostmaster.akamai.com.") 1494154527 1000 1000 1000 1800}], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/0e7ff621f4401fb81117418a1c52d921.bin0000644000000000000000000000037407346545000020573 0ustar0000000000000000www microsoftcom  M#www microsoftcom-c-2edgekeynet/As7www microsoftcom-c-2edgekeynet globalredirakadnsM^e1863dspb akamaiedgeM*&G*&G)resolv-0.2.0.2/testdata/msg/0e7ff621f4401fb81117418a1c52d921.show0000644000000000000000000000233007346545000020775 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 43806, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 5, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 28) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 2381, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 16755, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")},MsgRR {rrName = Name "e1863.dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 19, rrData = RDataAAAA (IPv6 0x2a0226f000dc019b 0x747)},MsgRR {rrName = Name "e1863.dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 19, rrData = RDataAAAA (IPv6 0x2a0226f000dc019c 0x747)}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/143084810512c54d03d9aff95385f4fb.bin0000644000000000000000000000010707346545000020604 0ustar0000000000000000-ԁwwwgooglecom "*P@ )resolv-0.2.0.2/testdata/msg/143084810512c54d03d9aff95385f4fb.show0000644000000000000000000000111107346545000021010 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 11732, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.google.com.") (Type 28) (Class 1)], msgAN = [MsgRR {rrName = Name "www.google.com.", rrClass = Class 1, rrTTL = TTL 34, rrData = RDataAAAA (IPv6 0x2a00145040070816 0x2004)}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 4096, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/1ab117bdea807e80ea976495b3735ee2.bin0000644000000000000000000000022207346545000021023 0ustar0000000000000000/hackagehaskellorg *j global-sslfastlynet>1ns1> hostmasterfastlycomx+fX :)resolv-0.2.0.2/testdata/msg/1ab117bdea807e80ea976495b3735ee2.show0000644000000000000000000000140507346545000021237 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 56623, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 1, mhARCount = 1}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 28) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 298, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [MsgRR {rrName = Name "fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataSOA (Name "ns1.fastly.net.") (Name "hostmaster.fastly.com.") 2016110301 3600 600 604800 30}], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/1c69194e8338f7fa7e1a2a773f8a930b.bin0000644000000000000000000000021207346545000020756 0ustar0000000000000000hackagehaskellorg j global-sslfastlynet1eD1e@D1eD1eDresolv-0.2.0.2/testdata/msg/1c69194e8338f7fa7e1a2a773f8a930b.show0000644000000000000000000000173507346545000021201 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 60411, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 5, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 1) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 185, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")},MsgRR {rrName = Name "j.global-ssl.fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataA (IPv4 0x97650044)},MsgRR {rrName = Name "j.global-ssl.fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataA (IPv4 0x97654044)},MsgRR {rrName = Name "j.global-ssl.fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataA (IPv4 0x97658044)},MsgRR {rrName = Name "j.global-ssl.fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataA (IPv4 0x9765c044)}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/1cb238d49c78d7f6ddde8283c3aba3e2.bin0000644000000000000000000000020207346545000021245 0ustar0000000000000000 cffc7fe006b75a404010528710841002ip6arpa  zghchaskellorg)resolv-0.2.0.2/testdata/msg/1cb238d49c78d7f6ddde8283c3aba3e2.show0000644000000000000000000000126607346545000021470 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 44554, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "c.f.f.c.7.f.e.0.0.6.b.7.5.a.4.0.4.0.1.0.5.2.8.7.1.0.8.4.1.0.0.2.ip6.arpa.") (Type 12) (Class 1)], msgAN = [MsgRR {rrName = Name "c.f.f.c.7.f.e.0.0.6.b.7.5.a.4.0.4.0.1.0.5.2.8.7.1.0.8.4.1.0.0.2.ip6.arpa.", rrClass = Class 1, rrTTL = TTL 634, rrData = RDataPTR (Name "ghc.haskell.org.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 4096, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/1e8891b091f7c929378814dbd1a5664b.bin0000644000000000000000000000157107346545000020632 0ustar0000000000000000ziapplecom / `; ; v=spf1 ip4:17.0.0.0/8 -all EDgoogle-site-verification=K-60dwNhM3vJSf7VklDuQvAynXRiw9yAdV10rpsWT4E A@adobe-idp-site-verification=6bd5e74c-a3a0-4781-b2e1-e95399b5e11c H nserver2 H nserver3 H nserver H nserver4 Hadns2 Hadns1 H nserver5 H nserver6 #H%d2seSIP+D2U_sip_udpapplecom #H%Z2seSIP+D2T_sip_tcpapplecom #H'22seSIPS+D2T_sips_tcpapplecom  nwk-aaemail-lapp03  nwk-aaemail-lapp02  nwk-aaemail-lapp01  ma1-aaemail-dr-lapp03  ma1-aaemail-dr-lapp02  ma1-aaemail-dr-lapp01 H1 gridmaster-ib hostmaster wϸ)Q)resolv-0.2.0.2/testdata/msg/1e8891b091f7c929378814dbd1a5664b.show0000644000000000000000000000703707346545000021045 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 24, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "apple.com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataA (IPv4 0x11ace02f)},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataA (IPv4 0x11b2603b)},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataA (IPv4 0x118ea03b)},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataTXT ["v=spf1 ip4:17.0.0.0/8 -all"]},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataTXT ["google-site-verification=K-60dwNhM3vJSf7VklDuQvAynXRiw9yAdV10rpsWT4E"]},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataTXT ["adobe-idp-site-verification=6bd5e74c-a3a0-4781-b2e1-e95399b5e11c"]},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNS (Name "nserver2.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNS (Name "nserver3.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNS (Name "nserver.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNS (Name "nserver4.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNS (Name "adns2.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNS (Name "adns1.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNS (Name "nserver5.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNS (Name "nserver6.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNAPTR 100 50 "se" "SIP+D2U" "" (Name "_sip._udp.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNAPTR 90 50 "se" "SIP+D2T" "" (Name "_sip._tcp.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataNAPTR 50 50 "se" "SIPS+D2T" "" (Name "_sips._tcp.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataMX 10 (Name "nwk-aaemail-lapp03.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataMX 10 (Name "nwk-aaemail-lapp02.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataMX 10 (Name "nwk-aaemail-lapp01.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataMX 10 (Name "ma1-aaemail-dr-lapp03.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataMX 10 (Name "ma1-aaemail-dr-lapp02.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 1311, rrData = RDataMX 10 (Name "ma1-aaemail-dr-lapp01.apple.com.")},MsgRR {rrName = Name "apple.com.", rrClass = Class 1, rrTTL = TTL 84111, rrData = RDataSOA (Name "gridmaster-ib.apple.com.") (Name "hostmaster.apple.com.") 2010101801 900 900 2016000 86500}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/22a422526ddc6ba8c53db10867eb1d3a.bin0000644000000000000000000000023507346545000021061 0ustar0000000000000000ziathenamitedu castormitedu polluxmitedu prillmitedu ; doutgoing)resolv-0.2.0.2/testdata/msg/22a422526ddc6ba8c53db10867eb1d3a.show0000644000000000000000000000167707346545000021304 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 4, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "athena.mit.edu.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "athena.mit.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataAFSDB 1 (Name "castor.mit.edu.")},MsgRR {rrName = Name "athena.mit.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataAFSDB 1 (Name "pollux.mit.edu.")},MsgRR {rrName = Name "athena.mit.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataAFSDB 1 (Name "prill.mit.edu.")},MsgRR {rrName = Name "athena.mit.edu.", rrClass = Class 1, rrTTL = TTL 59, rrData = RDataMX 100 (Name "outgoing.mit.edu.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/2c830af4026deb9597f60b55d17df3b1.bin0000644000000000000000000000143707346545000021031 0ustar0000000000000000۴ microsoftcom  h+  dz  `45    h(# QNns3msftnet QNns4 QNns1 QNns2  msnhst x9O X$  * microsoft-commail protectionoutlook  .-docusign=d5a3737c-c23c-4bd0-9095-d2ff621f2840  EDgoogle-site-verification=6P08Ow5E-8Q0m6vQ7FMAqAYIDprkVV8fUf_7hZ4Qvc8  v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com ip4:147.243.128.24 ip4:147.243.128.26 ip4:147.243.1.153 ip4:147.243.1.47 ip4:147.243.1.48 -all  YXFbUF6DbkE+Aw1/wi9xgDi8KVrIIZus5v8L6tbIQZkGrQ/rVQKJi8CjQbBtWtE64ey4NJJwj5J65PIggVYNabdQ==)resolv-0.2.0.2/testdata/msg/2c830af4026deb9597f60b55d17df3b1.show0000644000000000000000000000514707346545000021243 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 56244, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 15, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "microsoft.com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataA (IPv4 0x682bc3fb)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataA (IPv4 0x17647aaf)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataA (IPv4 0x17603435)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataA (IPv4 0xbfefd5c5)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataA (IPv4 0x6828d323)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 86350, rrData = RDataNS (Name "ns3.msft.net.")},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 86350, rrData = RDataNS (Name "ns4.msft.net.")},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 86350, rrData = RDataNS (Name "ns1.msft.net.")},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 86350, rrData = RDataNS (Name "ns2.msft.net.")},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataSOA (Name "ns1.msft.net.") (Name "msnhst.microsoft.com.") 2017050703 7200 600 2419200 3600},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataMX 10 (Name "microsoft-com.mail.protection.outlook.com.")},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataTXT ["docusign=d5a3737c-c23c-4bd0-9095-d2ff621f2840"]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataTXT ["google-site-verification=6P08Ow5E-8Q0m6vQ7FMAqAYIDprkVV8fUf_7hZ4Qvc8"]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataTXT ["v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com ip4:147.243.128.24 ip4:147.243.128.26 ip4:147.243.1.153 ip4:147.243.1.47 ip4:147.243.1.48 -all"]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3550, rrData = RDataTXT ["FbUF6DbkE+Aw1/wi9xgDi8KVrIIZus5v8L6tbIQZkGrQ/rVQKJi8CjQbBtWtE64ey4NJJwj5J65PIggVYNabdQ=="]}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/32abaa391355e2ccf584cdcd267c3b8f.bin0000644000000000000000000000373707346545000021251 0ustar0000000000000000ziw)@a root-serversnetnstld verisign-grscomx9L :Q.w)QYPY9SHߑڞx1(XX"#1L4;{b/yƞ܉y]sZ*w[y~gțq! t,J 5a&;&gO7'5Lag,8ʏ>RenvBR1-圞BI:ԜZ]vB2kƥ X=onH)ez37Qxs0Pl&wly)i)d)h)m)c)b)g))f)l)k)e)j.)YPY9S/%5D}Ƨ!1h|8̸ _'#YM?;z$M5ۻTx/syĿE؟&0gI$٫} w7 Qaa_,[4(s$ S=pMPnjSC[z>  X"sHgFEo['Qi֝.mSW:8]ucܩV6Hشh+vb2uu}TΣw]+hRfx8lyBgA`g(~]P(qIj0>Er'yEܴPl=In9TI uVoIs= ]?\?A+w5kG0ȩ UfB膻Lڄ~mza&U,m! p(TMˏ]т4:q ,"C_12QmQOB 5%UC=g#~)_R%顎.V4te,3V;s쀉n- s[Nhs 3#$|-:C8.K!b^W}{RA'n@8ќ.jdK(u!` I͞jC>RMb=0ȩ`eC\C}=(76Ŗ)[,[mf Q0=͞u Xc~wռx̊ 2$^ݢHʳkRk^j7ѫ#m7c=S~STP< +zbh-4XnWaƨDi1rƹzIg΂o5c_H 9/sO|ibָH5d~3n'{, ÜUɡp1.ȩ0Y"*YzJ\ZAk_;N!<;z~D!:9f+ D OvP.Z~MXԺ;nّ~Gؕsg >J4br~,O.,Kt6LΌ:;;' dx G%(]Q8Q_9PNGfo+N1ŢF|,Sg['u+Թbqf%Ԍ'cu ީSE/R3jVe' pj@Qca?)resolv-0.2.0.2/testdata/msg/32abaa391355e2ccf584cdcd267c3b8f.show0000644000000000000000000001632507346545000021456 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 21, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name ".") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 30505, rrData = RDataSOA (Name "a.root-servers.net.") (Name "nstld.verisign-grs.com.") 2017050700 1800 900 604800 86400},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 30505, rrData = RDataRRSIG 6 8 0 86400 1495256400 1494129600 14796 (Name ".") "S\154H\223\145\ACK\137\253\218\158x\ACK1\158\133(\170X\180\232\212\DC3\160\178\199\214\233\163\226\240\159\144X\"\149\SI\239#\179\140\&1L\EOT4\181\162;{b/\188\FS\210\207y\151\198\158\251\153\220\137\154\STX\226y]\134sZ\245\138\177*w[\149\b\218\ETB\249y\239~g\200\155q! t\251,\242\190\241J\ACK\v\SI5a&\DC3;\253\217\239\FS\174\233\177\ETX\137\211\232\189\b&\181gO\156\&7'\230\&5\223\198Lag\129\NAK,\219\&8\138\STX\235\202\143\170>RenvB\193\185\202R1-\a\182\229\156\158\bB\241\173I\162:\SYN\212\156Z\161\167\182]\DC1vB\169\SOH2\DC1\244\236\226k\DC1\153\198\165\201\f\195X\199\237\205\NAK\GS\203\208=\229\142o\159\189\252n\144\155\191\228\DLE\199\244H)e\135\239z\134\240\&3\ENQ7Q\243xs\149\&0\233Pl\164\216\NAK\196&\SO\180\219w\249\176\163\136l\176\180\235\157y\ETB"},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "i.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "d.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "h.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "m.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "c.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "b.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "g.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "a.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "f.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "l.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "k.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "e.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataNS (Name "j.root-servers.net.")},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 203305, rrData = RDataRRSIG 2 8 0 518400 1495256400 1494129600 14796 (Name ".") "S/%\226\DC25\201D\151\140\161\243\248\192\a}\198\167!1\233\141h\205\203\ENQ\EM|8\204\184\224\b\203\223\r_'\187\US#\205YM\220\202?\240;z\136$\166\EOT\249M\251\146\&5\143\219\187\DLE\154\185Tx/\181\199\240s\184\135\171\247y\196\191\168E\216\159&\220\252\132\240\&0\a\217gI$\217\171\218}\ACK\144\DC3\199\t\tw\236\&7\151\SO\nQ\246\181aa_\251\156,\218[4\192\EOT(\165\NUL\163\233s\179$\tS\FS\147\176\228\179=\DC2pMP\186\155\FS\205njSC\159\187\142\b\215[\244\224\253z>\201\t\223\SI\t\165\153X\"\223\232\186sHg\DC2\196F\160\167E\144\ACKo\232[\132'\245\158Q\163\192\218i\175\214\157\ESC.\137mS\143W:\DC1\250\&8\251\DC3\226]\244\163\190uc\249\215\220\169V6\155H\DLE\216\180\NULh+v\150\255b2\168u\226u\175\177}T\206\163w\249]+h\EMRfx\US8\179\176\166l\186\190\199\229\155yB\184g\173\211\ACKA\208`g\136\216(\171~]P\159\203(q\159\234I\242\183j\153\&0\208>E\172\227r'yE\220\180Pl\184=\ESCI\243\155\SOHn\142\226\194\&9TI\192\r\192\FSu\129\143V\184\178\166\NAK\177\FSoI\239\179\GSs=\n]\237?\\?A\132\198\ACK\184\248\150\ETX\230\128\DC4+w\241\196\&5\160\246\131kG"},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 116905, rrData = RDataDNSKEY 257 3 8 "\ETX\SOH\NUL\SOH\168\NUL \169Uf\186B\232\134\187\128L\218\132\228~\245m\189z\236a&\NAKU,\236\144m!\SYN\208\239 p(\197\NAKT\DC4M\254\175\231\199\203\143\NUL]\209\130\&4\DC3:\192q\n\129\CAN,\225\253\DC4\173\"\131\188\131C_\157\242\246\&12Q\147\SUB\ETBm\240\218Q\229OB\230\EOT\134\r\251\&5\149\128%\SIU\156\197C\196\255\213\FS\190=\232\207\208g\EM#\DEL\159\196~\231)\218\ACK\131_\164R\232%\233\161\142\188.\203\207V4te,3\207V\169\ETX;\205\245\217s\DC2\ETB\151\236\128\137\EOT\ESCn\ETX\161\183-\ns[\152N\ETXhs\t3#$\242|-\186\133\233\219\NAK\232:\SOHC8.\151K\ACK!\193\142b^\206\201\aW}\158{\173\233RA\168\RS\187\232\169\SOH\212\211'n@\177\DC4\192\162\230\252\&8\209\156.j\171\STXdK(\DC3\245u\252!`\RS\r\238I\205\158\233jC\DLE>RMb\135="},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 116905, rrData = RDataDNSKEY 256 3 8 "\ETX\SOH\NUL\SOH\146\236\190\243\223\253`\216\DC3\194\252eC\162\\C}=(76\172\170\187\197\150)[\184,\139\207[\190\216\209mf\ACK\t\171\160Q\a\199\&0=\204\205\158u\ACK\216 Xc\231~\172\199w\227\213\188x\159\204\138\193\r2\212\198$^\248\DC4\221\162\150\DELH\231\155\202\179\229\DC3\213k\136\132R\ETX\249\162\SI\251\210k\128^j7\241\ESC\181\209\171\FS\221#m7c\165\SOH=S\138\250~S\130T\149P< +\226z\181\SI\131b\160\DELh-4Xn\168\196\241\252\129\235\DC3\144\221W\230\DEL\174a\198\168D\158\254i\218\SI1\221\SYNr\178\236\198\185\205\195\211zI\176g\206\130\156o\175\&5c\DC3\235\b\142\231\166\DC2\SOH\168\135_H\210\n9\164/\178sO|i\167\251\237\161b\202\214\184\171\239H\186\&5\187\DC4\227\203\SId\225\203~\FS3n\140'{\NUL,\158\r\DLE\168\195\156U\201\161\151\168\159\DC3p\191\190\&1"},MsgRR {rrName = Name ".", rrClass = Class 1, rrTTL = TTL 116905, rrData = RDataRRSIG 48 8 0 172800 1495411200 1493596800 19036 (Name ".") "Z\249\197\192\196\231A\191\251\179\224k_;\158N!<\182\173;\ENQz~D\183\SOH\129!\213\203:9\161\149f\201+\rD\nO\216v\230\191\234\176P\142\166.\180Z~M\161\249X\245\227\233\188\EM\249\212\186\172;\197n\217\145\221~\165\180G\152\181\ACK\216\149\205sg\v\186>J4\177\195b\237r\NAK\241~\220,\239\134O.\158,\189\ETB\193\bK\131t6\SYNL\245\SYN\206\140:;\163\235;'\134\239\157 \225\138d\251x\fG\175%(\142\150\212]Q\202\229\254\&8Q_\SUB\NAK9\138\DC2PN\194Gf\132\180\162\154o\206\DC4\161+\137N1\197\162\238\148F\NUL\219|,\217S\179g\140\248[\234'\130u+\201\234\212\185\SYN\220bqf\a\193\DC4%\249\212\140'\242c\194\235u\RS\n\222\169\SUB\130S\141\142E/\248R\143\130\&3\222\222\200jVe'\npj\ETX@\SYN\150\DC3\135Q\222ca?\144\210"}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/36187d17453931a5d1563c69ed34fb52.bin0000644000000000000000000000261107346545000020534 0ustar0000000000000000?끀br Qadns Qb" Qc" Qd" Qe" Qf" .QYY M ?brC 4z fm`3j(/OXߑ-*Q^.:L7<7Ly,WPF͚ٝb @:ԄtcaK/[VQK%#珆!}50q]VɲʾfKs=ڴ®m.' /0800br" ./YY M ?br(OCET@Vem+߹f$sW#"`.ȵ|N+;-*. g< |@sI'f3S 8Gw]Ok1imŜOCƠ]V π@Um 0T_8iUoG^fch"4@۲ 'P>6_P&zs'_f%%{_ofks )V =3~+Kb_ڜ$rߟ:ɿH UKx'Ix_wsE`lzI}U\ͲJ}iLg 0T_ZgKɹ} ç#i("JހU@t;@TĘb=X}{a@9^Sh?we:y%b!}!X]S:*p)$ 5Nahd`Â$ÃH^ZX @Z>3y2m)(3zWsٙUjc'O $2u ,G(8^0Үb09Hwm@#(#l gBqlXv ̛Sm uZR}3l~^+.@-5v:%+t G6mc7M^GIZ88P؂J @ͱZڞc:)resolv-0.2.0.2/testdata/msg/36187d17453931a5d1563c69ed34fb52.show0000644000000000000000000001177707346545000020761 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 16363, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 14, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "br.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "a.dns.br.")},MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "b.dns.br.")},MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "c.dns.br.")},MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "d.dns.br.")},MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "e.dns.br.")},MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "f.dns.br.")},MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 2 5 1 172800 1494583200 1493978400 16335 (Name "br.") "C\r\136\233\&4\251z\214\ENQ\v\202fm\142\251`3\DEL\181\DLE\aj(/\242\STXO\243\208X\223\145\ETX\227-\146\153*Q\a\ESC\149^.:L\171\170\&7\227<7\221L\ETB\165\220y,\226\226WPF\RS\227\205\154\183\136\227\217\157\232b\177\189 \213@\b:\212\132\RS\240\236\187\240tca\153K/\193\225\132\ETB\166\NAK[VQ\253\175\166K\153\218\213\SUB%\249#\231\143\134\DC1\169\189!}5\CAN0\EOT\179\144q]V\201\178\STX\202\190\151f\163Ks\NUL\DLE\188\140=\SO\178\218\180\194\174\210m\222\223.\252'"},MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataNSEC (Name "0800.br.") (fromList [Type 2,Type 6,Type 46,Type 47,Type 48])},MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataRRSIG 47 5 1 900 1494583200 1493978400 16335 (Name "br.") "\154\183\204(\130\144\188O\252\209\225\ENQ\SO\252CET@Ve\203\253\139\140\199\243\206\238m+\223\185f\DLE\152$\ETB\159sW\246#\"\CAN\223`\196.\200\181\212\252|\199\ACKN\201\197+\ETB;-\179*.\US\140\f\164g<\r\163\247\173|\157@s\247I\170\ESC'\203f\US\201\204\&3\204S\169\164 \233\203\&8Gw\254\EOT\202\217\SUB\US\180\237\174]Ok\251\246\234\SUB1\242\167i\247\168\150\EOT\249\200\ETB\234\SOH\234\DELm\197\156\194O\223C\245\236\198\160\242]\NAKV\181\180\n\207\128\217@U\EM\180\132\220m\153"},MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 21599, rrData = RDataDNSKEY 257 3 5 "\ETX\SOH\NUL\SOH\194\&8\150i\159U\208o\243\225G\214^\132fc\232\144h\"\135\188\SUB\SO\245\254\161\136\240\&4\146@\250\236\188\219\178\138\r\168\151\EOT\141\228\SUB'P\221\EM\SUB>6\NAK_P&\145\202zs\191'\238_f\252\240\230\165\201\SO%%{_o\249\SYNf\SIk\228s\234\DC4\229\223\234\144\r)V\152 =3\148\217~\192+K\243\163\ETX\151\141\160\137\151b_\218\156\209$\161\227\231\216\235\215\235\160r\199\223\159\223:\232\201\191\SIH\t\174\151\153\162UK\253x\247\195'\SO\240Ix\243\131\DEL_ws\DC3\188E\243`\252\170\242l\SYN\202\bz\194\RSI}U\\\205\178\166\136J\237}\249i\174\135\169\DC2\248Lg"},MsgRR {rrName = Name "br.", rrClass = Class 1, rrTTL = TTL 21599, rrData = RDataDNSKEY 256 3 5 "\ETX\SOH\NUL\SOH\209Zg\144K\201\185\174\150\154}\225\223\n\244\180\239\151\195\167\150\173\217\a#i(\189\166\192\"\175J\222\128\227\251U\217\235@t;@T\180\184\196\152\160b\NUL\217\231\245=\aX\b\ETB}{\228a\138@9\137\170\183\184\SO^\222Sh?\236\ENQ\130\151we\ESC\214:y\195\236%\254\139\194b\221!\161}\132!\190X]\217S\228\239:*\RSp\144\ENQ\202\228)\247\GS\169$\v5\254Na\192\131\135\197\242\ESChd\193\151`\162\EOT\235\252\195\130\179$\195\131\175\184H\SI\162^\156\248Z\162\194\143\143\246X \170\149\141\v@\184Z\b\DC1\SO\131\199\239>\166\166\&3y\235\&2\237\208m)\254\182(\140\&3z\144Ws\US\137\217\153Ujc\249\162'\138O\n$\230\179\&2\179\221u\140\r,G\209(\250\&8\137^0\210\174\224\154b09\188Hw\214m\173@#\226\SI\240\224\186\241\255(\176\DC1#\176l\f\231gBq\224l\SIXv\133\n\204\155\130S\212m \213u\196\200Z\235R}\244\216\&3l~^\136\189\174\DEL+\237.@\250\205\202\238-\184\206\222\&5v\186\SUB:\165%\DC3\NUL+\207t\189\CAN\200\n\140\172G\180\183\&6\200mc7M^\223GI\170\137\252\135\205Z\191\169\&8\b8P\216\130J\228 \EOT\187@\252\205\177\194Z\ETB\RS\190\165\218\158c\176\135\SUB:\198"}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/3c973651b87bbb27d9249ef41ebd5c5e.bin0000644000000000000000000000015707346545000021125 0ustar0000000000000000ρ microsoftcom !`45 !dz !h+ !h(# !resolv-0.2.0.2/testdata/msg/3c973651b87bbb27d9249ef41ebd5c5e.show0000644000000000000000000000163607346545000021340 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 39631, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 5, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "microsoft.com.") (Type 1) (Class 1)], msgAN = [MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1057, rrData = RDataA (IPv4 0x17603435)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1057, rrData = RDataA (IPv4 0x17647aaf)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1057, rrData = RDataA (IPv4 0x682bc3fb)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1057, rrData = RDataA (IPv4 0x6828d323)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1057, rrData = RDataA (IPv4 0xbfefd5c5)}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/419ae4b8b8770bad65e3bdf3cbc84ad3.bin0000644000000000000000000000040107346545000021316 0ustar0000000000000000݁www microsoftcom  #www microsoftcom-c-2edgekeynet/ 7www microsoftcom-c-2edgekeynet globalredirakadnsM^ye1863dspb akamaiedgeM1n0dspb hostmasterakamaiY)resolv-0.2.0.2/testdata/msg/419ae4b8b8770bad65e3bdf3cbc84ad3.show0000644000000000000000000000220507346545000021532 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 60637, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 3, mhNSCount = 1, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 16) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 3580, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 3480, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 633, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")}], msgNS = [MsgRR {rrName = Name "dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 733, rrData = RDataSOA (Name "n0dspb.akamaiedge.net.") (Name "hostmaster.akamai.com.") 1494154963 1000 1000 1000 1800}], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/47b446859b6bd9bf4d1e7348a356a43c.bin0000644000000000000000000000013507346545000020761 0ustar0000000000000000www microsoftcom  d#www microsoftcom-c-2edgekeynet)resolv-0.2.0.2/testdata/msg/47b446859b6bd9bf4d1e7348a356a43c.show0000644000000000000000000000113507346545000021172 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 39296, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 3428, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/4e49a68a7cbd8f6c69eab194c49b9888.bin0000644000000000000000000000012607346545000021150 0ustar0000000000000000S: microsoftcom  c+ns1msftnetmsnhst x9O X$resolv-0.2.0.2/testdata/msg/4e49a68a7cbd8f6c69eab194c49b9888.show0000644000000000000000000000105107346545000021356 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 21306, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "microsoft.com.") (Type 6) (Class 1)], msgAN = [MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2915, rrData = RDataSOA (Name "ns1.msft.net.") (Name "msnhst.microsoft.com.") 2017050703 7200 600 2419200 3600}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/4e86d529a6401b74f84956cd72682c15.bin0000644000000000000000000000665507346545000020563 0ustar0000000000000000zi torprojectorg 3  .3Y@7OY o- torprojectorg>z(Jtƈ;<>Q 'ެ Eg$sR'=ؼӘmVܤxsj`RE{byITJV */-R>|W ɠK%Ne!}gӔb),ym7 iAT/Ԫq#F؅,0 )nevii hostmaster x9r*0 .+,YCWY2G torprojectorgcsnv*U2;`\&˅q@Uz (J<]UdJpA],-VѫRUB{cl#2+npYGFlb+)愪'Q2rS9е]j0>\",h|1,Ӯbo?\[b/ +&  &H + XV;( + A ! & +*rF + ZP .YBfY torprojectorg=KT6k{{9D v1~:8g!5J/&~P-%Y/Rɫe˵rHQsB$ʐa1U4e:WrU\y+U}e4#.CY$npN2R (=Vg]mok{w"P;HHf@u0l( .+,YCWY2G torprojectorgC%i_@/s8!H]}l8=TO9ñ"Tskp\_ut=`T)5-3=UJȩa+Tx2Ѝ#U{ q7؞;6l8eҖc]!>&QxT7%=c #HНt$(rI߽<ӡ5D .QQYC&cYf> torprojectorg$_5[iRĊPqqHְ@!VGnz.—!#x4AcZ 0ՌAKܢlzհ"$lF +[" %4w5  j'+‚ck{/p]hdHmtJd*cYqaQ:.E@2P0l=-( .YDY/ torprojectorg'^ Wɂq@3.;!<~q+M}Ũ#5_x\{"(؅NRURzPymʤ9dBq#UaG'KkuvXYn.~t|k4ٴ)Jo-$FbՖq 608ؐYj??,bw ."0YAtY CH torprojectorg8*?ьfh BU`\Ltxpzyh0W ’ /t1ʤ1 k^+z" X,8p;}-M 1 dO(d9TuQ;OM*{e˝1x#9菬ZSr7܎xT a(hYX 2`kaWWm#p()\V6Ȍ8ec ."0YAtY ꋜ torprojectorgbZIE(T ~@L| e[?ˊbu |/79>{1L/[RA=s,:ңvu͈;sTw_7jwtA#,Ɗ]|9'7/v.ѪRNV ίKLV)>m$|w[zcVVpe@)i[Cꍋ:zʍa agºAK?Mwd$׈t .0YAtY torprojectorgD&'~;mخ0[unl@gZTWc _[hF=0+_E%Aj uKzV['u}P@ $x~pb$_-Sʈy ,vW)CS+3o%CZR=HjAޛMaFF'g-N*>Pb{ u[rpa7¢-;>X疱3wX:z(|_)*!/U7W^o"Sc;ziюmdч; 0ڻH vW:Y|0rɓxh9{xvQEQ[,a<9s22,09x>R] 6E$k3&Pͣvi{,nhfLFkt~?vDģ3@![]PvԥpԯaΘ/>D,- 3}"Eݣc&87 ~1_r{25K=T).Ğ0iDh&025L}2 0eIo5d"\ _#%rS# ^ܲjNrho좵襩" x4 ua%5C1[n/8U&vC.V4`J~,c.ptIYI,OO8;*v$À 51}SpI~8@%;uS&G}@, Y 6#9e}n޿ʄƜkEv%^Ye}*(-qǙ ޿ѧ Qns5 Qns1 Qns3 Qns4 Qns2 +#F + +&H +Y- +V;( +RKe  eugeni )resolv-0.2.0.2/testdata/msg/4e86d529a6401b74f84956cd72682c15.show0000644000000000000000000002751207346545000020766 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 31, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "torproject.org.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 0, rrData = RDataNSEC3PARAM 1 0 16 "\185\181\DC2\245\247"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 0, rrData = RDataRRSIG 51 8 2 0 1497380687 1493921581 59061 (Name "torproject.org.") "\ESC\139\217>\186\USz(\219\227J\162\235\215t\166\171\198\136\243\146\202;\128\130<\152\232\SOH\167>\248Q \177\130'\NUL\231\199\199\222\172\fE\206g$sR'\205=\216\188\211\152\230\232\202mV\220\164\128xsj\129\138\173\ESC\217\SYN`\NUL\231RE{by\173\177\235\ACK\203IT\128\167\212\197J\174\205V\145\n\133\NUL\175 \187\200\232\b\200*/-\141R>|W\153\176 \242\201\160\SIK\SUB\146\160\227\242\146\181\STX%\129\195\b\209\210N\FS\GS\255\174e\FS\227!}\179g\211\148\188\159b),\149ym7\fi\155\163A\181T\169\154\196/\141\212\170\224\198\253q#F\DLE\ETX\141\217\216\133,0\163\183\207"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataSOA (Name "nevii.torproject.org.") (Name "hostmaster.torproject.org.") 2017050738 10800 3600 1814400 3601},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataRRSIG 28 8 2 300 1497627735 1494168135 59061 (Name "torproject.org.") "csn\208v\207*\137\134\225U\CAN\187\253\212\&2\176\223\250;\205`\DC2\b\\\a&\246\188\203\133\215q@U\DEL\247\170z\r\GS\172\193\243\177\CAN\183(\196J\253\192\240<\255\199\226]\252U\242\EMdJ\156\171p\245A\189\EOT\250]\253\220,\138\224-V\209\171R\158U\132B{\159cl\202#\ACK2\216\249+\213npY\EOT\133\129GFl\249b\GS\154\189\243+)\230\132\170\240'Q\167\&2r\210\SOH\DEL\196S\163\145\&9\136\208\181\NUL]\ACK\GS\142\140\164\241\253\134j\135\DEL\135\&0\159\145\US\ESC>\163\208\\\",\236\217h|\245\&1\DC4\179,\189\211\174bo\DEL?\\\235[\SI\229\176\DC3\244\190b\224/\129\ENQ\245"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x2620000006b0000b 0x1a1a000026e54810)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x2001085800020002 0xaabb0000563b1e28)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x200141b802020deb 0x21321fffe201426)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x2a0104f801721b46 0xabba00050001)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x200106b0005a5000 0x5)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 15 8 2 3600 1497532518 1494075620 59061 (Name "torproject.org.") "=KT\176\SYN\SYN\226\&6\213k\171{\174\213{\209\NUL\171\250\&9D\168\t\177\202v\249\143\&1\211~:8\220\214g!\134\167\250\175\136\&5J/\205\205&\231\DC4\161\252\144~\160\245\250\210\213\253\139\205\199\215\234P\248\b-\179\157%\138Y/R\201\171\189e\241\203\181rHQ\CANsB\248$\217\202\144a\237\&1U4\EOTe:W\201\SYNrU\\\EOTy\207\224\214\244+\255U}e\169\&4\243\SUB\192\CAN#.CY\DC2$\133np\170N\219\242\245\&2\163\154\134\232R\v(\171\ETB\242=\225V\196g\228\147\231\STX]\US\238m\175ok\238\160\CAN\172{w\ACK\"\173\ACK\240P\208;H\195Hf@u\228\&0l(\165\131"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataRRSIG 1 8 2 300 1497627735 1494168135 59061 (Name "torproject.org.") "C%\201\209\ai\SUB\SYN\150_\EOT\209@/\183\150\229s\156\&8\250\177\174\245!\154\USH\132\188\DC3\138]\167}l\182\&8=\166\233\DEL\153T\169\159O9\195\177\"T\130\146\223s\ACKkp\224\172\DC2\\\182\224\ESC\STX\DC1\202\224\243_u\204\246\159\146t=`\ENQ\UST\157)5-3\212=\151\250U\180J\EM\202\DC2\200\169a+\196T\226\228x2\NUL\208\141\189\178#\b\US\189\ACKU{\245\tq7\216\158\159\237;6\196l\193\146\178\178\&8\161\154e\166\210\150\183c]!\DEL\211>\US&\EOT\208\253Q\161x\FS\251\186\141T7\171%=\207c\ETX\t#H\208\157t\252\194$(rI\146\223\189<\SUB\211\161\&5\253D"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 2 8 2 86400 1497572963 1494115902 59061 (Name "torproject.org.") "$_\241\250\&5\246[\189\226iR\196\138PqqH\214\176@!\155\244V\195\224G\209n\234z\SYN.\151\SYN\187\194\151\167!#x\222\&4\163\169\170\232Ac\181Z\142\233\166\CAN\246\EOT\t\132\218\&0\213\140AK\220\162\237\248\144l\161z\RS\128\254\213\176\223\US\231\139\203\215\"\145\214$\192l\153F +[\175\201\"\136\189\r%\177\169\194\242\145\158\233\EM\202\NUL4w\238\168\SOH\a\DC15\n\160\221\DC2\rj'+\194\130c\ENQ\198k\249{/p]\181\159\202h\167\151\162dH\SOmt\242\176J\134\229\163d\203\222\214*\245\252cYqa\242Q\GS\192:\167\EM.\200E\171@\NAK2P\SUB0l\247=-(\f"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 6 8 2 3600 1497692652 1494233052 59061 (Name "torproject.org.") "'^\229\253\SO\135\241\160\t\195\229W\129\150\201\130\251q@\213\217\&3.;\243\218!\192\183<\217~q\ENQ+\ENQ\DC2M\230\135}\183\197\168#\143\&5\201\213_\SUBx\196\\{\218\"\234(\216\133\211\209\213N\237\USRURz\128P\NAK\253y\175\207\DC3\230m\202\164\222\&9\167\128\220\ESC\184\206dB\SI\152\189\133q#Ua\234\175\200G\FS\224\189'Kk\143\229u\136vX\SYNY\242n.~t\188\132\254|\244\150k4\217\180\181\b\167\DC2\181\174\150\139)Jo\145-\180\141$\225\DC1\245\a\154\GS\201Fb\213\150q\v\v\140\&608\158\216\144Yj\184\151\237?\192\190\EOT\162?,\249\STXb\166\187\254\199w\212"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 48 8 2 3600 1497462010 1494002410 17224 (Name "torproject.org.") "\143\&8*?\209\140\SI\160f\254h\203\v\219\226B\153\148U\SI\159\182\233\158\ETX\149\134\142\US\233`\\\138L\DLE\135txpz\148\198y\230\237\230h\228\&0W\179\n\186\ETB\194\146\DEL\r/\190\138t\188\&1\202\164\EM\RS\163\183\184\EM\DC1\CAN1\204\207 \rk\129\200^+z\" \134\SO\RSX\249\DC4\130\206\204,\158\158\130\159\176\&8\248p;}-M\139\r\133\152\&1\217\203\r\246\ACK\234\ETXd\246\247\135O\252\153\229(\250d9\159T\184u\202Q\195\SOH\146\176;\137OM\219\DEL\DEL\178\249\STX\b*{\186e\203\157\150\&1\194x\147#9\161\232\143\172\250\168\172\ENQZ\194\233S\EMr7\234\220\142\233\205x\132T\v \183a\158\225\214(\240\234\143h\217\230\DEL\229YX\213 \211\228\146\&2\ESC\187\229`\132\187k\231a\EM\193\129\DLEW\246Wm\231\197#\ESC\NAK\158p()\a\\V\164\152\164\252\158\&6\168\200\140\&8e\147c"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 48 8 2 3600 1497462010 1494002410 35740 (Name "torproject.org.") "bZI\194E(T\n\244~\160@\SYN\DC4L\164\167\251|\251\n\254\162\184\139\NULe\247\159\DEL\NUL[\180\152?\153\148\DC2\203\138\253\155\189\248\139\178b\192\149u \NAK\235\204\194\NUL\203\205|/7\130\&9\147>\139{1L\182/[\165\205R\233A\175=s\157\242,\230:\211\210\163\187v\DEL\160u\205\136\253\176\252\b\156\ENQ\158;\239\153sTw_7j\227w\129\194tA\161\DC2\227\182#\DEL\174\212\251\148\151\205\201,\167\SO\243\132\198\138]\161|\129\199\&9\160\151'\243\&7\226\150/\238\192v\159\129.\209\170RNV\233\238\212\254\255\158\v\251\137\206\175\180\214K\253L\144V)\179>m$\131\147\241|\242w[z\246cVV\216p\142e@)\232\253\146i\200\220\196\234[\230\203C\b\234\141\139\157:z\a\202\141\166a\ta\DC2g\188\239\196\194\186\220A\202\246K?M\217w\158\199\208d\216$\188\215\136t\175"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 48 8 2 3600 1497462010 1494002410 59061 (Name "torproject.org.") "D&\210'\154\164~\193;m\223\216\174\203\&0[\159\208\220\236\232\206u\DC3\ETXn\214l@\195\223g\252Z\254\147T\DELWc\246\129\185\141\v\133\147_\DC4\NAK\173\231[\195\216h\225\159F=\SO\188\230\&0\254\DC4+_E\155\174%A\ETX\229j\vuKz\ENQ\150\240\bV['\237u}P\255\155@\154\149\247\189\251\EOT\DLE\t\174\254\142$x\RS\245~p\248\139\172\240\254\249b\184\SYN$\228\DC4\ACK\168_\189-S\202\136\210\213\198\DC3y\169\144\SI\149\250\v,vW)C\187S+\147\183\SUB<\167c\SUB\188\CAN#\144\195\FS\182}\185\139N\199\251`2\139\140\255|V\238\158r\ESC\CAN\215\STXZ1\170\188R\f\228\221"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataDNSKEY 256 3 8 "\ETX\SOH\NUL\SOH\180\DC4Zp{K?\191H\186\210^\193\197\EOTV\232\145\161\187\238\v!\209\240\NAK\192\191}>3\214\246\145o\152\142%\134\208CZR\US\157\147=\DEL\128\238\NAKH\138jA\222\155M\164\153\225a\172F\135\189F\135'g-N\197*\131\171\b>P\128\138b{\r\157u\230[rpa7\ESC\194\162-\255;>\170X\231\150\177\&3w\255\173\226X\143:\196\241z\131\CAN\146(\US|_\154)*\b\152\184\ENQ\182\159\STX\CAN\178\183\238!\248\b\172\EOT/\166\144\151\DC1U\140\&7W\NUL\200\246\a\STX\174\225\175\249\130\149\SO^\250o\"\173\250\143\178S\220c\178\197;\EOTz\149\SUBi\181\211\254\209\142md\209\135\201;"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataDNSKEY 257 3 8 "\ETX\SOH\NUL\SOH\208\227\159\216\218\187\227H\b\208\244\f\139\EOT\159\210vW\RS\163:\SUB\180\179Y\255\178\156|0\160r\187\b\197\251\183\201\147xh\227\&9\202\194\209{\211xv\241\134Q\201EQ\151[\140,a\251<\DLE\211\230\196\&9s2\226\253\225\226\&2\173,09\192\217\bx\247>R\CAN\224] 6E$k3&\159P\205\163\248v\153\ETXi{\129,nhf\144LF\212\NUL\SUBkt~?\184\190\207v\228\165D\196\163\&3@\198\249![\224\148]\182Pv\212\165\238p\162\165\212\175a\167\206\152\138\130\130\176\167/>\164D\194,-\t\255\ETB\201\&3\143\230\DC4}\255\236\226\"E\224\138\150\168\SO\SOH\221\163\156c\EM&\148\&8\135\&7\v~\211\&1\ENQ\252_\234r\137{\184\239\174\233\&2\206\DC2\NAK5\RS\174\242\213K=T\194).\196\158\165\&0i\136Dh&\231\&0\SOH2\SYN\130\ACK\243\&5\131\198L\234}\188\242\&2\174\248\130\151"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataDNSKEY 257 3 8 "\ETX\SOH\NUL\SOH\201eI\ACKo\150\NUL\219\&5d\"\\\t\226_\210\DC3#%\169r\169S\ESC\132\EOT\181\SI\EOT\DC3#\t^\220\178jNrh\DC3\SYN\162o\ESC\236\162\181\196\232\165\169\209\243\"\v\NULx4\ru\175a%\169\&5\165\SUBC\177\&1\SUB[\DELn\SO\230/\137\&8\136\205U\195&\245vC.V4`\180J~,c\198\233\245\186\184.\146\151pt\198IYI\198,\248\252OO8\172;*\190v$\181\195\128\147\DC4\n\140\DLE\RS5\159\139\136\253\&1}S\254\SYN\218pI\225~8\234@\144%\131\191;u\133S&\154\130\221\220\213G}@\153\141\218,\161\190\t\172Y\v\211\218\245\&6#9e}\188\ENQ\164\134n\130\222\191\239\190\200\202\132\241\157\211\FS\227\147\DC2\198\156kE\SI\247\133\170\145\206\210v\148\EM\148%\200\229\192\220^\222Ye}\194*\237(\149-\171q\242\157\SUB\170\249\213\199\153\RS\v\137\222\191\183\180\209\167\183"},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns5.torproject.org.")},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns1.torproject.org.")},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns3.torproject.org.")},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns4.torproject.org.")},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns2.torproject.org.")},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x9a238446)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x8ac90ec5)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x26e54810)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x592deb15)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x563b1e28)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x52c34b65)},MsgRR {rrName = Name "torproject.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataMX 10 (Name "eugeni.torproject.org.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/53d71a9e72adf19251123b46f31769bb.bin0000644000000000000000000000020207346545000020655 0ustar0000000000000000cffc7fe006b75a404010528710841002ip6arpa ghchaskellorg)resolv-0.2.0.2/testdata/msg/53d71a9e72adf19251123b46f31769bb.show0000644000000000000000000000126607346545000021100 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 38143, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "c.f.f.c.7.f.e.0.0.6.b.7.5.a.4.0.4.0.1.0.5.2.8.7.1.0.8.4.1.0.0.2.ip6.arpa.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "c.f.f.c.7.f.e.0.0.6.b.7.5.a.4.0.4.0.1.0.5.2.8.7.1.0.8.4.1.0.0.2.ip6.arpa.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataPTR (Name "ghc.haskell.org.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/54f81230e47e2399d16a309e1227025e.bin0000644000000000000000000000013507346545000020441 0ustar0000000000000000 www microsoftcom  #www microsoftcom-c-2edgekeynet)resolv-0.2.0.2/testdata/msg/54f81230e47e2399d16a309e1227025e.show0000644000000000000000000000113307346545000020650 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 53536, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = True, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 5) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 2306, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 4096, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/552aec026306990d49a098d0a4608434.bin0000644000000000000000000000026307346545000020442 0ustar0000000000000000zi442233568144e164arpa #P$du E2U+pstn:tel!^(.*)$!tel:\1! #P9d uE2U+sip)!^\+441865332(.*)$!sip:\1@nominet.org.uk!)resolv-0.2.0.2/testdata/msg/552aec026306990d49a098d0a4608434.show0000644000000000000000000000152207346545000020651 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 2, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "4.4.2.2.3.3.5.6.8.1.4.4.e164.arpa.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "4.4.2.2.3.3.5.6.8.1.4.4.e164.arpa.", rrClass = Class 1, rrTTL = TTL 86046, rrData = RDataNAPTR 100 20 "u" "E2U+pstn:tel" "!^(.*)$!tel:\\1!" (Name ".")},MsgRR {rrName = Name "4.4.2.2.3.3.5.6.8.1.4.4.e164.arpa.", rrClass = Class 1, rrTTL = TTL 86046, rrData = RDataNAPTR 100 10 "u" "E2U+sip" "!^\\+441865332(.*)$!sip:\\1@nominet.org.uk!" (Name ".")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/57394dfc69f9e32c0c0cd9d4d2057d87.bin0000644000000000000000000000014007346545000021043 0ustar0000000000000000 microsoftcom  * microsoft-commail protectionoutlook)resolv-0.2.0.2/testdata/msg/57394dfc69f9e32c0c0cd9d4d2057d87.show0000644000000000000000000000113407346545000021257 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 45729, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "microsoft.com.") (Type 15) (Class 1)], msgAN = [MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3542, rrData = RDataMX 10 (Name "microsoft-com.mail.protection.outlook.com.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/579ff887c8ea54e4173934be5e85faec.bin0000644000000000000000000000102307346545000021143 0ustar00000000000000005 microsoftcom v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com ip4:147.243.128.24 ip4:147.243.128.26 ip4:147.243.1.153 ip4:147.243.1.47 ip4:147.243.1.48 -all EDgoogle-site-verification=6P08Ow5E-8Q0m6vQ7FMAqAYIDprkVV8fUf_7hZ4Qvc8 YXFbUF6DbkE+Aw1/wi9xgDi8KVrIIZus5v8L6tbIQZkGrQ/rVQKJi8CjQbBtWtE64ey4NJJwj5J65PIggVYNabdQ== .-docusign=d5a3737c-c23c-4bd0-9095-d2ff621f2840resolv-0.2.0.2/testdata/msg/579ff887c8ea54e4173934be5e85faec.show0000644000000000000000000000230407346545000021356 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 33589, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 4, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "microsoft.com.") (Type 16) (Class 1)], msgAN = [MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1524, rrData = RDataTXT ["v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com ip4:147.243.128.24 ip4:147.243.128.26 ip4:147.243.1.153 ip4:147.243.1.47 ip4:147.243.1.48 -all"]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1524, rrData = RDataTXT ["google-site-verification=6P08Ow5E-8Q0m6vQ7FMAqAYIDprkVV8fUf_7hZ4Qvc8"]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1524, rrData = RDataTXT ["FbUF6DbkE+Aw1/wi9xgDi8KVrIIZus5v8L6tbIQZkGrQ/rVQKJi8CjQbBtWtE64ey4NJJwj5J65PIggVYNabdQ=="]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1524, rrData = RDataTXT ["docusign=d5a3737c-c23c-4bd0-9095-d2ff621f2840"]}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/585424227713068d541ca07b184abd89.bin0000644000000000000000000000414507346545000020450 0ustar0000000000000000zi efforg W'ns1 hostmaster x9X : Wns6 W% Wns2 WLKv=spf1 mx ip4:173.239.79.202 include:spf1.eff.org include:spf2.eff.org -all W dummy1 W dummy2 W mail2 WE26 #WD < @@@@@@@@@@@@@@@@@@!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #WD < @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! #WD < @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!! #WD < @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!! #WD < @@@@@@@@@@@@@@@@@@!!!!!!!!! !!!!!!!!!!!!!!!! #WD < @@@@@@@@@@@@@@@@@@!!!!!!!!! !!!!!!!!!!!!!!! #WD < !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #WD" < !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #WD, < !!!!!!!!!!!!!!!!!!!!!!!!!! #WD6 < !!!!!!!!!!!!!!!!!! #WD@ < !!!!!!!!!!! #WDd < !!!!!!!!! #WDn < !!!!!!!!!!!!!!!!!! #WDx < !!!!!!!!!!!!!!!!!!!!!!!! #WD < !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #WD < !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #WD < !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #WD < @@@@@@@@@@@@@@@@@@!!!!!!!!! !!!!!!!!!!!!!! #WD < @@@@@@@@@@@@@@@@@@!!!!!!!!! !!!!!!!!!!!!!!!!!! #WD < @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! #WD < @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!! #WD < @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!! #WD < @@@@@@@@@@@@@@@@@@!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! )resolv-0.2.0.2/testdata/msg/585424227713068d541ca07b184abd89.show0000644000000000000000000001300707346545000020655 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 32, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "eff.org.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataSOA (Name "ns1.eff.org.") (Name "hostmaster.eff.org.") 2017042405 600 1800 604800 1800},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNS (Name "ns6.eff.org.")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNS (Name "ns1.eff.org.")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNS (Name "ns2.eff.org.")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataTXT ["v=spf1 mx ip4:173.239.79.202 include:spf1.eff.org include:spf2.eff.org -all"]},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataMX 10 (Name "dummy1.eff.org.")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataMX 15 (Name "dummy2.eff.org.")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataMX 5 (Name "mail2.eff.org.")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataA (IPv4 0x4532e836)},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 220 10 "" " @@@@@@@@@@@@@@@@@@!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 230 10 "" " @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 240 10 "" " @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 250 10 "" " @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 260 10 "" " @@@@@@@@@@@@@@@@@@!!!!!!!!! !!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 270 10 "" " @@@@@@@@@@@@@@@@@@!!!!!!!!! !!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 280 10 "" " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 290 10 "" " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 300 10 "" " !!!!!!!!!!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 310 10 "" " !!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 320 10 "" " !!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 100 10 "" " !!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 110 10 "" " !!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 120 10 "" " !!!!!!!!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 130 10 "" " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 140 10 "" " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 150 10 "" " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 160 10 "" " @@@@@@@@@@@@@@@@@@!!!!!!!!! !!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 170 10 "" " @@@@@@@@@@@@@@@@@@!!!!!!!!! !!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 180 10 "" " @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 190 10 "" " @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 200 10 "" " @@@@@@@!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!! " "" (Name ".")},MsgRR {rrName = Name "eff.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNAPTR 210 10 "" " @@@@@@@@@@@@@@@@@@!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " "" (Name ".")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/593b5d26fc010f953c99621a7d608c8d.bin0000644000000000000000000000040107346545000020673 0ustar0000000000000000Nwww microsoftcom   #www microsoftcom-c-2edgekeynet/N#7www microsoftcom-c-2edgekeynet globalredirakadnsM^e1863dspb akamaiedgeM1n0dspb hostmasterakamaiY)resolv-0.2.0.2/testdata/msg/593b5d26fc010f953c99621a7d608c8d.show0000644000000000000000000000220607346545000021110 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 19974, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 3, mhNSCount = 1, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 12) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 2950, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 20003, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")}], msgNS = [MsgRR {rrName = Name "dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 999, rrData = RDataSOA (Name "n0dspb.akamaiedge.net.") (Name "hostmaster.akamai.com.") 1494155229 1000 1000 1000 1800}], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/5fb7059d3cc96ae5eb05b06b7212bf76.bin0000644000000000000000000000012707346545000021104 0ustar0000000000000000wwwgooglecom +: +*P@ )resolv-0.2.0.2/testdata/msg/5fb7059d3cc96ae5eb05b06b7212bf76.show0000644000000000000000000000127107346545000021315 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 64444, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 2, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.google.com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "www.google.com.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0xd83ac9e4)},MsgRR {rrName = Name "www.google.com.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x2a00145040070816 0x2004)}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/60c1e26a578cd3007a592250dbad30be.bin0000644000000000000000000000022507346545000020775 0ustar0000000000000000Ձhackagehaskellorg j global-sslfastlynet1eD1e@D1eD1eD)resolv-0.2.0.2/testdata/msg/60c1e26a578cd3007a592250dbad30be.show0000644000000000000000000000206007346545000021204 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 61653, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 5, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 1) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 148, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")},MsgRR {rrName = Name "j.global-ssl.fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataA (IPv4 0x97650044)},MsgRR {rrName = Name "j.global-ssl.fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataA (IPv4 0x97654044)},MsgRR {rrName = Name "j.global-ssl.fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataA (IPv4 0x97658044)},MsgRR {rrName = Name "j.global-ssl.fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataA (IPv4 0x9765c044)}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/616d307f2f3407a001c0ed31ae01daf8.bin0000644000000000000000000000020707346545000020766 0ustar0000000000000000 hackagehaskellorg +j global-sslfastlynet>1ns1> hostmasterfastlycomx+fX :resolv-0.2.0.2/testdata/msg/616d307f2f3407a001c0ed31ae01daf8.show0000644000000000000000000000126007346545000021176 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 2963, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 1, mhARCount = 0}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 6) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [MsgRR {rrName = Name "fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataSOA (Name "ns1.fastly.net.") (Name "hostmaster.fastly.com.") 2016110301 3600 600 604800 30}], msgAR = []}resolv-0.2.0.2/testdata/msg/62a40ed1d8ac22ee6dcca1d8cc6e1733.bin0000644000000000000000000000036607346545000021313 0ustar0000000000000000i www microsoftcom  #www microsoftcom-c-2edgekeynet/A 7www microsoftcom-c-2edgekeynet globalredirakadnsM^e1863dspb akamaiedgeM1n0dspb hostmasterakamaiYEresolv-0.2.0.2/testdata/msg/62a40ed1d8ac22ee6dcca1d8cc6e1733.show0000644000000000000000000000206307346545000021517 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 26891, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 3, mhNSCount = 1, mhARCount = 0}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 16) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 2846, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 16652, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 785, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")}], msgNS = [MsgRR {rrName = Name "dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 999, rrData = RDataSOA (Name "n0dspb.akamaiedge.net.") (Name "hostmaster.akamai.com.") 1494155077 1000 1000 1000 1800}], msgAR = []}resolv-0.2.0.2/testdata/msg/62ce31cf45d2d095d384da330a6e6189.bin0000644000000000000000000000011207346545000020736 0ustar0000000000000000}hackagehaskellorg +j global-sslfastlynetresolv-0.2.0.2/testdata/msg/62ce31cf45d2d095d384da330a6e6189.show0000644000000000000000000000100307346545000021146 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 32245, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/68c43b7f9e85fb0b77552dc905fe6537.bin0000644000000000000000000000023707346545000021001 0ustar0000000000000000'X_mirrorshackagehaskellorg +e(0.urlbase=http://hackage.fpcomplete.com/;1.urlbase=http://objects-us-west-1.dream.io/hackage-mirror/resolv-0.2.0.2/testdata/msg/68c43b7f9e85fb0b77552dc905fe6537.show0000644000000000000000000000113307346545000021205 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 10072, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "_mirrors.hackage.haskell.org.") (Type 16) (Class 1)], msgAN = [MsgRR {rrName = Name "_mirrors.hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataTXT ["0.urlbase=http://hackage.fpcomplete.com/","1.urlbase=http://objects-us-west-1.dream.io/hackage-mirror/"]}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/6a0b07a53da450663489f3ff62fc7866.bin0000644000000000000000000000017407346545000020702 0ustar0000000000000000zi fencepostgnuorg + H04 +v ,+8I?`[f#)resolv-0.2.0.2/testdata/msg/6a0b07a53da450663489f3ff62fc7866.show0000644000000000000000000000154707346545000021117 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 3, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "fencepost.gnu.org.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "fencepost.gnu.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x2001483001340003 0xe)},MsgRR {rrName = Name "fencepost.gnu.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0xd076eb0a)},MsgRR {rrName = Name "fencepost.gnu.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataSSHFP 1 1 "\ETB8\CAN\146I?\149\218`\185\b[f\189\CAN\185\142\190\252#"}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/6b49a8a930ab6cdaf5ae91c822247811.bin0000644000000000000000000000040107346545000021014 0ustar0000000000000000Zwww microsoftcom  M#www microsoftcom-c-2edgekeynet/As7www microsoftcom-c-2edgekeynet globalredirakadnsM^e1863dspb akamaiedgeMN1n0dspb hostmasterakamaiYD)resolv-0.2.0.2/testdata/msg/6b49a8a930ab6cdaf5ae91c822247811.show0000644000000000000000000000220607346545000021231 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 23209, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 3, mhNSCount = 1, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 15) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 2381, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 16755, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")}], msgNS = [MsgRR {rrName = Name "dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 590, rrData = RDataSOA (Name "n0dspb.akamaiedge.net.") (Name "hostmaster.akamai.com.") 1494154820 1000 1000 1000 1800}], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/6f5b2b7d7ffa62ab3b6bce45ab3b0b51.bin0000644000000000000000000000103607346545000021363 0ustar0000000000000000 ~ microsoftcom EDgoogle-site-verification=6P08Ow5E-8Q0m6vQ7FMAqAYIDprkVV8fUf_7hZ4Qvc8 v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com ip4:147.243.128.24 ip4:147.243.128.26 ip4:147.243.1.153 ip4:147.243.1.47 ip4:147.243.1.48 -all .-docusign=d5a3737c-c23c-4bd0-9095-d2ff621f2840 YXFbUF6DbkE+Aw1/wi9xgDi8KVrIIZus5v8L6tbIQZkGrQ/rVQKJi8CjQbBtWtE64ey4NJJwj5J65PIggVYNabdQ==)resolv-0.2.0.2/testdata/msg/6f5b2b7d7ffa62ab3b6bce45ab3b0b51.show0000644000000000000000000000242607346545000021577 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 3198, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 4, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "microsoft.com.") (Type 16) (Class 1)], msgAN = [MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataTXT ["google-site-verification=6P08Ow5E-8Q0m6vQ7FMAqAYIDprkVV8fUf_7hZ4Qvc8"]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataTXT ["v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com ip4:147.243.128.24 ip4:147.243.128.26 ip4:147.243.1.153 ip4:147.243.1.47 ip4:147.243.1.48 -all"]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataTXT ["docusign=d5a3737c-c23c-4bd0-9095-d2ff621f2840"]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataTXT ["FbUF6DbkE+Aw1/wi9xgDi8KVrIIZus5v8L6tbIQZkGrQ/rVQKJi8CjQbBtWtE64ey4NJJwj5J65PIggVYNabdQ=="]}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/75330cfe5b4c19161dee2d9f578d8fb4.bin0000644000000000000000000000012207346545000021116 0ustar0000000000000000www microsoftcom  #www microsoftcom-c-2edgekeynetresolv-0.2.0.2/testdata/msg/75330cfe5b4c19161dee2d9f578d8fb4.show0000644000000000000000000000100607346545000021330 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 1192, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = True, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 5) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 3478, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/7a13aa49d0b498ee7b5073d1f1370273.bin0000644000000000000000000000045007346545000020655 0ustar0000000000000000聀 _xmpp-server_tcpgmailcom !%alt3 xmpp-serverlgooglecom !%alt4 xmpp-serverlgooglecom !  xmpp-serverlgooglecom !%alt2 xmpp-serverlgooglecom !%alt1 xmpp-serverlgooglecom)resolv-0.2.0.2/testdata/msg/7a13aa49d0b498ee7b5073d1f1370273.show0000644000000000000000000000300307346545000021062 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 51432, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 5, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "_xmpp-server._tcp.gmail.com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "_xmpp-server._tcp.gmail.com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSRV (SRV {srvPriority = 20, srvWeight = 0, srvPort = 5269, srvTarget = Name "alt3.xmpp-server.l.google.com."})},MsgRR {rrName = Name "_xmpp-server._tcp.gmail.com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSRV (SRV {srvPriority = 20, srvWeight = 0, srvPort = 5269, srvTarget = Name "alt4.xmpp-server.l.google.com."})},MsgRR {rrName = Name "_xmpp-server._tcp.gmail.com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSRV (SRV {srvPriority = 5, srvWeight = 0, srvPort = 5269, srvTarget = Name "xmpp-server.l.google.com."})},MsgRR {rrName = Name "_xmpp-server._tcp.gmail.com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSRV (SRV {srvPriority = 20, srvWeight = 0, srvPort = 5269, srvTarget = Name "alt2.xmpp-server.l.google.com."})},MsgRR {rrName = Name "_xmpp-server._tcp.gmail.com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSRV (SRV {srvPriority = 20, srvWeight = 0, srvPort = 5269, srvTarget = Name "alt1.xmpp-server.l.google.com."})}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/7c47e44ab3c0e8d6f3d5f4246dc4a0d2.bin0000644000000000000000000000013507346545000021157 0ustar0000000000000000a4488in-addrarpa Q google-public-dns-bgooglecom)resolv-0.2.0.2/testdata/msg/7c47e44ab3c0e8d6f3d5f4246dc4a0d2.show0000644000000000000000000000113707346545000021372 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 24972, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "4.4.8.8.in-addr.arpa.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "4.4.8.8.in-addr.arpa.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataPTR (Name "google-public-dns-b.google.com.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/7e3570aada9975cbb2285ed217fe5016.bin0000644000000000000000000000070707346545000021032 0ustar0000000000000000ziexamplecom+ +{e4mGz4ž, +${eB֙T-ƘϬ&YZ v4< +"Za> yb4.` +$aZd#5CoD։3b[I|j!E~ߖ +zhn- V#B +$z4Orr5 ˽|,Q]km .+QY9Y jcom-dQiEԣ۵kMJYOZpU$A6ccABr*] WQۀvPsg@=:d`ZavT@D@ srׁ]*g)resolv-0.2.0.2/testdata/msg/7e3570aada9975cbb2285ed217fe5016.show0000644000000000000000000000400207346545000021232 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 7, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "example.com.") (Type 43) (Class 1)], msgAN = [MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 64454, rrData = RDataDS 31589 8 1 "4\144\166\128mG\241z4\194\158,\232\SO\138\153\159\251\228\190"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 64454, rrData = RDataDS 31589 8 2 "\205\224\215B\214\153\138\165T\169-\137\SI\129\132\198\152\207\172\138&\250Y\135Z\153\f\ETX\229v4<"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 64454, rrData = RDataDS 43547 8 1 "\182\"Z\178\204a>\r\202yb\189\194\&4.\164\241\181`\131"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 64454, rrData = RDataDS 43547 8 2 "aZd#5C\246oD\214\137\&3b[\ETBI|\137\167\SO\133\142\215j!E\153~\223\150\169\CAN"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 64454, rrData = RDataDS 31406 8 1 "\CAN\153h\129\RSn\186\134-\214\194\t\247V#\216\217\237\145B"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 64454, rrData = RDataDS 31406 8 2 "\247\140\243\&4Or\DC3r5\t\142\203\189\b\148|,\144\SOH\199\246\160\133\161\DELQ\139]\143k\145m"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 64454, rrData = RDataRRSIG 43 8 2 86400 1494563200 1493954200 27302 (Name "com.") "\133-dQ\179\DC3\EMi\SI\166\249\140E\212\163\219\181k\SI\197\198M\231\EOTJ\203YO\189Z\151\170p\232U$\160\DC2A6\234c\233\DLE\183\150\200\SOH\177\164\DC2c\161\223\201AB\ENQr\241*\a\251]\tWQ\219\128vPs\145g@\153=\140\141\139\176\222\238:d\145\184\SYN`\ACK\156Z\SIavT@\ENQ\140\179D\200@ s\190\239r\237\160\213\225\FS\215\129\EM\252\ETX\135\ENQ]\225*\CAN\USg\240\242"}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/7f4d4de8e74e86e10d19f1f7428609e4.bin0000644000000000000000000000012207346545000020772 0ustar0000000000000000၀www microsoftcom &#www microsoftcom-c-2edgekeynetresolv-0.2.0.2/testdata/msg/7f4d4de8e74e86e10d19f1f7428609e4.show0000644000000000000000000000101207346545000021201 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 65505, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 1318, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/816c6c332941a20f07c497ee16609971.bin0000644000000000000000000000017207346545000020455 0ustar0000000000000000* microsoftcom h(#  `45 dz h+)resolv-0.2.0.2/testdata/msg/816c6c332941a20f07c497ee16609971.show0000644000000000000000000000175507346545000020675 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 10909, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 5, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "microsoft.com.") (Type 1) (Class 1)], msgAN = [MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 905, rrData = RDataA (IPv4 0x6828d323)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 905, rrData = RDataA (IPv4 0xbfefd5c5)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 905, rrData = RDataA (IPv4 0x17603435)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 905, rrData = RDataA (IPv4 0x17647aaf)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 905, rrData = RDataA (IPv4 0x682bc3fb)}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 4096, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/81c9cbfb364a8be0302bd0f4f600c3f6.bin0000644000000000000000000000013507346545000021145 0ustar0000000000000000y(4488in-addrarpa  Pu google-public-dns-bgooglecom)resolv-0.2.0.2/testdata/msg/81c9cbfb364a8be0302bd0f4f600c3f6.show0000644000000000000000000000113707346545000021360 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31016, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "4.4.8.8.in-addr.arpa.") (Type 12) (Class 1)], msgAN = [MsgRR {rrName = Name "4.4.8.8.in-addr.arpa.", rrClass = Class 1, rrTTL = TTL 86133, rrData = RDataPTR (Name "google-public-dns-b.google.com.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 4096, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/87aace8db5b6cb0b4b8c6194967f345b.bin0000644000000000000000000000124707346545000021202 0ustar0000000000000000zidebianorg2 W)denis hostmaster x9XX .WYEYE^debianorgG8Ru~ ?pdE7vA"x xy8B;IUFA2FqM:C/YXD،PUDM󹪥C,bp)<۞S+$C:@FƃzsO9@ jM>ajU b4Nuaй:} e<#?P#3.9 r0ju544ltcbavo1k3br87djp168tl58j 2WJ>Raˆ7/EI$vb ;.W2XYCY^debianorghm|BJ0oD ڲ|3WZajU\179\t\n\222\203b\DLE\253\224\&4\240\DC4N\146ua\148\208\185\183:}\156\148\153\171\ve\180\SI\229\193\140\232\SOH\182<#?P\STX\164#3\167.\163\143\&9\205"},MsgRR {rrName = Name "r0ju544ltcbavo1k3br87djp168tl58j.debian.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataNSEC3 1 0 16 "\SO\192\162\220\222" "\216>\235R\171\NAK\DC2a\203\134\DC37\173/E\197I$\182v" (fromList [Type 1,Type 2,Type 6,Type 15,Type 28,Type 35,Type 46,Type 48,Type 51,Type 65534])},MsgRR {rrName = Name "r0ju544ltcbavo1k3br87djp168tl58j.debian.org.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataRRSIG 50 8 3 600 1497614849 1494156550 53598 (Name "debian.org.") "\234\DLE\144\162h\RSm\188|\SOHB\233\215\RSJ0\DLEoD \218\178\131|\251\205\&3\246WZ\227\208 Dtw7+gT~{ڻ7\v\EMD\251\153t\193\155\145\133w7\EM+\133\244\129\159\SUBgT\DLE~{\229\218\187\&7<\173D\169\204\169f*\v\189\149_\161\210\207\173\169\166\DC3\168\DLE\n\141F\221\138f\131\214'\194\131\ACKc\r,e\180\bON\235'\132\r\198\160\242\v*\ETX\ETB\140x<\135\165\219\ETXk\NUL\221\&0\216/};\223\241\US\"*@\230\135`\216\222\207\234\217dfI;\238g5u+\DC1e\155\SO\195\239\229\196("},MsgRR {rrName = Name "_kerberos.fedoraproject.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNSEC (Name "_openpgpkey.fedoraproject.org.") (fromList [Type 16,Type 46,Type 47,Type 256])},MsgRR {rrName = Name "_kerberos.fedoraproject.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 47 5 3 86400 1496578736 1493986736 7725 (Name "fedoraproject.org.") "\144\141\152~q\a\220}#\DC2\228\150\140\166\209\152B\202\r\SO\184\ENQ\176\202\SOH\167\ETB==\\WN\ETB\193\242\159v\141\218\158\232\DC3O3x\130=\188P0\SI(\140\129R)\223fd\183qB\187_\GS\165\128wGR\228p\204\&7\DC3\173\186\130\221l\135\STX\STX\147\DLEV\243\159\&9\STX\138\209\DC4=\DLE\DC4\"/X\232Y\190\134\198\216k-\160q:p\206\189\176~ \154\242\226\&9m\232Z\214\129 \228_"},MsgRR {rrName = Name "_kerberos.fedoraproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataURI 10 1 "krb5srv:m:kkdcp:https://id.fedoraproject.org/KdcProxy/"},MsgRR {rrName = Name "_kerberos.fedoraproject.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataRRSIG 256 5 3 300 1496578736 1493986736 7725 (Name "fedoraproject.org.") "\ESCg\174[\230\138Y_\218\200\&2\SUB^\ETX\243\128\&6\180\131\136\245\181\158'\224%\204n~%\CANN=n2L\146\203h\198\153\SYN\175\221\243\EOT\171}\137\136\181\SO\191\226b\152\SI\222k{\132R\143\220U@\250\220~\235\154\159\186E\211&\187\174Jjjs\196H:%\248\EOT\235\194\182\139q\181\158\187\131\164bE\f:\210^f\NAK\147\ETXF\RS\203\&4\174\188\164\153\198\v\142kJ\188\136\173~\150\128_"}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/8e08e117a1d187bac5d498ffc2797f3a.bin0000644000000000000000000000011207346545000021115 0ustar0000000000000000A΅hackagehaskellorg j global-sslfastlynetresolv-0.2.0.2/testdata/msg/8e08e117a1d187bac5d498ffc2797f3a.show0000644000000000000000000000100007346545000021322 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 16846, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = True, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 5) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 185, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/9499a890bd65e85e74e68ca5631941f7.bin0000644000000000000000000000043507346545000020653 0ustar0000000000000000 _xmpp-server_tcpgmailcom !%alt3 xmpp-serverlgooglecom !%alt1 xmpp-serverlgooglecom !  xmpp-serverlgooglecom !%alt2 xmpp-serverlgooglecom !%alt4 xmpp-serverlgooglecomresolv-0.2.0.2/testdata/msg/9499a890bd65e85e74e68ca5631941f7.show0000644000000000000000000000266007346545000021065 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 48779, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 5, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "_xmpp-server._tcp.gmail.com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "_xmpp-server._tcp.gmail.com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSRV (SRV {srvPriority = 20, srvWeight = 0, srvPort = 5269, srvTarget = Name "alt3.xmpp-server.l.google.com."})},MsgRR {rrName = Name "_xmpp-server._tcp.gmail.com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSRV (SRV {srvPriority = 20, srvWeight = 0, srvPort = 5269, srvTarget = Name "alt1.xmpp-server.l.google.com."})},MsgRR {rrName = Name "_xmpp-server._tcp.gmail.com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSRV (SRV {srvPriority = 5, srvWeight = 0, srvPort = 5269, srvTarget = Name "xmpp-server.l.google.com."})},MsgRR {rrName = Name "_xmpp-server._tcp.gmail.com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSRV (SRV {srvPriority = 20, srvWeight = 0, srvPort = 5269, srvTarget = Name "alt2.xmpp-server.l.google.com."})},MsgRR {rrName = Name "_xmpp-server._tcp.gmail.com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSRV (SRV {srvPriority = 20, srvWeight = 0, srvPort = 5269, srvTarget = Name "alt4.xmpp-server.l.google.com."})}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/949ea24aecb8e40432f6af14ceb91ab6.bin0000644000000000000000000000175207346545000021245 0ustar0000000000000000zixfooorg dlbdq9qmbnmmf3v28ndnjkv55oc2f0ad2Q&әmWv\- &% .Q2QY-uYkorgvJjl(%G:eLVE$ߤE|MG2RAR'%ď Nx1=g|dB/Yn&fGϬ GKѬޑ^yi2A(ySH8 h9p7u7tr2u91d0v0ljs9l1gidnp90u3h2Q'әrOM`0X".Q2QY-Ykorg,o@$|rE{Ax#8|N{b[uB ,(E_L*^[+BOc=Rc$;oq*WJlX=KƶR&' ]BE vaittv1g2ies9s3920soaumh73klnhs52Q&ә% udZ~2 .Q2QY-uYkorggOUsgǢ ~=.x_ ʪݍܥѶ\N6\t11E)Hm,~e|Ehq]}%T@:)le%_Vu'C]l3a0org afilias-nstinfonocw :Q.Y-YkorgUb4 -ÐO2p /@[B Pb>W~^r\cwUGɡ8WUS~~!РοH{umPGE Y_Ë J-̂Ѣt\l)resolv-0.2.0.2/testdata/msg/949ea24aecb8e40432f6af14ceb91ab6.show0000644000000000000000000000666507346545000021465 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 3}, mhQDCount = 1, mhANCount = 0, mhNSCount = 8, mhARCount = 1}, msgQD = [MsgQuestion (Name "xfoo.org.") (Type 255) (Class 1)], msgAN = [], msgNS = [MsgRR {rrName = Name "dlbdq9qmbnmmf3v28ndnjkv55oc2f0ad.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNSEC3 1 1 1 "\211\153\234\171" "mW\246\229v\\-\n\185\148\151&\141\DEL\a\191\200\217%\231" (fromList [Type 2,Type 43,Type 46])},MsgRR {rrName = Name "dlbdq9qmbnmmf3v28ndnjkv55oc2f0ad.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 50 7 2 86400 1496158069 1494340069 3947 (Name "org.") "v\DLEJ\225\185\241\204\204jl\208\SYN\221(%\168G:eLV\241E\195$\239\CAN\223\164\195\CAN\246E|\179M\168G\159\&2RAR'\136\150\171\NUL\238%\ACK\EM\196\143\r\250\222N\244x\244\&1\255=g|dB/\239Y\b\205\255n\156\179&\140\ETBfG\232\207\172\f\ETB\251GK\201\DC4\180\242\209\172\149\218\210\222\145\161^yi\144\246\&2A\141\239\140\214(\190\EOT\251\165\211ySH\EOT8\232\ETX\DC2\222"},MsgRR {rrName = Name "h9p7u7tr2u91d0v0ljs9l1gidnp90u3h.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNSEC3 1 1 1 "\211\153\234\171" "\138r\173\236\198OM\228`0\228\DC2\224\214\210\237\b\215X\GS" (fromList [Type 2,Type 6,Type 46,Type 48,Type 51])},MsgRR {rrName = Name "h9p7u7tr2u91d0v0ljs9l1gidnp90u3h.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 50 7 2 86400 1496166683 1494348683 3947 (Name "org.") "\162,\189o\CAN@\248\170$\DEL\DC4|\128\134\232\SYN\246\230rE\153{A\173x\241#8|\231N\166\163{b\145[uB\f\148,\148(\242E_\192\225L\193\186*\232\154\US\173\174\133^\SUB[\139\208+B\CANOc=\144R\NAK\228\ACKc\237\171\159\181\b\SOH$;\138\216o\ETBq*\225\251\225\133WJlX\SOH=K\ETX\198\182\149\255\133\NAK\186R\213&\206\211\244\150\US\DC3'\f\186]\ETB\242BE\DLE\DC3"},MsgRR {rrName = Name "vaittv1g2ies9s3920soaumh73klnhs5.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNSEC3 1 1 1 "\211\153\234\171" "\250\166\180%\ru\DEL\210\250d\146Z\NAK\237\162~\250\190\&2\193" (fromList [Type 2,Type 43,Type 46])},MsgRR {rrName = Name "vaittv1g2ies9s3920soaumh73klnhs5.org.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 50 7 2 86400 1496158069 1494340069 3947 (Name "org.") "gO\136U\GSsg\199\162 \243\158\STX\190~\131\ETX\228=.\211x\191\SUB\194_\241\FS\158 \167\202\170\221\141\148\220\165\159\170\253\209\182\195\\\218N\132\&6\254\EM\158\200\251\\t\146\244\&1\254\241\DC41E\248\143)\227Hm\CAN,\EM\255\207~e|\163\200Eh\227q\ESC]}\169\188\229\139\245\166\206\221\254\145%\150\136\190T@\DC4:\SOH\249\177\148\189)le%_V\186u'\214\254C\245\NAK\212]l\237"},MsgRR {rrName = Name "org.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSOA (Name "a0.org.afilias-nst.info.") (Name "noc.afilias-nst.info.") 2012479177 1800 900 604800 86400},MsgRR {rrName = Name "org.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataRRSIG 6 7 1 900 1496166683 1494348683 3947 (Name "org.") "\DC1U\179b4\204\v\240\182\f-\170\206\195\144O2p\DC3\174\160\251\177\r\185\RS\199\RS\239\221/@\b\136\235\201[B\n\236P\SUBb\198>W\163~\221^\233\ETBr\\c\212\238\185\136w\USUG\128\201\161\&8\128WU\SUBS~~!\208\160\206\191H{u\158\192mP\253GE\128\155\nY\207\SOH_\DEL\163\208\195\139\US \225\253\182\237\231\244J\135-\ETB\204\130\187\217\209\162\161t\212\220\b\\l\ACK\NAK"}], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/98b101299888feb502f38066db59f0af.bin0000644000000000000000000000420407346545000020707 0ustar0000000000000000ziopensslorg (auth hostmaster x9y}Q :  secondarylpse  primaryg ns a    2mta 0l33}|Nk#*SW_-BRDL2ǪéoΫ]SufiKy>~D]}xO8H.X_)}Ƚ * /RPmk{ 0iݨ >ўfȋems#Vkd~9*M'R~g| + ܀1_%>dM;7ƭwTand.Å+ K77{Osԏlo+i/~IE0cK+q [o̐5}`n 6UHYS6Q`H|+Zz#!Cd6|kɈe\RK[ .0YVY ؤYopensslorg̻>9Wb %QpKgy 鹃اFO7_?}B$;ZR) #3cLjrEyu:{i~6Sp 1T??g .0YVY ؤopensslorgNC1IN(D֙ 9Q~D\134\192]\150}\168x\181O\250\214\ENQ8H\143\222.\221X\169_)\202\239\180\226}\200\189\252\v*\r/\210RP\145\184mk\197{"},MsgRR {rrName = Name "openssl.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataDNSKEY 257 3 8 "\ETX\SOH\NUL\SOH\188i\181\221\168\175\172\SOH\f>\207\ACK\209\158\184f\DC4\200\139e\164m\149\SO\140\240\198s\161\SYN#\ESC\151Vkd\145\193~\239\254\226\199\252\&9*\130M\DC1\157\148\132\169'\187\153\185R\139\186~\SYNg\153\239\128|\249\140\v+\194\a\r\220\128\150\&1\225\168_%\144\131\ETB>\DC3d\254\249M;\ESC\178\168\ETB7\216\193\198\173\165wT\EM\182and.\222\195\133\193\137\209+\130 K\243\&77\150\211\234{\NULO\153s\ACK\230\212\143\186\141\CANl\247o+\171\136\217i/\SOH\255~\181I\255\128\239E\176\&0\224\205\SOH\141cK+q\253\t\162[\131\225o\248\144\140\173\151\204\144\&5}`\246\ESCn\180\t6U\US\251HY\210\249S6\190Q\207\195`\220H\237\165|\193+\NAKZz#\237\172\166\138\139\EOT!\STXC\210d\198\238\238\RS6\188\SYN\189\US|k\DLE\131\201\136\233e\166\\R\171\231\215\ENQK\b\179\EM[\153\139"},MsgRR {rrName = Name "openssl.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 48 8 2 3600 1495160463 1493948580 22791 (Name "openssl.org.") "\SO\204\187\243\214>\239\247\172\187\164\216\194\&9W\140\163\148\211\223\a\212b\FS\DC1\t%QpK\185gy\247\158\n\140\227\182\233\185\131\216\167\160\158\240FO\240\218\195\242\179\&7\138_?}\202\EOT\237\206\218B\156\161$\DC2\241;\246ZR)\r#3cL\STXj\223\225\ENQ\206r\135E\191\195yu\243\228:{\131i\FS\SOH~6\236\230\177\ESCS\246p\254\f1T\170\140\236\EM\241\134\171??g\228\134\229\140"},MsgRR {rrName = Name "openssl.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 48 8 2 3600 1495160463 1493948580 44671 (Name "openssl.org.") "NC1\231I\223\244N\ENQ\252\206(D\NAK\251\160\214\153\v9\NAK\DLE\224\136\200Q\173\173\239q/6ӄ %:PbV:sk}'ʽňfjtnS!ńS\l0P9MpMoӭl m%gy:=H[M7I!g7?k#^~f`q .Q 0Y4Y  stanfordedu^( +}2L ~l?Ļ*}hnn-]kPk* +l}{͂ 5r;xd4^(>H۾KL4~ I6AD|d*O>8`h/K8&WPnieIWbs%ihVvƚ7+L 7؊/i_8h:^b2 +m,&̎*Df Nnͽ-27 .Q0Y4Y lstanfordedu)Û._h|4NYNXhܿ~f?I|o/ߝ#P14C7#v#i)aQ䷟CsI=cUaǑܥ+pяZxE a'bjÐnP+ .QY8Yulstanfordedux}_ j䆷0dXMտ!rK•t:xry)F:Kva-.#Rmzt}ޱ*Y$ -Q@O ؄&d F <<6weHI|Y"N` ;q .QY.GY[ustanfordeduBgfn0KDDž%g1:Xlk4 P׹3? hR ")vxb12D*v[ͷnEsH1VK& PĂ0RD^/d-ON4". .QY4DY lstanfordeduW@74|ܭk`Z\hQ' Hgܬ6$Eye|VPĤn_.SiID)*x3$lȍI*Y ۓuA ͻW .cY6Y-alstanfordedu4^MHrŊV:qڭ(:nǔ}YU h D itm`@B ܕo# xAf<95O:DGMC1MeVpX c .YrRX܏ustanfordedurŰ7g5^|K_Nm"3&tQTT;T@I< ZPT6o~e|^-i$Ѵ8bڮAP ¾pǣAFbSޫ GZvȃ .Y4DY lstanfordeduD.ǸsȋCN>v}>H3 Mi7GGzOЕHAB`G:=Zd:uiI]] Uw⿩|rHR s KjÄx/;q .Y3Y custanfordedu L/~VUp$[5* NF6ѧbxbL8v 9K4Odz; pߓSW4:ZTOF[xPJiC?@HSH .Y4DY lstanfordeduH\ c415jp#>\9f ST 66E:ʙ2J88⑁p>U80>[+zW|zJ_r}5J-s!aQy" .Y3Y custanfordeduj,X8˩`t,,QMqcuRYh+u?F.ZؠC":]6=ݩ=-'h@ Fl>UVCC_nu Yo$c}*/}N6 .Y4DY lstanfordedu&=/DZ8Ym,Ջż{+VH@ 27MrsӐqsY D"f;K} nzjבTYm#nfNM*(UQN}N7^H= .Y3Y custanfordeduwC]I`= ^guLJ޺M#@O3t C@t^u['\ B@$>GYsCB@v^ZaD@uuF .Y4DY lstanfordeduޜr}*o;i4ODf{=;4| Rh+uomRB9/Bw##hb:!Ȯպʫ.@62BXB2WF4++ :OƅP~ .Y2<$Y ?ustanfordeduGHڭ#`jR5 _}SçNR&b{.|,?] @bhҮ ;GB,J !.a! |Z/k% $rėo id\,0% .Y4DY lstanfordeduЍ)]A{Va[A):wSi.U W@/ޡc P\BǺxtqvS_.IU.?켑P/+|W%`)I}ؠ "A6:>U /* 003004139284stanfordedu b  ./Y4Y Rlstanfordeduir.jH&'v@PO~}_KqOF&C.RvNجT4b0ɺg4ARl_sԈ QBeYAI('&Ǝ< gQn(T7p^»J)resolv-0.2.0.2/testdata/msg/9a7df62eed45e26cd7e6e7a49585f90e.show0000644000000000000000000003535707346545000021451 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 41, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "stanford.edu.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataSOA (Name "argus.stanford.edu.") (Name "hostmaster.stanford.edu.") 2017078125 1200 600 1296000 1800},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataMX 10 (Name "mxa-00000d03.gslb.pphosted.com.")},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataMX 40 (Name "mx3.stanford.edu.")},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataMX 10 (Name "mxb-00000d03.gslb.pphosted.com.")},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataAAAA (IPv6 0x2607f6d00000925a 0xab43d7c8)},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataA (IPv4 0xab43d7c8)},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RData (Type 29) "\NUL\DC2\SYN\DC3\136\a\244\212e\200\252\194\NUL\152\150\128"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataTXT ["htBOpqv5il135Xfa09GRiVHY09Xb9qXNj6o5lAfj8gNoBvyyGu5rSb4gvSj9lCUwY1NF0+wL2BO1ZDIcGIpADQ=="]},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataTXT ["blitz=mu-0e24b17b-23dce65a-c0b14b75-e742cd66"]},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataTXT ["globalsign-domain-verification=IKP42b_14E6c1gUHTYKgXqj3o5aasL2hd9ECM1tSJP"]},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataTXT ["firebase=cartalab"]},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataTXT ["bwZknJMLNV1XuaJAyUmKlAFrdZo+p5yDlTNACmDUWhgtyihfJc8oWMnK7hWLreN+ozU3mX91yHHzZx0adJPPPg=="]},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataTXT ["v=spf1 ip4:171.67.219.64/27 ip4:171.67.224.0/28 ip4:171.67.214.160/27 ip4:171.67.216.240/28 ip4:171.67.43.137 ip4:171.67.43.138 ip4:171.67.43.139 ip4:171.67.43.140 ip4:171.67.43.141 ip4:204.63.229.192/28 ","include:_spf.google.com include:_spf.qualtrics.com include:icpbounce.com ip4:148.163.149.245 ip4:148.163.153.235 ?all"]},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataSPF ["v=spf1 ip4:171.67.219.64/27 ip4:171.67.224.0/28 ip4:171.67.214.160/27 ip4:171.67.216.240/28 ip4:171.67.43.137 ip4:171.67.43.138 ip4:171.67.43.139 ip4:171.67.43.140 ip4:171.67.43.141 ip4:204.63.229.192/28 ","include:_spf.google.com include:_spf.qualtrics.com include:icpbounce.com ip4:148.163.149.245 ip4:148.163.153.235 ?all"]},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns6.dnsmadeeasy.com.")},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns7.dnsmadeeasy.com.")},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "Atalante.stanford.edu.")},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "argus.stanford.edu.")},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns5.dnsmadeeasy.com.")},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "Avallone.stanford.edu.")},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataDNSKEY 256 3 8 "\ETX\SOH\NUL\SOH\208\219\164\196.\EOT\190\237\137\132\":x\215<@\250\220\DEL\193+636\240\&3\US,8^\221\242\160/\237\t\128\SI\184G?\196n'\SOH\FSe\190E&\187\242\ETX![\204\182T\129\167\157\229\&5G\152\174\187R\FS\229\167\185\188\227$k*\196\225\&1\180na\f!\157Cr\227\194\228@\171\237o\197\192\197%\SOHs\US\240\193\ENQr\146\201\SO\215\200A+3\157\227\179\"\146\178\186\EOTa\SO \NAK\246\211"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataDNSKEY 257 3 8 "\ETX\SOH\NUL\SOH\173@O\b\240=\NUL\212\ACK\rw\bh\189q\174\233\&3\bFfuH\238\129\DC3\247iI\245\161\139\208\195%B~\211\231\246[E\253\ENQ\229\237\146\183\201Z\157\253\143\159Z\201\ENQ^2\214\140Ih\b\252(\154<0\232a)\EOT\131?\228\223.a^\RSd\242\192\155Q\215\213\237?\129\t\247\231\150\176\206\201\208J\bf`5\149?j\211G\STX=\229~e\220:\142PG\202\139O5j\ETXy\GS\237\155\&8V=\235^\175TA.\214\236)\142\ACKZ\ESC\197\253\173\180\ETX\205JN\SO$sZ:\241!\186\160\164\163\231\131e\153\SI\193\237:\156R\USG\USfx=\228\224\169\249\&4$\222\ETBB\FSX\192\&7]G\194\156\232\159\188s\128S\DC3~4\220_\167\&1=\188\235\193)\197\240G\213c\131\166\227\SO\193\239\162e\169\132\&9\165(\232(\a\174RC\235\203\185V\224P\129\229\139\204\235\249\194n \190\141"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataDNSKEY 256 3 8 "\ETX\SOH\NUL\SOH\184Zg\220\194\177>q/6\211\132\n\r\189\201%:\252\205P\ACK\168\DC2bV\167\129:s\239\211k\235}'\211\202\189\197\136\179\189\239\176\210\211fj\237\173t\243n\EM\143\215\CAN\NAKS!\243\US\197\132S\\\182\182l\165\130\CAN\175\&0\176\196P9MpMo\232\166\211\173l\rm%gy:=H\168[M\163\&7I\194\252\SOH\225!g\140\&7\DC1\215?\253k#^\184~\157\SO\189f\250`q\232\225"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 48 8 2 172800 1496626622 1494031022 2746 (Name "stanford.edu.") "\141\184\176\RS^(\172\138\t+\a}2\149L\STX\EM\140\n~\181\227l\245?\183\231\216\196\187\NUL\SOH*\219}\212h\140\161nn\176-]\168\239\135kPk* \198+\199\211l\226}\b\135\207{\ENQ\205\130\228\239\v\181\224\242\192\&5r;\151x\172\236\a\171d\128\194\CAN4\129\174\254\146^\143(>\160H\224\219\190\DC3\230K\219\220L4~\153\r\212I\FS\180\&6\225\235A\136D|\FSd\128\145*\135O\129>\185\&8\191\200`\236\NULh/K8\DC1\185\183\US&\DC1\233\209\193WP\SUB\241\155\252\a\236nie\SOI\149\ACKWb\175s\EOT\181%\251\194ihV\143v\141\198\154\165\&7+L\160\v\216\DC27\216\138/i\239\172\a_8\191\FSh\132:\215^\222b\242\&2\t\190\ETX\203\237\133+\245\RSm\255,\SOH\203\239&\204\204\142*D\166f\b\151\167\255\246\208\FS\219\v\218N\128\198n\146\205\189\130\163-27"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 48 8 2 172800 1496626622 1494031022 27840 (Name "stanford.edu.") ")\195\155\185.\192_\148h\249|4\139\174\USNY\152N\128Xh\161\225\220\191\153~\171\GS\232\193\135f\133\212\SOH\202\204?I|\233\FS\229\203\211o/\155\201\223\157#P\141\&1\199\230\136\&4\SOHC\246\&7\ESC\161\158\249#v#i\184)aQ\166\133\228\183\159C\DC1sI\FS=c\166U\248a\199\145\220\165+\255p\245\254\209\143ZxE\207 \218\198\RS\173a\195'\143\168bj\195\144\167nP\205+\230"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 6 8 2 172800 1496846541 1494250941 27840 (Name "stanford.edu.") "\DC1x\SUB\204}_\150 \168j\228\134\183\b0\158dX\216\199M\213\191\181!rK\194\149\234\169t\SUB\215:\158xr\169\164\ETB\206\243\174\171y)\245\159\225F:\139Kva\247\177\NUL\EM\171-.#Rmzt\CAN}\222\177\147\138*Y\244$\141\t\254\179\226-Q@O\v\238\216\132\169&\208\202d\237 F\v<\178<\203\&6w\157e\211H\144\233I|Y\"N\209`\v;\159\163\225\SUBq\230\GS"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 2 8 2 172800 1496248135 1493654460 29979 (Name "stanford.edu.") "B\164\247\168\186g\148\174\254f\201n0KD\182\DEL\191\199\133%g\246\&1\128\147:\168\140Xl\224\169k\135\&4\f\DC1P\248\143\215\185\203\&3?\128\r\137h\168\FSR \160\")\202vx\ETBb\131\&12\234\235D\141\244\220\212*\224\188v[\205\183nE\193\216s\140\186\RSH\221\&1VK\224\200\US&\137\r\220P\242\196\130\&0\ETBRD^\137\231\186/\193d-\SUB\168\243O\177\CANN\EOT4\167\"\138."},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 2 8 2 172800 1496626500 1494031022 27840 (Name "stanford.edu.") "\182\190W\128@\251\&7\176\172\SOH4\235|\SI\220\173\227\GS\160\EMk`\FS\155\186Z\190\220\STX\DLE\\\234\253\251hQ'\165\SI\SYN\239\236\f\129\203\RS\247H\222g\198\220\172\&6\155\186$E\160y\163\160\DC2e\242|V\225P\196\164n_.S\177\237i\ETXI\170D\238)\222*x3\157\SOH\NAK$\245\FSl\200\141\GS\DC2\EM\134I\144\201\192\223*Y\212\n\219\147u\ACK\224\ETXA\DC1\206\234\217\253\181\152 \205\187W"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 99 8 2 1800 1496759744 1494166881 27840 (Name "stanford.edu.") "4\STX^MH\DC2\235r\162\169\210\197\138\244V\227:\224\196q\204\218\173(\DC3\232\172:n\252\132\148\190\166\209\239\187\223\199\148\179}\ETBYU\th\NAK\210\r\STX\194\DLED\148 i\147tm\161`\149\234@\212B\146\241\SUB\r\146\229\220\149\173o\190#\247\txA\226f\165\180<\225\&95\245\197\214\204\215O:\190D\147\201\SOH\132G\185MC\163\&1\208Me\203\205Vp\163\175X\224\253 \245c\NUL\247\251"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 16 8 2 1800 1495233106 1492638863 29979 (Name "stanford.edu.") "r\140\152\186\197\176\159\&7\217g\215\&5\155\252\ESC\230^|\195K\201_\181N\191\194\214\a\234m\SYN\"3\172&\b\218t\132\134Q\134\131T\229\253\193\240\250T\DC1;T\SOH@I\248\255\148\185<\v\149\177ZPT\NAK\225\171\&6\ao~e|\EM^\144\151\170-i$\209\180\206\&8b\154\218\174A\133\235P\t\183\194\190p\199\163A\245\DC3Fb\ENQS\221\249\DLE\230\222\171\148\196\vG\251Z\187v\200\131\166\249"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 16 8 2 1800 1496626500 1494031022 27840 (Name "stanford.edu.") "D.\199\184\154\154s\223\200\139\195CN\200>\238\246\156v\185}\210\201\250>\177H\SOH\DC43\166\242\f\155Mi\246\246\&7G\130\231GzO\242\251\246\208\149\227\154H\142A\SUBB`\NAKG:=\196\238Zd\248\220\232\224\164\230\SOH:\254\202u\206iI\143\238\209]]\t\197\214\240Uw\226\191\169\152|\169r\139\219\212\251H\US\DC1R\ts\223 \bK\159j\US\195\132\148x/\SUB\244\216\197;q\130\154"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 29 8 2 1800 1496560398 1493966179 29979 (Name "stanford.edu.") "\SO\230 L/\255~\184\245\220VUp\a\244\CAN$[\163\223\242\SI\ETB\180\&5\206*\v\170\223NF6\209\167\211b\DC2\133xbL8\137v\f\198\243\136\&9\192K\155\142\151\&4O\161d\229z;\f\DC3p\223\147\254\223S\133W4:\156Z\231TOF\129[xPJ\244\224\EOT\176\253i\255C\SUB?\158\168@HS\169\178\240\143H\192\242"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 29 8 2 1800 1496626500 1494031022 27840 (Name "stanford.edu.") "\158H\SUB\\\r\SI\246\208\205\252c\167\240\&41\DC3\224\&5j\240\180\215\237\b\STXp\144#>\254\196\\9\134f\251\235\tS\162T\f\129\196\&66E\182\141\202:\202\153\EM\ETB2\NAK\161J\181\222\&8\252\&8\226\145\129\135p>\US\185U\214\SOH8\246\NUL\192\ETX\DC1\252\&0>\232\203\SUB\176\248\DC1[+\219zW|z\161\238J_\132\br}\178\&5\SO\207\192\251\247\152J-s\221\224!\241aQ\153y\"\177\141\210"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 1 8 2 1800 1496560398 1493966179 29979 (Name "stanford.edu.") "\DLEj,X\RS\CAN\SOH\162\157\222\203\202\192\&8\DC2\203\169\ETB\236`t\186,,\250QMq\NULcu\214\223\211RY\189h\EOT\163+u?\154F\188\216.\206\212\223Z\216\160C\163\":\191\151]\145\&6\162=\221\169=-\207\235'h\167\129\200@\tFl>UV\242\NULCC\187_nu\154\219\GS\f\165\128\163\193\DLE\217\215\226\ACK\158\FSY\144\220o\183$\192\184\203\248c}*/\212}\182\148N\246\232\&6"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 1 8 2 1800 1496626500 1494031022 27840 (Name "stanford.edu.") "\142\DC4\180&=/\GS\178\241\186\b\199\177\246\154\&8Y\240m\DC2\160\226,\213\139\182\190\164\197\188{\ACK\163+\228V\DC4H\143@\f2\SOH7\158\198Mr\206s\150\211\144\216qs\217\DC1Y\n\209\203\STX\US\137\154D\235\191\"f\151;\ACKK}\156\188\240\173\fnz\224j\184\215\145\186\220TYm\CAN\249\165\202\247#nf\200N\SUBM*(\154\181UQN\234}\230\212\FSN7\230^\203H\133\255\143\140="},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 28 8 2 1800 1496560398 1493966179 29979 (Name "stanford.edu.") "w\255\145C\SI]\247\147\190\254\147I`\198=\198\242\f\GS\153\183^g\236\238\191\142uLJ\222\186\246M\139\234#@\184\176\253\145\176\DC3\192O\GS3t\229\215\252\tC\225@\244t^u\134['\137\222\206\251\NUL\NAK\\\f\176\151\188\206B@\210\214$>GY\139\152\DC2s\181CB\143@\ENQ\EOT\195v\232^\161\GS\166\236\176\242Z\183\183\134\153\168\255\SUB\235a\177D\136\197@\135u\137u\246\137F\196\222"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 28 8 2 1800 1496626500 1494031022 27840 (Name "stanford.edu.") "\DC4\225\222\156\174r\231}*\162\190\SOo\DC2\163\212;i4\137OD\ENQf\135\179\FS{=;4\189|\n\164Rh+\217uo\135\198mRB9\223\DC3/\236B\222\229w#\170\252\ACK\217\a\182#\232\DELhb:\ESC\244!\SYN\130\200\174\173\213\186\218\223\202\171\FS\158\194\STX\205\236.@62\130\153\147\159\DC2\208B\SYN\188\148XB\217\SOH\195\EM2WF\235\&4\180+\231+ :\ACKO\198\133\130\128P\214~"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 15 8 2 1800 1496464420 1493870399 29979 (Name "stanford.edu.") "GH\218\173#\197\DEL\175`\213\ETXj\202R\132\170\&5\t\EOT\155_\165\239}\182\195S\143\GS\195\167\191\SUBN\237R&\213\ETX\221\207\US\242\230b{\234.|\214\STX\161,\150\138\a\159\202?]\217\n\175@bh\245\210\174\140\v\174\207;G\177B\189,\239\b\GSJ\159\t!\176.\209a\217!\146\n|\165Z\214/\209\235k%\US $\220r\215\196\151\216\CAN\ETB\212o i\216d\193\\\169,\NAK0%\247"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 15 8 2 1800 1496626500 1494031022 27840 (Name "stanford.edu.") "\208\141)]A\138{\180Va\181\160[A\187\224\EOT):w\226\149Si\168\171.U\fW@\172\203\195/\136\156\222\161c\r\209\201P\\B\SOH\196\199\186\146\170x\188t\NAK\250q\246\210v\213S_\NAK.\141\RSIU\141.\202?\172\236\188\145\EOT\223P\251\DC3/+\SI\139|W\NAK%\DC2\162`)I\146\144\151\157\EOT\210\200\206}\225\NAK\216\160\147\STX\f\150\241\GS\224\DLE\162\173\"\STXA6:>\148\184U"},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataNSEC (Name "003004139284.stanford.edu.") (fromList [Type 1,Type 2,Type 6,Type 15,Type 16,Type 28,Type 29,Type 46,Type 47,Type 48,Type 99])},MsgRR {rrName = Name "stanford.edu.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 47 8 2 1800 1496624318 1494031186 27840 (Name "stanford.edu.") "i\218\201\NUL\144r\148\148.j\196H\245&'\138\152v\230@PO\226\188\192\210~\172}_K\168\150qO\198F&\128\220C\184\251\166\237\251\236\246.RvN\250\218\216\172T4\152b0\247\201\186\EOTg\185\&4ARl\153_s\242\212\136\f\135\191QBe\162Y\SIA\ENQ\173\233I\169\168(\SI\248\162\172'\130\197&\226\198\142<\ACK\vg\190Q\130\238n(T\235\&7\SOp^\194\187J\208\ENQ\181\151"}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/9ebe8abd73d2cb61ac54d631a0305b61.bin0000644000000000000000000000020707346545000021140 0ustar0000000000000000hackagehaskellorg  +j global-sslfastlynet>1ns1> hostmasterfastlycomx+fX :resolv-0.2.0.2/testdata/msg/9ebe8abd73d2cb61ac54d631a0305b61.show0000644000000000000000000000126207346545000021352 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 46337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 1, mhARCount = 0}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 12) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [MsgRR {rrName = Name "fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataSOA (Name "ns1.fastly.net.") (Name "hostmaster.fastly.com.") 2016110301 3600 600 604800 30}], msgAR = []}resolv-0.2.0.2/testdata/msg/a2878248b0e2a6d30b50bc67d11b5a21.bin0000644000000000000000000000277007346545000020723 0ustar0000000000000000Rcom =a gtld-serversnetnstld verisign-grs YPi :Q .YY@jcomyJ)iLVyYz6+ПV.u܉9Xv=nJ+3T'DqI4*gJFVԺ)Х>;VU%Ѵn+'CqBy:U%cKw f# c# g# i# l# m# e# h# ! b# j# k# d# .YY E jcomPazwHq2aU˟A!vn;nF=%"͌5{p1vb v˳(v"NXBs ~ \ 0Q/ej~-? ;m#0R]nTt_Vךe1[ 8'}$RG&@1';/wZ= {wTJ焘 0QWM~ ptI̐GIie\5.j6>z]Ux"#C6rB8-bY}' 9UԬ<}E_84ctl1s ̨ˍg_k.𝋰^M~wOHug{dlS[pC!Ph0WZX?Kh;gAxou|#`m=/!)E/LcR}Ir˖?)resolv-0.2.0.2/testdata/msg/a2878248b0e2a6d30b50bc67d11b5a21.show0000644000000000000000000001354307346545000021133 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 40786, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 21, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataSOA (Name "a.gtld-servers.net.") (Name "nstld.verisign-grs.com.") 1494175849 1800 900 604800 86400},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataRRSIG 6 8 1 900 1494780649 1494171649 27302 (Name "com.") "y\199J)\ESCiLV\160\DC1y\146Y\202z\249\&6+\239\208\159\143\178\194V.u\EOT\189\220\137\&9X\ENQ\156\DC1\189\218\237v\193=\169nJ+3\133\SUB\240\151T\200\251'\146\209\DC3\aD\DC4\248q\173\216I\234\180\&4*gJ\231\170FV\212\186)\156\219\208\165>;\249V\161U\144\237\185\192\252\138\167\253\NAK%\209\180\240\174n+\239\128'CqB\182y\175\171\171\DC2\192:U\216%c\227\160Kw\215"},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "f.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "c.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "g.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "i.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "l.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "m.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "e.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "h.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "a.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "b.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "j.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "k.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataNS (Name "d.gtld-servers.net.")},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 172799, rrData = RDataRRSIG 2 8 1 172800 1494650866 1494041866 27302 (Name "com.") "P\166\202az\187\155\175\227w\195\202Hq2\163\228aU\231\144\203\159\196A\146!\172\USvn\193;n\170F\185\255\170\169=\235\CAN\181%\199\"\243\254\159\205\140\158\&5{p1\ETB\231vb\fv\209\203\179\DC2\132(v\140\147\222\"\181NXB\202\246s\242\n~\163\r\SUB\EOT\\\DC2\179"},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataDNSKEY 256 3 8 "\SOH\ETX\171\205/\235\a\130\203\ESC\EM\135\129\189e\EOT\229j\140\133~-\233\161\248\221?\181\200 ;m\173#\153\SUB\196\&0\192R\198]n\177Tt\214\224_\184V\141\215\154\145\209\FS\238e\244\ETX1\157\128\STX\135\a\184[\244 \254\172\&8\225'\142}\DC4\174\161$\230\217\226\149RG\143\EOT&\130@1'\a;\197/\229w\255\141Z\NAK=\160\205\207\v{\ESC\CAN\NUL\139w\175\214T\237\150J\135\229\231\132\152\130\233\171"},MsgRR {rrName = Name "com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataDNSKEY 257 3 8 "\SOH\ETX\195\206WM\152\203\217\NAK~\rp\210t\184I\202\SO\SO\237\154\255\197\220\204\144GIi\ACKe\\5\203\b\179\245.\RSj\245\&6\139>z\140]Ux\"\EOT\194#\153\204\238C6\153r\GS\163B8-\EOT\249\185b\194\227\223\249Y}'\166\242\f\SI\135\&9\225U\EOT\149\212\172<\SOH\193}\SO\205\DC1E\EOT_\145\ACK\131\158\253\228\196\&8\238\141\180\&4\133\GSc\234\DC1\234tl\220\233\&1\138s \204\168\129\239\135\222\203\141\139\216g\160\228\EOT\244\179\208\199\247_\243\228\176k\210.\DC2\132\240\157\139\176^\144M\191~w\170\USO\247\251\137Hu\204g\186\187{d\FS\166l\188\156\138S\140[\174\131\230p\214\US\231C!P\169h0\198\195W\179\232\157\243ZX\b?\246Kh;gA\184\174\195xou\157\143\137\205\239|\213\254\192\248#`m\ESC\247=\219/!\225\217)\195\243E\ETX/\128\228\162\EOTL\178cR\RS}\228I\183r\203\150?\SUB\189"}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/a48ae1f9104e3732d4c5bd183c2a9ae1.bin0000644000000000000000000000012507346545000021066 0ustar0000000000000000;hackagehaskellorg j global-sslfastlynet)resolv-0.2.0.2/testdata/msg/a48ae1f9104e3732d4c5bd183c2a9ae1.show0000644000000000000000000000112607346545000021300 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 15280, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 147, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/b0beddd4cdcdc372a58192f3ae7264e2.bin0000644000000000000000000000142407346545000021316 0ustar0000000000000000 microsoftcom _dz _`45 _ _h(# _h+ Kns1msftnet Kns2 Kns3 Kns4 _{msnhst x9O X$ _* microsoft-commail protectionoutlook _EDgoogle-site-verification=6P08Ow5E-8Q0m6vQ7FMAqAYIDprkVV8fUf_7hZ4Qvc8 _v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com ip4:147.243.128.24 ip4:147.243.128.26 ip4:147.243.1.153 ip4:147.243.1.47 ip4:147.243.1.48 -all _YXFbUF6DbkE+Aw1/wi9xgDi8KVrIIZus5v8L6tbIQZkGrQ/rVQKJi8CjQbBtWtE64ey4NJJwj5J65PIggVYNabdQ== _.-docusign=d5a3737c-c23c-4bd0-9095-d2ff621f2840resolv-0.2.0.2/testdata/msg/b0beddd4cdcdc372a58192f3ae7264e2.show0000644000000000000000000000502307346545000021525 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 1949, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 15, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "microsoft.com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataA (IPv4 0x17647aaf)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataA (IPv4 0x17603435)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataA (IPv4 0xbfefd5c5)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataA (IPv4 0x6828d323)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataA (IPv4 0x682bc3fb)},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 84943, rrData = RDataNS (Name "ns1.msft.net.")},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 84943, rrData = RDataNS (Name "ns2.msft.net.")},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 84943, rrData = RDataNS (Name "ns3.msft.net.")},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 84943, rrData = RDataNS (Name "ns4.msft.net.")},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataSOA (Name "ns1.msft.net.") (Name "msnhst.microsoft.com.") 2017050703 7200 600 2419200 3600},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataMX 10 (Name "microsoft-com.mail.protection.outlook.com.")},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataTXT ["google-site-verification=6P08Ow5E-8Q0m6vQ7FMAqAYIDprkVV8fUf_7hZ4Qvc8"]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataTXT ["v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com ip4:147.243.128.24 ip4:147.243.128.26 ip4:147.243.1.153 ip4:147.243.1.47 ip4:147.243.1.48 -all"]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataTXT ["FbUF6DbkE+Aw1/wi9xgDi8KVrIIZus5v8L6tbIQZkGrQ/rVQKJi8CjQbBtWtE64ey4NJJwj5J65PIggVYNabdQ=="]},MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 2143, rrData = RDataTXT ["docusign=d5a3737c-c23c-4bd0-9095-d2ff621f2840"]}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/b127444bb25b3d2947e972d3ba0c26dd.bin0000644000000000000000000000015007346545000021006 0ustar0000000000000000뿁_mirrorshackagehaskellorg . ANY obsoletedSee draft-ietf-dnsop-refuse-anyresolv-0.2.0.2/testdata/msg/b127444bb25b3d2947e972d3ba0c26dd.show0000644000000000000000000000104607346545000021223 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 60351, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "_mirrors.hackage.haskell.org.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "_mirrors.hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 3788, rrData = RDataHINFO "ANY obsoleted" "See draft-ietf-dnsop-refuse-any"}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/b28818a1324f6e327b4c31668e0e6d9d.bin0000644000000000000000000000012507346545000020671 0ustar0000000000000000g microsoftcom M* microsoft-commail protectionoutlookresolv-0.2.0.2/testdata/msg/b28818a1324f6e327b4c31668e0e6d9d.show0000644000000000000000000000101107346545000021074 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 26541, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "microsoft.com.") (Type 15) (Class 1)], msgAN = [MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1357, rrData = RDataMX 10 (Name "microsoft-com.mail.protection.outlook.com.")}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/b473fc47ff9ce44a72ef479cbb6fa861.bin0000644000000000000000000000067707346545000021303 0ustar0000000000000000zigooglecom + + + +*P@  W2alt4aspmxl W { ;&ns4 dns-admin B2< Q W (alt3{ W alt1{ W alt2{ Qns3 Qns2 Qissuepki.goog Qissuesymantec.com $#v=spf1 include:_spf.google.com ~all Qns1 )resolv-0.2.0.2/testdata/msg/b473fc47ff9ce44a72ef479cbb6fa861.show0000644000000000000000000000475207346545000021511 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 17, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "google.com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0xacd913ce)},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0xacd913ce)},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0xacd913ce)},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x2a001450400e0808 0x200e)},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataMX 50 (Name "alt4.aspmx.l.google.com.")},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataMX 10 (Name "aspmx.l.google.com.")},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 59, rrData = RDataSOA (Name "ns4.google.com.") (Name "dns-admin.google.com.") 155321650 900 900 1800 60},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns4.google.com.")},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataMX 40 (Name "alt3.aspmx.l.google.com.")},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataMX 20 (Name "alt1.aspmx.l.google.com.")},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataMX 30 (Name "alt2.aspmx.l.google.com.")},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns3.google.com.")},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns2.google.com.")},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataCAA 0 "issue" "pki.goog"},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataCAA 0 "issue" "symantec.com"},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataTXT ["v=spf1 include:_spf.google.com ~all"]},MsgRR {rrName = Name "google.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "ns1.google.com.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/b64d9926db52e425c8747c143b9266c1.bin0000644000000000000000000000012507346545000020616 0ustar0000000000000000hackagehaskellorg j global-sslfastlynet)resolv-0.2.0.2/testdata/msg/b64d9926db52e425c8747c143b9266c1.show0000644000000000000000000000112407346545000021026 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 60952, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = True, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 5) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 148, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 4096, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/b6d7e514db902da80c8a8e124673139b.bin0000644000000000000000000000016407346545000020744 0ustar0000000000000000ݻwww?thelongestdomainnameintheworldandthensomeandthensomemoreandmorecom &^~*2)resolv-0.2.0.2/testdata/msg/b6d7e514db902da80c8a8e124673139b.show0000644000000000000000000000125307346545000021154 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 56763, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com.") (Type 1) (Class 1)], msgAN = [MsgRR {rrName = Name "www.thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com.", rrClass = Class 1, rrTTL = TTL 35622, rrData = RDataA (IPv4 0x5e7e2a32)}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 4096, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/b6e25f429f7bfb60a8a3b473e8d2b6a2.bin0000644000000000000000000000650707346545000021175 0ustar0000000000000000zidebianorg 3  .3YCY^debianorg Ee Ub)grⲈ~ *Yc0fMOQqd.w -nGߟPTpٓГNܧcԊdImĐGDd?]V| [n/ƖG [q`P"n{*S\Z{akb~؅~*IP򭜎ZOX宝\~r|CٛbU>-u )denis hostmaster x9XX .ppY5i:Z]P/ƵN댋IM{R&8 .ppY5ajU b4Nuaй:} e<#?P#3.9 .YC0Y^debianorg5v=~4B`e޾L\/a*:c` lfSLz $#>+5L&BA6 ~= *m`y. W ^ 0p,h*,)wI(iVnnMu_nis/? Dߋ&֥y 0z9(">'X?tr5/ˌD4 KfwG^SBW4M 0p+2K Mةp }rWZ7^0 zіxVe#WޝKmJ#4 A\VںLB#-Pb/C +Y +Ӧ + p dnsnode psec1rcode0net psec2)resolv-0.2.0.2/testdata/msg/b6e25f429f7bfb60a8a3b473e8d2b6a2.show0000644000000000000000000002643107346545000021403 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 31, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "debian.org.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 0, rrData = RDataNSEC3PARAM 1 0 16 "\SO\192\162\220\222"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 0, rrData = RDataRRSIG 51 8 2 0 1497614849 1494156550 53598 (Name "debian.org.") "\186\DLE\205\fEe\vUb)\EM\156\201g\236\165r\226\178\136\STX~\US\v*Y\150\196\253\217c\236\&0fMO\157\184Q\227\170\CAN\190q\190\252\241\220d\230\249\175.\EOTw\f-n\164G\223\159P\149T\152p\217\147\238\178\208\147N\220\167c\224\212\138dI\169\217m\167\187\196\144\206G\224D\198\205d?]V|\134\226\r[n/\198\150\228G\198\v[q\FS\221`\223\RSP\218\DC4\142\138\"n\167\176{*S\248\\\129\141Z{a\152k\163b~\216\133~*\175\235IP\242\173\156\142ZOX\229\174\157\187\\\224\212\216~r\DEL\158|\135\NAK\135\130\233C\217\155bU\128\DEL>\177\150\161-u\177\227\191"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataSOA (Name "denis.debian.org.") (Name "hostmaster.debian.org.") 2017050804 1800 600 1814400 600},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 28799, rrData = RDataRRSIG 2 8 2 28800 1496661232 1493203448 53598 (Name "debian.org.") "\203\GS`3I\r\228\EM{\ACKZ\SUB\233\185\&2\154\159!\194\183\222}5\143Sz\239\240\186\240\129\251R\147\215\251\167 @\DC1H\227\207\140\215y\236\202\208+\NULi\168q\183\NAK\r\DEL\159~x\GS\137\150&\NAKt\140\a2\GS4\SO:\174s\DC3\DLEHO_\v\147.x{8\156\214\SO\128\200\163\158\149/\175\190[B\149\175^\229\ESC\NAK\164\216\247D\243\t\SOP!?\255\DC4\ACKej\145\176\f\EOT|\ACK\166w\233\194l@Gp\188\208\238_\179\219\&0\CAN4\229\GS\148\196\135\200r\234\175\&3\rB\211\184R/i\150\SOHA\207\222iri\177K\242\NAKd\241\230-\STX\DC1Eh\222\199\250\157$7\SUBf\179\149\150"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataRRSIG 1 8 2 300 1497698216 1494238616 53598 (Name "debian.org.") "'\233%\DC3)/\188\165\236\&4\DC2f\231Q\231J\132\178\142\222\232\182\133\DEL6\220%\212\ACK\247\184\167\vb\175\CAN\232\162\170\190FOM\RS\f\235_\144W\ETB\215\158\244\223\vJ\210=\148d\142|\220\215\&9\220\204\233F4~=9J$\a}\177p\148\255\223AIP@\137\DLE\203;>i:\250\SUB\167\159\164Z]\149\150P\US/\157\198\181\ETX\165N\DC3\197\235\140\139I\US\238\184\193M\180\132\141{\213R\251\219&8\252"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 28799, rrData = RDataRRSIG 15 8 2 28800 1496661232 1493203448 53598 (Name "debian.org.") "\135\164\225\200\246u(\DC1\129\NAK\224\a\141\205\&0\206\201\221\156f[\ENQ9}\\\236\157+\SYN\128\170\197f\ETB\195Z\169\209\240\189\185\&8:\EM\209\219\128k0r\\Xc\NAKNSB\233\221\241\174\139\135\253\246\130PW\129\\\142\198\223\DLEpL\NUL\188z\252\169(\226kzu\225)\238\147n\227c\190V\236\249\213\182b|@\255\169H\167\128\145\184[\220\155K\238U\235\190\tJ\ETB\175[Ua\134G2\134\225\v6mx\179$\243\186HSK]\203\"\158\167r\SO\174I\f9\214o\170J\185\128\149y\vo\175\211Py\DC3\DC4\175\US\237\130\&1sE\229bt&o~\SUB\196\134\243\DLE\231\n\253\234A\180\175"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataRRSIG 28 8 2 300 1497698216 1494238616 53598 (Name "debian.org.") "h;I\216\162\211\209\224\SOHa+\"\a\222\245\241\SIL\134-\225\200\170\&0\149\148*\234\208~4UG\135M\DC1\rK\US\181M\158D\220+\205\215q\229M?\199x\250 5\STX_}\167\&3\207\214\DEL\ETBAY\216=\252D\SO\174y\142\147\185s\STX\135\SO7^V:\160\153H/\151 \220\146\155\132\&5\158\143\184\164h\SUB\130\176\CAN\a}2\196\162\a\SYN\223f\130\240\211~b4-\252\151\223\217\DC2\223{z{s\134\251\171\ESCG\216\164\&6\223\211g\152\218\241\&88\SUB?\213\133\218@\175\255\EM\192\238\147\&8af\242\DC4B\DC3\220\140#\153\174\182\166\ETX\177%\DC4\f\240BC\195qL\228\196=\DC1\137\251\DC17"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 35 8 2 3600 1496661232 1493203448 53598 (Name "debian.org.") "\128\242P\211\136<\187\164D\208\213\195-\130\230q\153\156\180\161\\?)^\128\\\247\200\224i4\NULu\230|\t\215\DC4\149\254\ETB\192-\186\173tw\213\DC3\184\228\223:\202\&3\208 \179\165\161*\254&\149\138S\192.E\218\EMp\156\\\165\b\"\179v\231\132\188\222\DEL*\EM\155U\US#@\ENQh\241K.\223\&6\131\162\226o\203!\152$;\"\128\DC1B\231\187HZ\209\&3/\208\135?y\n\178c\177OX\CAN\202\161)\161\196\245\199\DC16*\210\248\174Jg#\247\161\145\177\&1A\243\212\200r\204\142\&7\165\GSl\134+-\ETX\129L\162-\154\207\SO5\248\145\252\162\v\149\169Z\154\240\DC4\242}i\182\216\187CL"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 6 8 2 3600 1497698216 1494238616 53598 (Name "debian.org.") "\141G\148\&8Ru\215~\167\220\201\a\234\142\f\136?p\174d\136E\130\135\136\&7vA\212\"x \188\189\SYN\166x\158y\236\DC18\163\241\217B\169;\200IUF\136\138\253A2Fq\150M:\174C/Y\GS\194XD\135\216\140P\DC1U\187\STX\163DM\182\205\243\185\170\165C\209,bp\195\246\236\162)\180\209\ETX\216\232\219\241<\219\158S\EOT+$C\250\174\b\237\155:\233\177@\208F\192\198\131\132zsO9@\f\247\138\SOHjM>ajU\179\t\n\222\203b\DLE\253\224\&4\240\DC4N\146ua\148\208\185\183:}\156\148\153\171\ve\180\SI\229\193\140\232\SOH\182<#?P\STX\164#3\167.\163\143\&9\205"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 0, rrData = RDataRRSIG 65534 8 2 0 1497615664 1494156551 53598 (Name "debian.org.") "\194\&5v\DEL\182\184\138\201\232=\183\ETB~4\172\DEL\168B`e\SUB\128\222\190L\141\154\151\236\\\176/\NUL\209a*:c\145`\164\t\179l\206\225\162\RS\208f\159S\RSLz\182\n\a\186\207\208$#>+\150\&5\151\129\220L&\173\188\141BA\SOH\130\136\&6\DC1\141\220 \134~\149\144=\229\v*\246m\SI\DC2\207`\180\237\SO\166\167\226y\186\139\182."},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 0, rrData = RData (Type 65534) "\b\EMW\NUL\SOH"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 0, rrData = RData (Type 65534) "\b\209^\NUL\SOH"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 28799, rrData = RDataDNSKEY 256 3 8 "\ETX\SOH\NUL\SOH\247\254\167,h*\ACK\241\143,\SYN)w\190\177I(\202\ACKiV\246nn\SUBM\bu_\239n\194\193\236\214is\140\SUB\SO\182/?\162\140\b\182\187\179\rD\223\139&\214\165y\236\r0\SOH\137\249\252z\EM9\247\165(\EM\143\">'\230\GSX?\188t\228r\185\168\&5\173\SI\180\226/\203\140\154D\180\239\207\&4\234\ETX\236\252\245\NAK\tK\199\138\243\NAK\177fwG^\253S\211\192B\186\151W\252\SYN\199\206\&4\FS\243M"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 28799, rrData = RDataDNSKEY 257 3 8 "\ETX\SOH\NUL\SOH\151\229\ETB\218\252+\173\&2\GSK\140\207\236\249\f\n\187M\129\160\216\169\186\152p\n\CAN\161\204}\153\207\241\ETBr\128WZ\237\CAN\245\151\184\&7\240\226\US^\243\&0\133\140\141\231 \139z\209\150\227x\182\191V\187e\SYN\169#\162W\222\157K\DC4\234mJ\172\130#4\146\f\175\191\255 \191\251\182\244A\\\134V\197\218\186\194\NAK\150L\173B#\222\242-\209\SIP\250b\DC1\231/\151\a\252\SYNC\160\DLE\US<\251liLSc\SOH\185,\247\218\143\239\181:\243\164\191I\165\157\184\177\134\187O\150\179GE\ESCaU02qR!\199R\172\STXita\157w4h\219\218\241\206\210v[\165\193}:\STX\DLE5\157\166\144\EOT\194\247\231\164\191-\222\186\\\144\222=\224o\230\194J\189\211\160\241\240\242\163\167\238\f\SOH\238L\159\DC4\132\208\171F$\161\169\GS\173\224w\167/\191\142\146wY\235\245\231\&1<\252\234\148-\NUL\137\223y"},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataNAPTR 10 0 "s" "SIPS+D2T" "" (Name "_sips._tcp.debian.org.")},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x200104f80001000c 0x15)},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x200106101908b000 0x1480014)},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x200141c810000021 0x210004)},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataAAAA (IPv6 0x2605bc8030100b00 0xdeb01660202)},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 28799, rrData = RDataMX 0 (Name "muffat.debian.org.")},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 28799, rrData = RDataMX 0 (Name "mailly.debian.org.")},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x599e704)},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x801f003e)},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x8259940e)},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x8cd3a6ca)},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataA (IPv4 0x9514040f)},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 28799, rrData = RDataNS (Name "dnsnode.debian.org.")},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 28799, rrData = RDataNS (Name "sec1.rcode0.net.")},MsgRR {rrName = Name "debian.org.", rrClass = Class 1, rrTTL = TTL 28799, rrData = RDataNS (Name "sec2.rcode0.net.")}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/b90b636aee4f847240da4e2606eb64af.bin0000644000000000000000000000015107346545000021077 0ustar0000000000000000"xwww?thelongestdomainnameintheworldandthensomeandthensomemoreandmorecom ^~*2resolv-0.2.0.2/testdata/msg/b90b636aee4f847240da4e2606eb64af.show0000644000000000000000000000112607346545000021312 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 8824, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "www.thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com.") (Type 1) (Class 1)], msgAN = [MsgRR {rrName = Name "www.thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com.", rrClass = Class 1, rrTTL = TTL 35774, rrData = RDataA (IPv4 0x5e7e2a32)}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/bc73346b31d530d2fd1c40100e0abdb3.bin0000644000000000000000000000036607346545000021041 0ustar0000000000000000;www microsoftcom   0#www microsoftcom-c-2edgekeynet/D7www microsoftcom-c-2edgekeynet globalredirakadnsM^e1863dspb akamaiedgeMu1n0dspb hostmasterakamaiYresolv-0.2.0.2/testdata/msg/bc73346b31d530d2fd1c40100e0abdb3.show0000644000000000000000000000206307346545000021245 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 49467, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 3, mhNSCount = 1, mhARCount = 0}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 12) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 3376, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 17605, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 785, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")}], msgNS = [MsgRR {rrName = Name "dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 885, rrData = RDataSOA (Name "n0dspb.akamaiedge.net.") (Name "hostmaster.akamai.com.") 1494154963 1000 1000 1000 1800}], msgAR = []}resolv-0.2.0.2/testdata/msg/bd9f84e89a040ca3c405c8b0c61e7b95.bin0000644000000000000000000000016707346545000021112 0ustar0000000000000000cffc7fe006b75a404010528710841002ip6arpa ghchaskellorgresolv-0.2.0.2/testdata/msg/bd9f84e89a040ca3c405c8b0c61e7b95.show0000644000000000000000000000114307346545000021315 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 38134, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "c.f.f.c.7.f.e.0.0.6.b.7.5.a.4.0.4.0.1.0.5.2.8.7.1.0.8.4.1.0.0.2.ip6.arpa.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "c.f.f.c.7.f.e.0.0.6.b.7.5.a.4.0.4.0.1.0.5.2.8.7.1.0.8.4.1.0.0.2.ip6.arpa.", rrClass = Class 1, rrTTL = TTL 899, rrData = RDataPTR (Name "ghc.haskell.org.")}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/c1643eda6cc3d3ed3cee45c25027e5f4.bin0000644000000000000000000000031107346545000021231 0ustar0000000000000000G*www microsoftcom  #www microsoftcom-c-2edgekeynet/M7www microsoftcom-c-2edgekeynet globalredirakadnsM^ze1863dspb akamaiedgeM \zPresolv-0.2.0.2/testdata/msg/c1643eda6cc3d3ed3cee45c25027e5f4.show0000644000000000000000000000175107346545000021452 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 18218, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 4, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 1) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 3478, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 19714, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 890, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")},MsgRR {rrName = Name "e1863.dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 10, rrData = RDataA (IPv4 0x5c7ab450)}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/c19a30769d1fac0f4bc2e4e20681ef4e.bin0000644000000000000000000000007307346545000021156 0ustar0000000000000000awwwgooglecom :)resolv-0.2.0.2/testdata/msg/c19a30769d1fac0f4bc2e4e20681ef4e.show0000644000000000000000000000106507346545000021370 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 1121, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.google.com.") (Type 1) (Class 1)], msgAN = [MsgRR {rrName = Name "www.google.com.", rrClass = Class 1, rrTTL = TTL 129, rrData = RDataA (IPv4 0xd83ac9e4)}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/c2b9983a237cc1d0085a7579dd54f189.bin0000644000000000000000000000007407346545000020704 0ustar0000000000000000wwwwgooglecom *P@ resolv-0.2.0.2/testdata/msg/c2b9983a237cc1d0085a7579dd54f189.show0000644000000000000000000000076607346545000021124 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 30614, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "www.google.com.") (Type 28) (Class 1)], msgAN = [MsgRR {rrName = Name "www.google.com.", rrClass = Class 1, rrTTL = TTL 186, rrData = RDataAAAA (IPv6 0x2a00145040070816 0x2004)}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/c4506200f514568ec9a2d42663a1e77d.bin0000644000000000000000000001034407346545000020603 0ustar0000000000000000ziietforg )ns0amslcomglen*G\ : .Z YYȃietforgP/9Cmr#p vvL9A}]! ag_9;_duqm0t;^mҽ%JξY&&b'tX7Dn>7&\@Gőa,._E:";iF"e6$accOXLK7`Y2.4+&*F:@U ns1mia1 afilias-nstinfo  ns1ams1 &  ns1sea1  ns1yyz1  ns1hkg1 .Z Yȃietforg-A5պ+ɫf6YӘ@Rl|FR~l0`tAUjKw6iWAoHP !R2P%iBxJf)qD:&)KfO\*Уq^sS9誵 プe?k /y<ͪl[1s3+z)=d>T_?e+CĀDu~9A*V@>~a , .Z Yȃietforg]t7}V^ȥ[u:<_6(}]}ve)5j?>_ҹʀ knqm\Ce'r;a6wAf"ƌa6K=? lB\ MچFiЮPC*8ou r2r= mU vOmRK _ ن0݂k.em,M&vU||,}^+6B[`U۪#ǷĚZGQ)l2fpj=f  mail .Z Yȃietforg>\ʜi3?,4t(r\pf_$8ML.n`v59m<2/}2$kR\KUggľ|#,zj8si0d};ۥzgmpYb;wZVy<;<16nʓΐ]X^߀MLin;F6 -[8ʚb ́; *!8_Yn$M[,UP cN7Y>)f}D)xILcUd~c7#0rgij}VWCV%f3D1%QZ'ߟf)xq@8?^$$MK p+hEe1q͒|uƛ8[AkHvܬ!p7pvs BVY?bh:` 0 i8JScpO)R>|ߨn%Jd8 P R>qR5aCgi5W63UTyp.}.V.@O4:uS)ϡ3q[ß' BPZ quo$޺e .0Z [YȃietforgRuLصbr9d;Q6+nFy(R>Rm"Ȯu0C].[KWcV#4^~ HcSYzV]أb\%4qHS oD&HRi`˰&,opod優 SMG7M';Ɉmc-H 0Wg"XEWPʧUm9r߳=T`S;BHZ亯 .0Z ~YȃietforgXA{ = 5$B/^LGP#(-/=J )J-fo8_GjfX7bk-g| ݋ogB% 74Ѡ'= iH2yeUClfĀ8^k79M?5BxyݙL~0o3f^1%| ~d'=7QVj2!%`2 cv=spf1 ip4:12.22.58.0/24 ip4:64.170.98.0/24 ip4:4.31.198.32/27 ip4:209.208.19.192/27 ip4:72.167.123.204 ip6:2001:1890:123a::/56 ip6:2001:1890:126c::/56 ip6:2001:1900:3001:0011::0/64 ip6:2607:f170:8000:1500::0/64 -all .cZ bYȃietforgkڂlOힲX <<7vܡ1McytcC_>T:FZ8hZHcSg*t}>@荰AdAVk^7Ԟ9!n\202\217\252>\200\229\233\133\&7&\180\138\134\ETX\160\195\226\\\198\232\253\250@\154G\NUL\DC4\175\197\145\250\USa\143\DEL\149,\160._\DC2\162\216\242E\174:\"\236;\255\154\147\219iF\"\245e\236\&6\134$a\241c\217\DC1\193c\182O\160\238XL\203\230K\228\DC1\135\135\&7`Y\248\EOT2\156.\146\SUB\158\&4+\238\STX\142\182\164\FS\ACK&\143\186*F:@\222U\149"},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataNS (Name "ns1.mia1.afilias-nst.info.")},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataNS (Name "ns1.ams1.afilias-nst.info.")},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataNS (Name "ns0.amsl.com.")},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataNS (Name "ns1.sea1.afilias-nst.info.")},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataNS (Name "ns1.yyz1.afilias-nst.info.")},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataNS (Name "ns1.hkg1.afilias-nst.info.")},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 2 5 2 1800 1524763120 1493223555 40452 (Name "ietf.org.") "\196-\224\241\235A5\213\186+\136\SUB\201\171\186f6Y\163\US\GS\211\152@R\154l\166\FS|\208\246F\251\185\180\SI\ETBR\130\131~\200\214\RSl\144\157\a\137\216\236\&0\ETX`\188\DC2\137t\ENQ\188A\255\144Uj\179\151\205\SO\197Kw6\169\157\133i\EMWA\GSo\135\224HP\US\174\243 \219\208\a\248\187\220\218\240\ACK!\132R\243\150\&2P\EM\180\161\ESC\179%\ETXiBx\149\160\156\155J\SOH\239f\201\213)\173\240qD:&)\146Kf\202\195\b\175\161O\220\DC2\213\\*\209\200\EM\228\173\208\163q\154\EM^s\138\191S9\191\232\170\181\232 \131\227\131\151e?k\DC1\173\205\f\197/\183y<\ETB\205\170\244\143\133\232l[\149\&1\SYN\202s\220\&3\135\173+\STX\136z)=d\226>\188\139\151T_?\USe+\EOT\196\SYNC\196\128\144Du~9A\136*\154\219V\DC2\195@\DEL\209>\135\182\150\131\149~\132a\141\138"},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataA (IPv4 0x41fc62c)},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 1 5 2 1800 1524763086 1493223555 40452 (Name "ietf.org.") "]t\133\144\&7}\NULV^\200\165\FS\187[u:<_\238\172\&6\217(}\226\b]\151}ve\180\186)5\255\FS\ESCj?>_\202\226\210\185\165\202\128\v\173\204kn\SUB\242qm\\\203Ce'\242\222\228r\223\243;\ESCa\DC3\NUL\165\&6wAf\196\"\253\200\231\198\140\200a\227\&6K=?\v\FS\162\245lB\161\160\\\ETX\f\r\176M\218\134\US\176Fi\208\174\209\202P\160\DLEC*\200\&8\191ou\190\DC3\226\v\156r\144\DLE\171\&2r=\187\157\v\184\169\235\163\ENQm\242U\f v\aOmR\142\227K\v_\n\239\249\177\161\217\134\&0\250\208\221\130\DC3\136\189\139k\228\210.em,M&\237vU\227\214\193\US\148|\198\DC4|\128,\177}\133\144^+\148\143\&6\197B\ACK[\204\DC3`\147\134U\219\170#\132\199\183\196\154\179ZGQ\247)l\187\&2\SYNf\237\202p\241\253\230\145\251j\NUL\224\146=\ENQf\SI\180"},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataMX 0 (Name "mail.ietf.org.")},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 15 5 2 1800 1524763100 1493223555 40452 (Name "ietf.org.") "\ENQ>\186\\\164\202\156\DC1\201\251i\187\244\236\&3\189\195?,4t(\165r\\p\221\195f_\186$8M\b\147L.n`v\248\167\&5\220\240\156\179\&9m\242<2/\203\229\168}2$k\231\NUL\247R\\\155K\186\134U\ETBg\165g\196\190|#\US\176\ACK\192\242\ETB,\FS\151\231\217\NAK\143z\194j\138\&8s\164\US\252\247i0\RS\201d\DC2\170}\204;\NUL\187\ETX\249\DC4\219\165zg\DC3\241\201\223mp\215Yb\176\242;w\137ZV\193\192\243\211\SO\157\235y<\DC2;<16n\190\202\147\152\133\206\144\203]\148\204\224\172X^\211\200\192\225\223\128M\169\192<\253W;E\241\EM\253W\173\225$\226\159\t\195\200\222^\242a\196!\176x\149l\251\141\227ya8:\197\STX0\238\230\DC2\DLE\187\175\DEL\209\188E\133\131\179(\147\214\130ta\ETBK\188uQ\178\199/\228\a.\NAKi\149\172\NAK-^au\ACK.\215j"},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataTXT ["v=spf1 ip4:12.22.58.0/24 ip4:64.170.98.0/24 ip4:4.31.198.32/27 ip4:209.208.19.192/27 ip4:72.167.123.204 ip6:2001:1890:123a::/56 ip6:2001:1890:126c::/56 ip6:2001:1900:3001:0011::0/64 ip6:2607:f170:8000:1500::0/64 -all"]},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 16 5 2 1800 1524763104 1493223555 40452 (Name "ietf.org.") "\136\157Fpx\200\192\178J\227\"cT\254\180\217r{\216\228AQ\EMsM\253 \180,\248&\149\220\196:l\153\202+\SYN\224\CAN\156=\SO\174\241\168\254\215\181\180\194N+\171\197e\156\NULE\141EMPg\247[\DC3\202\SUB\248\180\EM\144K\SI\210\240\129hhi+G\204\SO\152A\221_F:\FS\253}\DEL|\141pk&\GS\160\130\254i9M\STX\162\231&\142\222fW\210A\149\221y\185{\GS\156\237!\212NI\DC2\144\226\197\146\vJ)\212\134l\SO\243\RSu\178'\181y\NAK#\224<\233\230\186^\253\222\208\215\SYN6\151]oI\189\172@\DC1\129\195ga\221\182\ENQ\189\164\244\191\173\163\247gCl\131\177\196\164\226\184D\229@\132s\131\161\162w\165\"2\164\168;\135\199\225\251\&7&\134\194\177g\153\rJ6\164\"\220\136\160g\207\129\184\200\167\ESC:\238\EM\154y\177\&2\242\246\238\149\228\DC29R/\211`vs"},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataAAAA (IPv6 0x2001190030010011 0x2c)},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 28 5 2 1800 1524763044 1493223555 40452 (Name "ietf.org.") "F\221\216\166\163C\171\ESC\210N\225! \155%4%@\ENQ\251\170\179\SYN\187UJiQ\214\&6\169\b2\198qz\145gY\240^k\232\247$\237\&9\156D\169\CAN<\138\128O\174\171j\207\NAK\129\254NH`nlY\SUB\NUL\238\206\176\156\aN(\186\&9\199\198C\140g\EOT\179\210\232Tq\203)\226\160\218\163\&9\203\NUL\133\223\NUL4\239\181\133\DELgh\143o\146\157H\DLE\NUL\168yJwc2\201\"\254\230q\201\bei\185\197\230\156\141\GS;\159\204\176\"\242\ETB\210T\217\254\236#-'l\187t/#'\236\183 \174/\181\200\160\198\SYN\fw\153\244\207?F\v\NUL|,Q\133\176\185\212]\207\ETB\DC29\148j\189\229\229\177\DC3\219|\244\146\215\STX\208\DC4C+\139\192\"\130\150\192\149\175\188\196|o,\148%\154\v\135\224\172ko\228\v\233`~#\151p\128\147\134\170\235\133\208Ekl\245r7*t\254\193=?\180"},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataNSEC (Name "ietf1._domainkey.ietf.org.") (fromList [Type 1,Type 2,Type 6,Type 15,Type 16,Type 28,Type 46,Type 47,Type 48,Type 99])},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 47 5 2 1800 1524763055 1493223555 40452 (Name "ietf.org.") "\ENQ\218r\154>Lin;\254\238F\NAK\ACK6\r\184-\192\237[\STX\250\184\&8\232\202\154b\t\204\129;\221\NUL\DEL\v*!8\178\169\201\ENQ_\199Yn\162\137\177$\a\159M[,\202U\DEL\155P c\254N\197\&7\233Y>)f\224}D\142\146\166\191\136\226)x\168\237I\133\194\233L\144c\DELU\185\255\158\DC2d\187\155\211~c\186\&7\169#\233\&0r\DC1\SYNg\181\196\179\141}V\ENQ\142\SUBW\165C\135\ETX\EMV\US\234%\243f3\213D\141\&1\DC2\195%\SYN\195\253\ENQ\239Q\a\245Z\RS\159'\223\159f)\185x\168\GS\a\195q@8?\190\150^\215$\140$\221\211\EM\144\246MK\vp\172+\158hE\135\254\b\164e\175\&1q\SYN\205\146|\178u\255\198\155\&8[\237\247\211\210\253\157A\222\FS\FSkHv\156\220\172!p7pv\174s\153\248\f\169BVY?\246\129b\250\255\DC4\174\238\EM\243h\237:`\146"},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataDNSKEY 256 3 5 "\ETX\SOH\NUL\SOH\208\196\t\168\199i8\223J\131Sc\159\SYNp\SYN\161\212\FSO)R\a\a>\b|\184\223\168\203\226\186n%\128\171Jd\183\189\236\&8\t\231\243P\172\209\ACK\EM\t\171\233\242\175R>\187q\250\217R\136\217\217\193\145\139\&5a\130C\170g\219\FSi5W6\229\203\&3\148\240\237U\142T\135\RSyp.\184}\166<\136\132W\163!%\133,[\167o\152\219\t\225|\STX\128\216+\160\t\151\134\131\EOT\137a#\EOT\US\176\141\134P\228kY\FS\DC1JUp\STXId\226\n\215]\GS\203\158\&9\228\149>.V\US\222\NAK\150\230\225\GS\248\178\180\211\217.\179\155\133@\135O\169\&4\180\209:\166\DC2\232\RSu\214S\238\175\166\198)\207\161\161\&3\SI\209\244\DC1q[\147\221\170\166\195\159' B\201PZ\fq\191\193u\DC2\224o$\222\186\177e\159\ESC"},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 48 5 2 1800 1524762971 1493223555 40452 (Name "ietf.org.") "R\220uL\178\139\238\216\181br\231\GS\128\250\205\243\&9d\165\185;Q\151\&6+n\a\148\169\152Fy(\244R\FS\131\ACK\137\229\167\199>R\RS\192\238\NAK\215\241m\"\200\174\132u\FS0C\DC4]\249\244\198.\138\221[K\164\SOW\SI\SYNcV\146\196\229#4\173\216\201^\128~\tHcSY\131\SI\229\238\191\GS\161\180zV\167]\216\216\163\CANb\211\ETX\\\SYN\234%\152\&4\231q\200H\129\245\253\224S\248\no\GS\195D\149&\ENQ\152HRi`\181\228\189\214\203\176\CAN\209&,o\239\222p\147\203\213o\163\179d\161\229\132\170\r\ENQ\251S\168M\232G\151\189\206\&7M';\SI\201\136\DLE\168\212m\200c\210-H\n0\ESC\157W\DELg\NUL\240\"XE\228\243W\236\170P\202\167U\ETXm\166\&9\162r\151\134\223\179\DC3=T\STX\158\180\226`\131S\DC3\235\199;\128B\149H\170\134\ENQ\253\156\166\141\236Z\161\228\186\175\DC3"},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 48 5 2 1800 1524763006 1493223555 45586 (Name "ietf.org.") "X\165A\218{\a\DC1\163\238\178 =\153\220\241\150\231\ETX\164\230\FS\199\233\r\218\t5\ETX$\182B/^\215\235L\175GP\133\153\230#\204(\179-\243/\188\ETX\192=\148J\n)\160\a\247J\251\133\209\223-f\175\DEL\211\227\170\197\SOH\ACKo8\247_\DEL\189Gjf\251X\166\221\207\&7b\142k\208-g|\SO\169\128\f\221\139\130\181\128\185o\220g\151\219B%\204\v\237\129\&7\249\&4\149\217\205\209\160'=\211 \187\152i\213\213\192H\178\153\&2\161\181\128\189y\132e\136\DEL\235\244\180\207U\245C\128\207\230lf\187\196\128\&8\250\SUB\177\224^k\ETX\FS\195\&79M?\189\NUL\161\178\&5\183\228\DC3Bxy\244\221\153L\145\154~0\173o\130\160\155\213\254\&3\ENQf^\255\157\188\&1%\146\US|\232\SOH\n~\ESC\239d'=\245\&7\206\a\ETX\SO\245Q\ESC\227\242Vj2\182\175!\206\223%\231\ENQ\172`\222\b\209\EM\234\172\&2"},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataSPF ["v=spf1 ip4:12.22.58.0/24 ip4:64.170.98.0/24 ip4:4.31.198.32/27 ip4:209.208.19.192/27 ip4:72.167.123.204 ip6:2001:1890:123a::/56 ip6:2001:1890:126c::/56 ip6:2001:1900:3001:0011::0/64 ip6:2607:f170:8000:1500::0/64 -all"]},MsgRR {rrName = Name "ietf.org.", rrClass = Class 1, rrTTL = TTL 1799, rrData = RDataRRSIG 99 5 2 1800 1524762978 1493223555 40452 (Name "ietf.org.") "\b\DC2k\193\248\172\212\218\130l\131\247\202O\248\132\254\237\158\178\180\167\229X\184\v<<7\152\233\178v\172\220\161\158\171\232\254\165\NUL\147\FS\STX\251\&1\189Mc\230\194\197\192y\140\221tc\SYN\USC_>T:\STXF\135Z\225\&8\130\FS\ETBhZ\178Hc\GSS\171g*t}\255\137\146\217>@\230\232\141\176\SI\185\202\202Ad\EOTA\133\240Vk\204^7\212\158\&9\135\CAN\226\188!\1451ns1> hostmasterfastlycomx+fX :)resolv-0.2.0.2/testdata/msg/c726878c52655dd4e53fc156b4dc987a.show0000644000000000000000000000140407346545000021202 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 44068, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 1, mhARCount = 1}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 6) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [MsgRR {rrName = Name "fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataSOA (Name "ns1.fastly.net.") (Name "hostmaster.fastly.com.") 2016110301 3600 600 604800 30}], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/cca51237517026de4f29d847e41a69a8.bin0000644000000000000000000000036607346545000020677 0ustar0000000000000000www microsoftcom #www microsoftcom-c-2edgekeynet/07www microsoftcom-c-2edgekeynet globalredirakadnsM^e1863dspb akamaiedgeM1n0dspb hostmasterakamaiYresolv-0.2.0.2/testdata/msg/cca51237517026de4f29d847e41a69a8.show0000644000000000000000000000206007346545000021100 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 63738, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 3, mhNSCount = 1, mhARCount = 0}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 6) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 135, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 3632, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 785, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")}], msgNS = [MsgRR {rrName = Name "dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 647, rrData = RDataSOA (Name "n0dspb.akamaiedge.net.") (Name "hostmaster.akamai.com.") 1494154725 1000 1000 1000 1800}], msgAR = []}resolv-0.2.0.2/testdata/msg/cd7ba0bcefc41dfe8a1604b2077ea9b0.bin0000644000000000000000000000014107346545000021357 0ustar0000000000000000l microsoftcom +ns1msftnetmsnhst x9O X$)resolv-0.2.0.2/testdata/msg/cd7ba0bcefc41dfe8a1604b2077ea9b0.show0000644000000000000000000000117407346545000021576 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 64364, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "microsoft.com.") (Type 6) (Class 1)], msgAN = [MsgRR {rrName = Name "microsoft.com.", rrClass = Class 1, rrTTL = TTL 1024, rrData = RDataSOA (Name "ns1.msft.net.") (Name "msnhst.microsoft.com.") 2017050703 7200 600 2419200 3600}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/cfad64f232eed78eaadec838de6aebb4.bin0000644000000000000000000000022207346545000021625 0ustar0000000000000000Jhackagehaskellorg  +j global-sslfastlynet>1ns1> hostmasterfastlycomx+fX :)resolv-0.2.0.2/testdata/msg/cfad64f232eed78eaadec838de6aebb4.show0000644000000000000000000000140507346545000022041 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 19134, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 1, mhARCount = 1}, msgQD = [MsgQuestion (Name "hackage.haskell.org.") (Type 12) (Class 1)], msgAN = [MsgRR {rrName = Name "hackage.haskell.org.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataCNAME (Name "j.global-ssl.fastly.net.")}], msgNS = [MsgRR {rrName = Name "fastly.net.", rrClass = Class 1, rrTTL = TTL 29, rrData = RDataSOA (Name "ns1.fastly.net.") (Name "hostmaster.fastly.com.") 2016110301 3600 600 604800 30}], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/d02efcfc9b759b69a7fc1b91b2e20743.bin0000644000000000000000000000006007346545000021165 0ustar0000000000000000wwwgooglecom O:resolv-0.2.0.2/testdata/msg/d02efcfc9b759b69a7fc1b91b2e20743.show0000644000000000000000000000074007346545000021402 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 181, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "www.google.com.") (Type 1) (Class 1)], msgAN = [MsgRR {rrName = Name "www.google.com.", rrClass = Class 1, rrTTL = TTL 79, rrData = RDataA (IPv4 0xd83ac9e4)}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/db1fec5b193264b8084ed82f477288e9.bin0000644000000000000000000000474207346545000021001 0ustar0000000000000000`nasagov W ns1 dns a u, .WXY6EY5Anasagov(:`<6FfY7b&1pwo3a;P ddZpfn[-.(@bJUqaiN(a鱺p3?ktWDYDxF+] W& Wns3 Wns2 .WXY68Y0AnasagovZqJ@cr\ks? dcUՒp,Ax%W^_UP5Uƾ!'xp1M:i=/Ο%#ݻ_iz;|}2Acz<^U`d% W4t .WXY68Y0Anasagovb}G 6K."ˮԚ.l)m?7v4UP8S@ٹĞi֯zqhu[grR+^1/ tiӭ+:FGVk1Ꙃbc dAl W ndjsvnpf102ndc W ndmsvnpf101š W ndjsvnpf103š W ndmsvnpf103š W ndjsvnpf101š W ndjsvnpf104š W ndmsvnpf102š W ndmsvnpf104š .WXY68Y0AnasagovROUiQУO5,0cNYS thgLP&-˭<B\Kto5فd`_cRt..{q[95xxݼ Wv=spf1 mx include:_spf-ip4a.nasa.gov include:_spf-ip4b.nasa.gov include:_spf-ip4c.nasa.gov include:_spf-ip4g.nasa.gov include:_spf-ip4m.nasa.gov include:_spf-ip4x.nasa.gov include:_spf-ip6a.nasa.gov -all .WXY68Y0AnasagovPGd|p%Q̐ݨp]<mP;6M\ qq2TA8^fT_CP"R@q\G|w>% TsN56q>,Ke( /+ 3D-Printingnasagovb .+/,Y6Y5AnasagovG@ ~aCzq>%%3%[ vh][@qWFWtgAVoA^+9tR5emޡY7cyRy,dz#jR&^ߪb 0W6M>W._q=Ηע"M jAŪkaZHԑ7SN]6RgޟGz"A]35hBݻQdtݗgxڔ8DC8߈:3==)bRV 0W"Rg2h*q/&MV݅Ut9܀P=,seÈHcFv8Uy4F9aQmy[:k>džGD&rDفA qzAwtҴ|/,"^]l_Qq PZm\@FT@8܆t|c\']L΅Тܜy~A+8#" Ɋ v .W0XY6@Y0AnasagovR/Wemg%\I-TP1:4UJxOVK31=Af\129\132\213%\234\207\219\tTsN\135\178\SYN56\DC3q\216\192>,\197\194K\198\229e\132\231\b\232("},MsgRR {rrName = Name "nasa.gov.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataNSEC (Name "3D-Printing.nasa.gov.") (fromList [Type 1,Type 2,Type 6,Type 15,Type 16,Type 46,Type 47,Type 48])},MsgRR {rrName = Name "nasa.gov.", rrClass = Class 1, rrTTL = TTL 299, rrData = RDataRRSIG 47 8 2 300 1496749007 1494154805 34113 (Name "nasa.gov.") "\bG\199@\n~\164\158\155\214\EMa\130\134\160\184C\250\147\156z\197q\165\249\DC3\155\250\b\NAK\EOT>%%3\132%[\n\179\137vh\135\205]\SI[\187\181@\190\a\168\178qW\252\245\229F\177Wt\188\170g\133\211A\236\154\SOH\159V\DC4o\NULA\EM\200^\182+9\170tR\220\&5\236\152em\222\161Y\159\&7c\211y\162R\228y\128,dz\156#jR\168&\214^\166\147\227\223\170\135\131b\156\226"},MsgRR {rrName = Name "nasa.gov.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataDNSKEY 256 3 8 "\ETX\SOH\NUL\SOH\188\&6\253\240\DEL\139M\ESC\154>W\159._q=\206\151\215\162\"\182M\218\218\rj\171\188A\172\197\170\213k\171\238\SO\206a\171\145\144\185ZH\235\212\145\&7SN\133\156]6R\DEL\141\216\236g\128\222\159G\ESC\205z\"A\176]\216\&35hB\221\187\248Qd\146\ETBt\221\151\168\EMg\159\156x\155\218\148\&8\143DC8\223\136:3\202=\226\198=\157)b\169\172R\128\175\DC4V\216\232\192\232\EOT\231\203"},MsgRR {rrName = Name "nasa.gov.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataDNSKEY 257 3 8 "\ETX\SOH\NUL\SOH\193\145\233\ETB\182\"R\233g\EM2\179\191\171\161h\159\143*\247\169q/\142&\SYNM\202V\224\SO\221\133\178U\223\DC3\175\158t9\220\128\ENQP=\FS\209,\133\130\159s\227\136e\234\195\136\ACK\140H\ETB\231\176\DEL\147\252c\SOF\FS\151\174\172v\140\&8U\139\137y\228\b\EOT4\DC2\136\174\255F\205\SO9\187a\190Q\ETB\234\182\DEL\ETBm\NAK\209y[:k\150\161\DC4>\134\131\ETB\245\167\199\134\226\244\222\214G\222D\129&\DC4\195\NAK\RSr\188\174\195D\217\129A\236 \DC4\NUL\200qzAwt\210\180\ETB\160|/,\167\"\193\137\188\154\185\165\DC2^]l_Qq\ETB\166\242 P\154\208Zm\SYN\\\229@\229\154F\229T@\254\&8\220\134t\237\156\220|\SOc\EOT\239\SI\240\FS\\']\185\157L\190\206\133\130\208\162\143\220\156\180\152y\US~\STX\207\EMA\173\235\ENQ+8\DC1#\236\ETB\162\161\"\f\SOH\168\177\180\201\138\t\STXv\133"},MsgRR {rrName = Name "nasa.gov.", rrClass = Class 1, rrTTL = TTL 599, rrData = RDataRRSIG 48 8 2 600 1496750400 1494154800 34113 (Name "nasa.gov.") "R\166/W\NAK\SYN\253e\153\EM\142\201m\170\246\205g%\230\\I-\134\251T\170\228\154\221P1\DC1\NUL\223\234\245\171\243\190:\225\133\218\&4\247\195\ACKU\180\NAKJ\147\140x\155O\250VK\155\205\201\&3\137\&1=\180\153\170A\229f\SO\ENQU\RM8ْDr[6,qXXx!9i6n @ufi&4b= T|,/ں2[Pд /wwwexamplecomb .QQYXRexamplecomߍiM o`Y.VOD|8B*5 \ZV?U؇ M#X_n(w~RJ(Ѹ|SOѓ0XvH 2J' bbE6]( Qa iana-serversnet Qb .QQYXRexamplecom0w &>tu'PjU1&-l,n Hehw(5DpoDϧ DdxGmĶH XX#q]*mï ՚Eaz Q&( H%F .QQY~TXRexamplecomHt@ᾌ CyəL$EE<`uF9[wli4Q.ּĦAV7,V5VƟ4p+?rzl,BCݵqw/&]>9h-3Kra Q]" .;d=1Ƌӕt;[GCE,a1#\qFDɥb~|mj~kTTbl3o!ey)zWVxS*s6|[mzH> [Qc.t wTG4|&KP:b':o .S@g?ф`QfĔ X .0Y"sY4examplecomNp\FMsB*-¬d7aQl 2E| ~J qX%+y4ڏvle߆HVرs?[|~bwlgza\(8g-g`m$JnK^SfY1y\*] ; ~ւE j=/[yasKnM v݇,H8ZA`Lc "E$KT.}R׌֙1rB 0~.KtP%f,-@KXpc+_c2XM`6_@-~V_&_yQWK oZIW4NC1P^!81,Bײ1ڗmLJ˄SG[F3qu#2a=)zb?•W |s+O,21)!> A2 "3YbGiŕ.}AV"zeXW*B'Qڢ.L[ob{qȮz`K|\!vbuW7 |ZKF5 0ҀaW,סlȝsZtaSVHDLK'KH|߲+hYy)Nݠ4㾌 gtwbbڿĆlY񖆃c)H 0k'+')Ei>f%eT,^uTJT UEN3 X! -z.e +{P1U*L },Q`wOј%--c2 J|zPI8UV[G xA [v" 6S "Ұyq>CܴͦY%}6uyxgzF^cw9f ]`ՔYi3- .Y"LYexamplecomtwzx!בluxt &ډDU7x8)>OjהhtCR|zV&Y'kFZH]<+=jo2dAY D;_vWi/ sSlY7y(Z9)resolv-0.2.0.2/testdata/msg/e1e5964dfd4b0f30eaafeee827062024.show0000644000000000000000000002203407346545000021370 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 31337, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 20, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "example.com.") (Type 255) (Class 1)], msgAN = [MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataSOA (Name "sns.dns.icann.org.") (Name "noc.dns.icann.org.") 2017042703 7200 3600 1209600 3600},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 47 8 2 3600 1494941371 1493148678 21214 (Name "example.com.") "]Mv\r\221\179\&8\219O\177\165\212\180\236/\136\t\168\231\176\156,\b\246YV\140\253\234\210\154-\223c\217>\164\SOU\221\\\178RM\DEL8\217\146\245D\161r\182\140[6\247\164,qX\202\247X\173\193x\222\210!9i6n \192 \196@u\177fi&4\209b=\225\196\248\160\223\nT\250\131\254\183\254\221\202\RS\140|\134\171\252\EM,\225\234\199\247\DEL\149/\189\152\214\215\218\186\240\&2[P\152\208\180\US"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataNSEC (Name "www.example.com.") (fromList [Type 1,Type 2,Type 6,Type 16,Type 28,Type 46,Type 47,Type 48])},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 2 8 2 86400 1495006082 1493148678 21214 (Name "example.com.") "\a\223\141iM\f\bo\160\139\192`\255Y.\166VO\178\DLED\161|8\STXB\252\SYN*\164\129\ESC5\DC3\v\\ZV?U\216\135\DC3\f\248M#\SYN\142\164\143\217X\233\ESC\159\NUL_\DC4n(\157w\FS~\145R\178\166\229J(\159\209\184|\251\220\238\237SO\139\209\147\220\&0Xv\165\201\GSH \251\&2\135\154J\194\ETX\199' \RS\132bb\243\148E\168\158\172\US\228\ACK\241\174\169\201\239\225\243\&6\DC1\255](\153\161"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "a.iana-servers.net.")},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataNS (Name "b.iana-servers.net.")},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 28 8 2 86400 1494925308 1493148678 21214 (Name "example.com.") "\DC4\224\&0\233w\r&>\182\142\167\220\207t\ENQ\US\243\149\128\230u'P\233j\164\248U1\NAK\182\146\235&\ACK\DC4-l\163,\191n\153\248\r\ESCH\229\134\209eh\163\132\169\247\ETB\234\DC4\176\239\187\208w\US(\220\242\&5DpoD\207\167\r\GS\169\ENQDd\152\ETB\179\226xG\217\ETXm\177\196\182\215H\255\221\v\DLE\179\226\GS\SOH\171\167\174\155XX#q]\164*\DC3m\195\175\227\205 \187\140\213\154\250Ea\253z\STX"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataAAAA (IPv6 0x2606280002200001 0x248189325c81946)},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataRRSIG 1 8 2 86400 1494974036 1493148678 21214 (Name "example.com.") "\DEL\147H\248t\140@\163\130\DC2\DC1\200\217\225\190\140\132\t\197\197C\164y\223\ENQ\228\195\201\153L\SYN$\179\177EE<\ACK`u\188F9\199[\165\171\177w\192\188l\159\229i\169\254\&4Q.\ACK\214\188\196\166\191AV\255\SO\232\&7,\225V5\255\NUL\186V\246\198\159\&4\164p\243\168+?rz\a\234l,B\208\224C\EM\142\221\181qw\154\164/&\144]\a>\188\223\&9\142h-3\STX\170\231\183Kr\164a\205\228"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 86399, rrData = RDataA (IPv4 0x5db8d822)},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 59, rrData = RDataRRSIG 16 8 2 60 1494968390 1493148678 21214 (Name "example.com.") "\149\vd\208\136+H\224\213\r\246\&2\CAN#\251\233q\SYN\157\220j@2/\157\242\215\173y\ETB\154\135\199\209R\253\\1\DC3Sof\139\143\229\251p\139O/\209\199\US\ACKL\138A+\134\a\187\145\222!n[\252\227L,\NULkj_\219K\163x\252_1\175\161\212.V\CAN\193\215\197\218\248\162\178\&1US\144NY\216#c\230\252\247'\135\160\237j\EOTf\152J\b\SOS+\213\242\SUB.}`@\130\133nm\225"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 59, rrData = RDataTXT ["v=spf1 -all"]},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 59, rrData = RDataTXT ["$Id: example.com 4415 2015-08-24 20:12:23Z davids $"]},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 48 8 2 3600 1495402611 1493547398 31406 (Name "example.com.") "&\236\\[/n#V\ENQ^\212\n\240\156\239\162\DELQ\211\241w\135\&9o\253\132\218\184s\218\210vn\180C\SI\255\SO\141<$\"\214r\141\n\173\223\248CCP'\132d\NUL,\DC1Q\134J\209\239\f\197e8\145->d\150\232=\153\191\&1\198\139\219\NAK\SUB\231\211\149t;\147[G\211C\190E\177,\GS\ETX\SOa\140\193\166\ETX1\248\EM\200#\\\130\231qF\177\230\140\243\164\SOD\162\201\165b~|\am\242\206j\197\STX\239\250\168\251~\USk\SOT\195Tbl3\136o\162\164\172\158!\128e\215y)\184\162zW\199V\246x\160\233\207S*s\ESC\240\203\&6\174|[\GSmz\NUL\249H\RS>\233\132\f[\ENQ\147\148Q\DLE\DC3\142\208c.\147t\133\229\140\rwTG\179\&4\ETB|&\163KP\a\182\178\174:b':\140o\DC2\f\143\167.S\143\FS@g\187?\209\132`Qf\FS\199\196\148\194\tX\233\166"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 48 8 2 3600 1495402611 1493547398 45620 (Name "example.com.") "\ETXNp\\\169\139\179\160\GS\DEL\225\247F\ACK\207\199M\197\218s\CAN\140B\194\199\218\SI*-\194\172\245\195d7\DC3\USa\236Q\225l 2E|\242\n~J\rq\234\175X%+\196y\189\&4\218\143vl\151\152\212e\223\134\135\145\166\226\201\213H\221V\254\216\177\242s\SYN\148?\192[\152\168\240\SI\130|\154\ACK~b\224wl\DC1g\236\b\149z\150a\SYN\\(\207\a\250\&8\154g\ETB\200\US-g`\EOTm\230$Jn\235\152K\222^\STXSf\136\130\CAN\248\170\179Y\243\152\&1y\143\DEL\\*]\r\SYN;\f\DC3\224~\ACK\150\214\130E\158\182\186\v\191j\131=\244\161/[\DC4\234ya\242\248\STXs\220\225K\203nM\v\241\252v\213\221\135\133\153,H8Z\138\DC4A\188\178`\136L\245\208\245\145\210c\t\154\159\244\146\"E\134\162\174\192\250\135\143$\143KT.\249}\SO\212R\215\140\214\153\DLE1r\247B\GS\161"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataDNSKEY 257 3 8 "\ETX\SOH\NUL\SOH\179\133\ETX\EM~.KtP\200%f,\202\DLE-@\197K\188\206X\250\228\166\SUB\181\RSp\ENQc+\135_\DC3c2\191\138\SO\152\214\222XM`\142\235\198\242\158\138\233\&6\239_\168\209@-~\219V_\DEL\131&\192\210\253\EOT\132_\157\129y\168Q\244W\238K\f\SUB\NULo\181\246\182\253\143Z\222IW4\186\164N\204\200C\131\196\&1P\163\182\188\165\215\208^\247\243\228\NAK\224\189!8\224\&1\DC4,B\EM\129\223\215\178\&1\137\218\151\231\247mLJ\147\135\234\237\203\132SG[F\155\158\224\DEL\205\234\&3\238qu\142\194#\NUL\145\&2a\130\SUB\160\203\234=\NAK\242)\250\212\DELzb\154\163\222?\194\149W\r\195\223\228\GS|\143\188s\217+\211O\CAN\174\168,\194\&2\219\&1\158)\EM\GS\202!\214> \249\141A\243\&2\f\"\250\196\&3\234Y\SUB\CAN\DELb\231\248G\NUL\129\129\166\STX\139\216i\136\197\149\189.\SYN\a}\217A\CANV\"\150\188ze\169X\248\147W\ESC*\162\DLEB\212'\230\228Q\128\218\162\252\233.L[ob\220\218{\ENQq\200\174\219\248z\190\216\227\156`K\ACK|\\!\DC4vbu\213W7\n|\174\USZK\139F\a\178\206\&5"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataDNSKEY 256 3 8 "\ETX\SOH\NUL\SOH\169\210\128a\180\148\180\210W\214,\198\215\161\155\158\247\ETB\140\198l\223\200\157\181\187s\250\228\NAK\205Z\173t\251\ETX\246\234a\254SV\196HDL\SUBK'KH\221|\176\223\178+\219\237\247h\179Y\175\144y\171)\132\203N\221\160\&4\227\190\140\137\f\227\170g\142\161tw\247\ab\230b\169\238\211\218\191\161\145\183\196\134l\FSY\241\150\134\131\SUBc\240\140\DLE\243\172\FS\SO)\144\211\FSH\160\225\224\ETX\217\238\SO\142\233"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataDNSKEY 257 3 8 "\ETX\SOH\NUL\SOH\157\SUB\170\237k'\170+')\235E\243i>f\178%\154\NUL\199\210\FS\219\244e\245T\SYN,\193\242\143\FS^\155uTJ\131T U\196E\ACK\227\208\SIN\130\157\&3\f\207X!\199\n-\ETBz.e\162\f+{P\148\&1U\208\254\133\230\249\DC1\206*\150\161\166\201\DELL\r\166\228\189}\141\188\204,Q\231\ESC`\SUB\188\161w\147O\210\209\152%-\244\165-\253c\162\232\&2\132\v\SUB\ACK\253\181\147\202J\215\200\DC4|zP\254I\ACK8\220\224\NAK\142U\171V[G\198\nx\254\184A\n\244[\153\215\229\186v\143\"\v\182\237\225\&6S\137\178\r\"\211\241\174\NUL\210\176y\184q\184>C\154\245\210\DC1\179\220\180\208\205\166Y\254%\200\247\158\238\248\185}\236\&6u\182\178\GSy\162xg\SUB\NULz\241\239\163F\NUL\NUL^c\DELw\198\&9f\f\215\DC4\144]`\164\213\148\149\174\USY\150\219i\132\&3\ETX\221\230-\218\231\131\227"},MsgRR {rrName = Name "example.com.", rrClass = Class 1, rrTTL = TTL 3599, rrData = RDataRRSIG 6 8 2 3600 1495444812 1493601562 61845 (Name "example.com.") "t\209\CAN\EOT\EOT\GSwz\237\DC3x\151!\151\255\215\145\CAN\189l\233uxt &\218\137\ETB\205DU\RS\166\240\&7x8\246)\176>\138O\187j\215\148\250\142\213h\160tCR\208|zV&\167\243\130Y\233'\NAK\160k\184\209\SYNFZH\224]\138\235\181\253\219<+=\154\143jo2\213d\237\206\207\NULAY\151\130\f\nD;\137\ACK_\141\240vW\148i\196/\v\DC1s\221Sl\241Y7\STXy(Z9\209"}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 32768, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/e9036c06fc30e6d7582fe9e5238cb718.bin0000644000000000000000000000032407346545000020764 0ustar0000000000000000˲www microsoftcom  #www microsoftcom-c-2edgekeynet/7www microsoftcom-c-2edgekeynet globalredirakadnsM^{e1863dspb akamaiedgeM \zP)resolv-0.2.0.2/testdata/msg/e9036c06fc30e6d7582fe9e5238cb718.show0000644000000000000000000000207307346545000021177 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 52146, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 4, mhNSCount = 0, mhARCount = 1}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 1) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 2306, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 7192, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 891, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")},MsgRR {rrName = Name "e1863.dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 11, rrData = RDataA (IPv4 0x5c7ab450)}], msgNS = [], msgAR = [MsgRR {rrName = Name ".", rrClass = Class 512, rrTTL = TTL 0, rrData = RDataOPT ""}]}resolv-0.2.0.2/testdata/msg/f07dc1a95f1663525bf32957288adb78.bin0000644000000000000000000000036607346545000020711 0ustar0000000000000000vwww microsoftcom  #www microsoftcom-c-2edgekeynet/N7www microsoftcom-c-2edgekeynet globalredirakadnsM^e1863dspb akamaiedgeM71n0dspb hostmasterakamaiYresolv-0.2.0.2/testdata/msg/f07dc1a95f1663525bf32957288adb78.show0000644000000000000000000000206307346545000021115 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 56182, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 3, mhNSCount = 1, mhARCount = 0}, msgQD = [MsgQuestion (Name "www.microsoft.com.") (Type 15) (Class 1)], msgAN = [MsgRR {rrName = Name "www.microsoft.com.", rrClass = Class 1, rrTTL = TTL 3342, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.", rrClass = Class 1, rrTTL = TTL 20129, rrData = RDataCNAME (Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.")},MsgRR {rrName = Name "www.microsoft.com-c-2.edgekey.net.globalredir.akadns.net.", rrClass = Class 1, rrTTL = TTL 785, rrData = RDataCNAME (Name "e1863.dspb.akamaiedge.net.")}], msgNS = [MsgRR {rrName = Name "dspb.akamaiedge.net.", rrClass = Class 1, rrTTL = TTL 823, rrData = RDataSOA (Name "n0dspb.akamaiedge.net.") (Name "hostmaster.akamai.com.") 1494154901 1000 1000 1000 1800}], msgAR = []}resolv-0.2.0.2/testdata/msg/f3110fafd49cc625b0cc29e99d82ec79.bin0000644000000000000000000000016707346545000021204 0ustar0000000000000000cffc7fe006b75a404010528710841002ip6arpa  ghchaskellorgresolv-0.2.0.2/testdata/msg/f3110fafd49cc625b0cc29e99d82ec79.show0000644000000000000000000000114207346545000021406 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 62613, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "c.f.f.c.7.f.e.0.0.6.b.7.5.a.4.0.4.0.1.0.5.2.8.7.1.0.8.4.1.0.0.2.ip6.arpa.") (Type 12) (Class 1)], msgAN = [MsgRR {rrName = Name "c.f.f.c.7.f.e.0.0.6.b.7.5.a.4.0.4.0.1.0.5.2.8.7.1.0.8.4.1.0.0.2.ip6.arpa.", rrClass = Class 1, rrTTL = TTL 785, rrData = RDataPTR (Name "ghc.haskell.org.")}], msgNS = [], msgAR = []}resolv-0.2.0.2/testdata/msg/fc9b623aa6ba4673b84145ab0899a3bd.bin0000644000000000000000000000012207346545000021074 0ustar0000000000000000=j4488in-addrarpa  Q google-public-dns-bgooglecomresolv-0.2.0.2/testdata/msg/fc9b623aa6ba4673b84145ab0899a3bd.show0000644000000000000000000000101307346545000021304 0ustar0000000000000000Msg {msgHeader = MsgHeader {mhId = 15722, mhFlags = MsgHeaderFlags {mhQR = IsResponse, mhOpcode = 0, mhAA = False, mhTC = False, mhRD = True, mhRA = True, mhZ = False, mhAD = False, mhCD = False, mhRCode = 0}, mhQDCount = 1, mhANCount = 1, mhNSCount = 0, mhARCount = 0}, msgQD = [MsgQuestion (Name "4.4.8.8.in-addr.arpa.") (Type 12) (Class 1)], msgAN = [MsgRR {rrName = Name "4.4.8.8.in-addr.arpa.", rrClass = Class 1, rrTTL = TTL 86285, rrData = RDataPTR (Name "google-public-dns-b.google.com.")}], msgNS = [], msgAR = []}