Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agoCannot add account to CLI 2.0.0
With CLI version 2 I cannot seem to add an account.
This is what happens:
op account add
Enter your sign-in address (example.1password.com): my.1password.com
Enter the email address for...
Former Member
3 years agoHey @"Justin.Yoon_1P",
my.1password.com
is the exact text that I am inputting.
It could be that it is a DNS issue, we're using an internal DNS server due to policies.
Does CLI v2 have a special way it resolves DNS?
When I add an acccount with version 1 and then try to login with version 2 I get the following:
op signin -f
Enter the password for [email] at my.1password.com:
[ERROR] 2022/03/18 09:44:44 failed to request.DoUnencrypted: Get "https://my.1password.com/api/v2/auth/[redacted]": dial tcp: lookup my.1password.com on [::1]:53: read udp [::1]:33617->[::1]:53: read: connection refused
with v1:
```
op signin
Enter the password for [email] at my.1password.com:
export OP_SESSION_my="[redacted]"
This command is meant to be used with your shell's eval function.
Run 'eval $(op signin my)' to sign in to your 1Password account.
Use the --raw flag to only output the session token.
```
I did make that typo on the other post:
https://1password.community/discussion/127993/cannot-add-account-to-cli-2-0-0#latest
So that one can be removed as I accidentally double posted.
When I try to resolve DNS with our internal DNS server:
```
nslookup my.1password.com [DNS IP]
Server: [DNS IP]
Address: [DNS IP]#53
Non-authoritative answer:
Name: my.1password.com
Address: 34.192.182.4
Name: my.1password.com
Address: 75.101.251.99
Name: my.1password.com
Address: 34.230.244.235
Name: my.1password.com
Address: 54.172.125.106
Name: my.1password.com
Address: 54.197.109.118
Name: my.1password.com
Address: 2600:1f18:60d5:4e01:9a5a:96db:6156:6d50
Name: my.1password.com
Address: 2600:1f18:60d5:4e02:5ea8:d1f5:8833:6473
Name: my.1password.com
Address: 2600:1f18:60d5:4e00:e020:a971:c344:3867
Name: my.1password.com
Address: 2600:1f18:60d5:4e04:9c92:c5bb:230e:b2b9
Name: my.1password.com
Address: 2600:1f18:60d5:4e03:b4cc:ceed:3591:edcb
```
When I use the IPv6 address of the DNS server
```
nslookup -query=AAAA my.1password.com [DNS v6 IP]
Server: [DNS v6 IP]
Address: [DNS v6 IP]#53
Non-authoritative answer:
Name: my.1password.com
Address: 2600:1f18:60d5:4e00:e020:a971:c344:3867
Name: my.1password.com
Address: 2600:1f18:60d5:4e04:9c92:c5bb:230e:b2b9
Name: my.1password.com
Address: 2600:1f18:60d5:4e01:9a5a:96db:6156:6d50
Name: my.1password.com
Address: 2600:1f18:60d5:4e02:5ea8:d1f5:8833:6473
Name: my.1password.com
Address: 2600:1f18:60d5:4e03:b4cc:ceed:3591:edcb
```