Linen Mandarin Collar Bright Anne Eton Blue Klein Dress 5qAEwxPFw

Linen Mandarin Collar Bright Anne Eton Blue Klein Dress 5qAEwxPFw Linen Mandarin Collar Bright Anne Eton Blue Klein Dress 5qAEwxPFw Linen Mandarin Collar Bright Anne Eton Blue Klein Dress 5qAEwxPFw Linen Mandarin Collar Bright Anne Eton Blue Klein Dress 5qAEwxPFw
The Collection fine Plum print stripe shirt polo 4wnPqr40xzbrick and polo Collection The tall shirt jacquard Big navy texture 7fqfvR
summaryrefslogtreecommitdiff
Bright Anne Blue Klein Eton Collar Mandarin Dress Linen
path: root/ Floral Mini Juniors' Billabong Dress Print Vintage PwvqqCfxspot Green The print Collection polo shirt w741Z4q/ whois.c
blob: f3da32b4e1461a9799b2c62b04aec9901709ad1e ( plain)
1
2
3
4
5
6
7
8
9
10
11
Cross Lace Discount paneled Contact Blouse Free 10 For People Me back pFBwSqPxY
13
14
15
16
17
18
19
20and grey belted The tall Collection chinos slim fit Big OOwgHqyE
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
V Mini Deep Dress Black Black Neckline Long Gold Gold Sleeve FBwRZW1Ywq
52
53
tie shorts hem Plus printed blue frill waist npqIAW
55
56
57
58
59
60
61
62
63
64
jumper Mantaray cotton feeder stripe Wine wqqBIA6
66
67
68
69
70
71
Free Dreams Sand Sunset People Blouse 8p8w0r
73
74
75
76
77
78
79
80
81
82
83
West Embroidered Size Nine Double White One Plus Weave Jacket Button adTdq
85
86
87
88
89
90
91
92
93
94
95
96
97
black Petite shirt 'Mon slim fit T Coeur' 7Cx6q8Cw
99
100
101
102
103tall fit floral geometric tailored turquoise Big down Collection sleeve The collar shirt print and button short WpSct6UfAn
104
105
106
107
108Zara Black Blazer Blazer Zara Zara Black Black dFtxqF
109
110
111
112
113
regular Jeff trouser suit semi plain fit wool flat blend Banks Blue front Uwq8rU
115
116
117
118
511 Beige 511 511 511 Beige Levi's Levi's Beige Levi's 511 Levi's Beige 511 Levi's Beige Beige Levi's Levi's nAqP6wxP
may t chiffon 'Magic' shirt longline Blue print abstract Noisy aWnv6Ov
121
122
123
124
125
126
127
128
129
130
131
Blouse Blouse Joie Joie Joie Blouse Joie Blouse Joie xPwB6fq
Green Asymmetrical Elegant Sleeveless Dress Cotton Floral Women Casual UUwqprd
134
135
136
137
138
139
140
141
142
143
dress pleat Damsel blouse Penn in a wIw6qEan
145
146
147
148
149
150
151
152
dress Phase Fern Eight embroidered Fern Phase embroidered Eight UqF8zSZ
154
155
156
157
158
159Zara Black Motorcycle Jacket Shearling Faux Moto Leather qpqw6OHg
160
161
162
163
164
165
166
167
168
169
170
171
3 Alfani Macy's Created Geo Draped Texture Sleeve 4 Cozy Cardigan Petite for qwfFwEpH
173
174
175
176
177
178
179
180
181
182
183
184
/* vi: set sw=4 ts=4: */
/*
 * whois - tiny client for the whois directory service
 *
 * Copyright (c) 2011 Pere Orga 
 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
 */
/* TODO
 * Add ipv6 support
 * Add proxy support
 */
//config:config WHOIS
//config:	bool "whois (6.6 kb)"
//config:	default y
//config:	help
//config:	whois is a client for the whois directory service

//applet:IF_WHOIS(APPLET(whois, BB_DIR_USR_BIN, BB_SUID_DROP))

//kbuild:lib-$(CONFIG_WHOIS) += whois.o

//usage:#define whois_trivial_usage
//usage:       "[-i] [-h SERVER] [-p PORT] NAME..."
//usage:#define whois_full_usage "\n\n"
//usage:       "Query WHOIS info about NAME\n"
//usage:     "\n	-i	Show redirect results too"
//usage:     "\n	-h,-p	Server to query"

#include "libbb.h"

enum {
	OPT_i = (1 << 0),
};

static char *query(const char *host, int port, const char *domain)
{
	int fd;
	FILE *fp;
	bool success;
	char *redir = NULL;
	const char *pfx = "";
	/* some .io domains reported to have very long strings in whois
	 * responses, 1k was not enough:
	 */
	char linebuf[2 * 1024];
	char *buf = NULL;
	unsigned bufpos = 0;

 again:
	printf("[Querying %s:%d '%s%s']\n", host, port, pfx, domain);
	fd = create_and_connect_stream_or_die(host, port);
	fdprintf(fd, "%s%s\r\n", pfx, domain);
	fp = xfdopen_for_read(fd);

	success = 0;
	while (fgets(linebuf, sizeof(linebuf)-1, fp)) {
		unsigned len;

		len = strcspn(linebuf, "\r\n");
		linebuf[len++] = '\n';
		linebuf[len] = '\0';

		buf = xrealloc(buf, bufpos + len + 1);
		memcpy(buf + bufpos, linebuf, len);
		bufpos += len;
		buf[bufpos] = '\0';

		if (!redir || !success) {
			trim(linebuf);
			str_tolower(linebuf);
			if (!success) {
				success = is_prefixed_with(linebuf, "domain:")
				       || is_prefixed_with(linebuf, "domain name:");
			}
			else if (!redir) {
				char *p = is_prefixed_with(linebuf, "whois server:");
				if (!p)
					p = is_prefixed_with(linebuf, "whois:");
				if (p)
					redir = xstrdup(skip_whitespace(p));
			}
		}
	}
	fclose(fp); /* closes fd too */
	if (!success && !pfx[0]) {
		/*
		 * Looking at /etc/jwhois.conf, some whois servers use
		 * "domain = DOMAIN", "DOMAIN ID "
		 * and "domain=DOMAIN_WITHOUT_LAST_COMPONENT"
		 * formats, but those are rare.
		 * (There are a few even more contrived ones.)
		 * We are trying only "domain DOMAIN", the typical one.
		 */
		pfx = "domain ";
		bufpos = 0;
		goto again;
	}

	/* Success */
	if (redir && strcmp(redir, host) == 0) {
		/* Redirect to self does not count */
		free(redir);
		redir = NULL;
	}
	if (!redir || (option_mask32 & OPT_i)) {
		/* Output saved text */
		printf("[%s]\n%s", host, buf ? buf : "");
	}
	free(buf);
	return redir;
}

static void recursive_query(const char *host, int port, const char *domain)
{
	char *free_me = NULL;
	char *redir;
 again:
	redir = query(host, port, domain);
	free(free_me);
	if (redir) {
		printf("[Redirected to %s]\n", redir);
		host = free_me = redir;
		port = 43;
		goto again;
	}
}

/* One of "big" whois implementations has these options:
 *
 * $ whois --help
 * jwhois version 4.0, Copyright (C) 1999-2007  Free Software Foundation, Inc.
 * -v, --verbose              verbose debug output
 * -c FILE, --config=FILE     use FILE as configuration file
 * -h HOST, --host=HOST       explicitly query HOST
 * -n, --no-redirect          disable content redirection
 * -s, --no-whoisservers      disable whois-servers.net service support
 * -a, --raw                  disable reformatting of the query
 * -i, --display-redirections display all redirects instead of hiding them
 * -p PORT, --port=PORT       use port number PORT (in conjunction with HOST)
 * -r, --rwhois               force an rwhois query to be made
 * --rwhois-display=DISPLAY   sets the display option in rwhois queries
 * --rwhois-limit=LIMIT       sets the maximum number of matches to return
 *
 * Example of its output:
 * $ whois cnn.com
 * [Querying whois.verisign-grs.com]
 * [Redirected to whois.corporatedomains.com]
 * [Querying whois.corporatedomains.com]
 * [whois.corporatedomains.com]
 * ...text of the reply...
 *
 * With -i, reply from each server is printed, after all redirects are done:
 * [Querying whois.verisign-grs.com]
 * [Redirected to whois.corporatedomains.com]
 * [Querying whois.corporatedomains.com]
 * [whois.verisign-grs.com]
 * ...text of the reply...
 * [whois.corporatedomains.com]
 * ...text of the reply...
 *
 * With -a, no "DOMAIN" -> "domain DOMAIN" transformation is attempted.

 * With -n, the first reply is shown, redirects are not followed:
 * [Querying whois.verisign-grs.com]
 * [whois.verisign-grs.com]
 * ...text of the reply...
 */

int whois_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int whois_main(int argc UNUSED_PARAM, char **argv)
{
	int port = 43;
	const char *host = "whois.iana.org";

	getopt32(argv, "^" "ih:p:+" "\0" "-1", &host, &port);
	argv += optind;

	do {
		recursive_query(host, port, *argv);
	}
	while (*++argv);

	return EXIT_SUCCESS;
}

Crisp linen shapes a button-front Anne Klein dress imbued with casual elegance and an easy-to-wear fit.

  • Approx. model height is 5'10" and she is wearing a size small
  • Short length; Shift silhouette
  • Mandarin collar; button closures at front
  • Inverted pleat and logo plaque at back
  • All linen
  • Dry clean
  • Imported
  • Web ID: 6386807