shadowsocks-android icon indicating copy to clipboard operation
shadowsocks-android copied to clipboard

Cannot connect to server by name, only by numeric IP address

Open ralphrmartin opened this issue 8 years ago • 3 comments

Please read FAQ then answer these questions before submitting your issue. Thanks!

Environment

  • Android version: 8.1
  • Device: OnePlus 5
  • Shadowsocks version: 4.5.7
  • Last version that did not exhibit the issue (if applicable): Unknown

Configuration

Put an x inside the [ ] that applies.

  • [*IPv4 server address
  • [ ] IPv6 server address
  • [*] Client IPv4 availability
  • [ ] Client IPv6 availability
  • Encrypt method: aes-256-cfb
  • Route
    • [* All
    • [ ] Bypass LAN
    • [ ] Bypass China
    • [ ] Bypass LAN & China
    • [ ] GFW List
    • [ ] China List
    • [ ] Custom rules
  • [*] IPv6 route
  • [ ] Apps VPN mode
    • [ ] Bypass mode
  • Remote DNS: 8.8.8.8
  • [*] DNS Forwarding
  • Plugin configuration (if applicable):
  • [ ] Auto Connect
  • [ ] TCP Fast Open
  • If you're not using VPN mode, please supply more details here:

What did you do?

(1) Tried to open a server by name, e.g. ss-server.example.com (2) Tried to open the same server by numeric address, e.g. 1.2.3.4

What did you expect to see?

server connected in both cases

What did you see instead?

Server does not connect in case (1), but does connect in case (2).

It would be useful in profiles to allow servers to be specified by name, as well as by numeric address: my server has a dynamic DNS address. It's name never changes, but its numerica address frequently does.

ralphrmartin avatar May 04 '18 08:05 ralphrmartin

It looks the client got an old IP of your DDNS enabled hostname.

Double check your DNS records and make sure the TTL is small enough.

madeye avatar May 06 '18 03:05 madeye

It could be a DNS issue. Or the domain is in the list of DNS pollution.

kalonelee avatar May 06 '18 04:05 kalonelee

OK, thanks. My DDNS updater may be at fault. Sorry to waste your time.

ralphrmartin avatar May 06 '18 07:05 ralphrmartin