hakrevdns icon indicating copy to clipboard operation
hakrevdns copied to clipboard

modification

Open ipk1 opened this issue 4 years ago • 4 comments

hey, is there a way that the last "period" when checking can be omitted in the results? currently using sed to remove it. 3.0.84.109 twofasapi.paypal.com. 173.0.84.107 cupapiserv.paypal.com. 173.0.84.113 mpltapi.paypal.com. 173.0.84.116 cld-edge-origin-api.paypal.com. 173.0.84.114 www-carrier.paypal.com. 173.0.84.117 api-aa-3t.paypal.com. 173.0.84.120 trinityadminauth.paypal.com. 173.0.84.115 phy-edge-origin-api.paypal.com. 173.0.84.119 cors.api.paypal.com. 173.0.84.118 appmanagement.paypal.com. 173.0.84.122 proxo.paypal.com. 173.0.84.121 ca-webapi-vip-

thanks ipk1

ipk1 avatar Jun 15 '20 10:06 ipk1

Hey ipk1!

All domains are still totally valid with the . on the end, but it shouldn't be too hard to remove them :)

hakluke avatar Jun 15 '20 12:06 hakluke

It's already being done if called with Domain option if opts.Domain { fmt.Println(strings.TrimRight(a, ".")) }, so it may be worth changing the other case for consistency sake?

pczajkowski avatar Jun 15 '20 12:06 pczajkowski

Aaaah I see, yeah that's a bug.

On Mon, 15 Jun 2020, 22:33 Piotr Czajkowski, [email protected] wrote:

It's already being done if called with Domain option if opts.Domain { fmt.Println(strings.TrimRight(a, ".")) }, so it may be worth changing the other case for consistency sake?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hakluke/hakrevdns/issues/12#issuecomment-644106868, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKT6Y2UH7CZ6J5IKRBJKCTRWYII5ANCNFSM4N6BAN2Q .

hakluke avatar Jun 15 '20 12:06 hakluke

is there a way that the last "period" when checking can be omitted in the results? currently using sed to remove it.

Yes! I was facing the same issue, so I implemented the -d flag to trim the trailing ., so that its easier to pass the output for further processing.

hackerpain avatar Jun 24 '20 21:06 hackerpain