def pretty_print_domain(rows, keyword, domain):
    """
    Arguments:

        rows:    get response data
        keyword: search keyword

    """
    if len(rows.get('records')) == 0:
        return None

    # six columns; priority, name, content, ttl, change_date, type
    header_l = ['prio', 'name', 'content',
                'ttl', 'change date', 'type']
    # 0->4, 1->0, 2->2, 3->3, 4->5, 5->1
    header_l_sorted = ['name', 'type', 'content',
                       'ttl', 'prio', 'change date']
    header_l_sorted.reverse()

    cols_width = [len(i) for i in header_l]

    """
    if key == 'change_date':
        value = datetime.fromtimestamp(
            int(row_d.get(key))).strftime("%Y%m%d-%H%M%S")
            """

    cw_, soa = get_columns_width(rows.get('records'),
                                 cols_width, True)

    # sorted as name, type, content, ttl, priority, change_date
    cols_width_sorted = [cw_[1], cw_[5], cw_[2],
                         cw_[3], cw_[0], cw_[4]]

    if isinstance(soa, dict):
        soa_s = ('zone:        ' + soa.get('name') + '\n' +
                 'SOA record:  ' + soa.get('content') + '\n' +
                 'ttl:         ' + soa.get('ttl') + '\n' +
                 'change date: ' + soa.get('change_date'))
        domain = soa.get('name')
        print(soa_s)

    print domain

    if keyword != 'SOA':
        print_header(cols_width_sorted, header_l_sorted, len(domain))
        str_value = ''
        for row in rows.get('records'):
            if row.get('type') == 'SOA':
                pass
            else:
                # name
                if row.get('name'):
                    str_value = get_row_s(row, 'name',
                                          cols_width_sorted[0],
                                          domain=domain)
                    sys.stdout.write("|%s" % str_value)
                # type
                if row.get('type'):
                    str_value = get_row_s(row, 'type',
                                          cols_width_sorted[1])
                    sys.stdout.write("|%s" % str_value)
                # content
                if row.get('content'):
                    str_value = get_row_s(row, 'content',
                                          cols_width_sorted[2])
                    sys.stdout.write("|%s" % str_value)
                # ttl
                if row.get('ttl'):
                    str_value = get_row_s(row, 'ttl',
                                          cols_width_sorted[3])
                    sys.stdout.write("|%s" % str_value)
                # priority
                if row.get('priority') is None:
                    val = {'priority': '-'}
                else:
                    val = row.copy()
                str_value = get_row_s(val, 'priority',
                                      cols_width_sorted[4])
                sys.stdout.write("|%s" % str_value)
                if row.get('change_date') is None:
                    val = {'change_date': '-'}
                else:
                    val = row.copy()
                str_value = get_row_s(val, 'change_date',
                                      cols_width_sorted[5])
                print("|%s|" % str_value)

        print_bottom(cols_width_sorted, len(domain))
Arguments:

        rows:    get response data
        keyword: search keyword