1 # Copyright (C) Internet Systems Consortium, Inc. ("ISC") 2 # 3 # SPDX-License-Identifier: MPL-2.0 4 # 5 # This Source Code Form is subject to the terms of the Mozilla Public 6 # License, v. 2.0. If a copy of the MPL was not distributed with this 7 # file, you can obtain one at https://mozilla.org/MPL/2.0/. 8 # 9 # See the COPYRIGHT file distributed with this work for additional 10 # information regarding copyright ownership. 11 12 from isctest.asyncserver import AsyncDnsServer, IgnoreAllQueries 13 14 15 def main() -> None: 16 server = AsyncDnsServer() 17 server.install_response_handler(IgnoreAllQueries()) 18 server.run() 19 20 21 if __name__ == "__main__": 22 main() 23