Home | History | Annotate | Line # | Download | only in ans1
      1 #!/usr/bin/python3
      2 
      3 # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
      4 #
      5 # SPDX-License-Identifier: MPL-2.0
      6 
      7 from isctest.asyncserver import AsyncDnsServer
      8 from nsec_synthesis.ans1 import common, f004, f023
      9 
     10 
     11 def main() -> None:
     12     keys = common.load_keys()
     13     server = AsyncDnsServer(default_aa=True)
     14     server.install_response_handler(f004.F004Handler(keys))
     15     server.install_response_handler(f023.F023Handler(keys))
     16     server.run()
     17 
     18 
     19 if __name__ == "__main__":
     20     main()
     21