Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird static node IP output on startup #2997

Closed
MysticRyuujin opened this issue Apr 19, 2021 · 2 comments · Fixed by #3009
Closed

Weird static node IP output on startup #2997

MysticRyuujin opened this issue Apr 19, 2021 · 2 comments · Fixed by #3009
Assignees

Comments

@MysticRyuujin
Copy link

So I have a static-node.json file, it's using internal DNS names and external DNS names.

But when it loads the file and logs the node, it comes back with very strange IP addresses 0.0.0.<random> for internal DNS names.

These are not valid IP addresses on my network, and a normal ping4 works fine and resolves the IP fine.

The only difference I can think of is that the internal DNS names have both IPv4 and IPv6 records (A Records and AAA Records), while the external DNS names only have IPv4 records (A Records)

E.G.

2021-04-19 09:56:44.2729|INFO|6|Static node : enode://42cee6c24bb609f6915e5ecd7b97803ea354fdfa58f1a67b9251a3ccc1ec918cddae83210580f396875f74b042764bfd9150e3fff880d288e62005e90a92a924@0.0.0.49:30301 
2021-04-19 09:56:44.2729|INFO|6|Static node : enode://6467ace4e5110d620717f1cb239afb7176eff6e97c1fc77ac9722028021b441f718434c1cd7fe113a260a72583e4c5cb4be4489bc7c8028965ce961f5116c203@0.0.0.57:30309 
2021-04-19 09:56:44.2729|INFO|6|Static node : enode://95f7047eb7ab4607204cc4071454a30b081303a21b740bad14cc6292b2e948749ec8986eeb3191f4226ef0cda0c5da37c218e2c6d30a8b253786a51db7c81394@0.0.0.80:30304 
2021-04-19 09:56:44.2729|INFO|6|Static node : enode://26e0dd076106fe6d7bdfda3d5d26b7b7c8f57cb5b27a9d00da6f30cccb56f631bfd111d71273dd6c0bbb5559455adef8c84c3f1e82d90b11d828823b14ce10a1@0.0.0.50:30302 
2021-04-19 09:56:44.2729|INFO|6|Static node : enode://7911bf927c498a71b61cf2b49b9fd804f6615dccbf5ed807abeff42521bad502c51f808e8497d5246c98750864f8bb70709441a83e3603513063e83d76a558a0@104.227.245.82:30303
@LukaszRozmej
Copy link
Member

Please run in powershell replacing google with your example DNS name:
[System.Net.Dns]::GetHostAddresses("www.google.com")
and
[System.Net.Dns]::GetHostEntry("www.google.com")
and post results

@LukaszRozmej LukaszRozmej self-assigned this Apr 22, 2021
@MysticRyuujin
Copy link
Author

PS /home/chase> [System.Net.Dns]::GetHostAddresses("www.google.com")

AddressFamily      : InterNetworkV6
ScopeId            : 0
IsIPv6Multicast    : False
IsIPv6LinkLocal    : False
IsIPv6SiteLocal    : False
IsIPv6Teredo       : False
IsIPv4MappedToIPv6 : False
Address            : 
IPAddressToString  : 2607:f8b0:4002:c02::6a

AddressFamily      : InterNetworkV6
ScopeId            : 0
IsIPv6Multicast    : False
IsIPv6LinkLocal    : False
IsIPv6SiteLocal    : False
IsIPv6Teredo       : False
IsIPv4MappedToIPv6 : False
Address            : 
IPAddressToString  : 2607:f8b0:4002:c02::67

AddressFamily      : InterNetworkV6
ScopeId            : 0
IsIPv6Multicast    : False
IsIPv6LinkLocal    : False
IsIPv6SiteLocal    : False
IsIPv6Teredo       : False
IsIPv4MappedToIPv6 : False
Address            : 
IPAddressToString  : 2607:f8b0:4002:c02::68

AddressFamily      : InterNetworkV6
ScopeId            : 0
IsIPv6Multicast    : False
IsIPv6LinkLocal    : False
IsIPv6SiteLocal    : False
IsIPv6Teredo       : False
IsIPv4MappedToIPv6 : False
Address            : 
IPAddressToString  : 2607:f8b0:4002:c02::69

AddressFamily      : InterNetwork
ScopeId            : 
IsIPv6Multicast    : False
IsIPv6LinkLocal    : False
IsIPv6SiteLocal    : False
IsIPv6Teredo       : False
IsIPv4MappedToIPv6 : False
Address            : 604821932
IPAddressToString  : 172.217.12.36


PS /home/chase> [System.Net.Dns]::GetHostEntry("www.google.com")

HostName       Aliases AddressList
--------       ------- -----------
www.google.com {}      {2607:f8b0:4002:c02::69, 2607:f8b0:4002:c02::68, 2607:f8b0:4002:c02::67, 2607:f8b0:4002:c02::6a…}

PS /home/chase> [System.Net.Dns]::GetHostEntry("www.google.com").AddressList

AddressFamily      : InterNetworkV6
ScopeId            : 0
IsIPv6Multicast    : False
IsIPv6LinkLocal    : False
IsIPv6SiteLocal    : False
IsIPv6Teredo       : False
IsIPv4MappedToIPv6 : False
Address            : 
IPAddressToString  : 2607:f8b0:4002:c02::69

AddressFamily      : InterNetworkV6
ScopeId            : 0
IsIPv6Multicast    : False
IsIPv6LinkLocal    : False
IsIPv6SiteLocal    : False
IsIPv6Teredo       : False
IsIPv4MappedToIPv6 : False
Address            : 
IPAddressToString  : 2607:f8b0:4002:c02::68

AddressFamily      : InterNetworkV6
ScopeId            : 0
IsIPv6Multicast    : False
IsIPv6LinkLocal    : False
IsIPv6SiteLocal    : False
IsIPv6Teredo       : False
IsIPv4MappedToIPv6 : False
Address            : 
IPAddressToString  : 2607:f8b0:4002:c02::67

AddressFamily      : InterNetworkV6
ScopeId            : 0
IsIPv6Multicast    : False
IsIPv6LinkLocal    : False
IsIPv6SiteLocal    : False
IsIPv6Teredo       : False
IsIPv4MappedToIPv6 : False
Address            : 
IPAddressToString  : 2607:f8b0:4002:c02::6a

AddressFamily      : InterNetwork
ScopeId            : 
IsIPv6Multicast    : False
IsIPv6LinkLocal    : False
IsIPv6SiteLocal    : False
IsIPv6Teredo       : False
IsIPv4MappedToIPv6 : False
Address            : 604821932
IPAddressToString  : 172.217.12.36

LukaszRozmej added a commit that referenced this issue Apr 22, 2021
@LukaszRozmej LukaszRozmej linked a pull request Apr 22, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants