getopt parsing dns util