Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion adns_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def usage(msg=None):
-f: Remain attached to foreground (default don't)
-e N: Max EDNS bufsize in octets for responses we send out.
(-e 0 will disable EDNS support)
-x file: Name of file to write the PID

Note: a configuration file that minimally specifies the zones to load
must be present.
Expand Down Expand Up @@ -213,7 +214,7 @@ def process_args(prefs, zonedict, arguments):
"""Process all command line arguments"""

try:
(options, args) = getopt.getopt(arguments, 'hc:dp:s:z:u:g:46fe:')
(options, args) = getopt.getopt(arguments, 'hc:dp:s:z:u:g:46fe:x:')
except getopt.GetoptError as error_info:
usage(str(error_info))

Expand Down Expand Up @@ -250,6 +251,8 @@ def process_args(prefs, zonedict, arguments):
prefs.daemon = False
elif opt == "-e":
prefs.edns_udp_max = int(optval)
elif opt == "-x":
prefs.pidfile = optval


def log_message(msg):
Expand Down