Answer the question
In order to leave comments, you need to log in
How does Yandex find out the real IP?
I work with Yandex XML
There is a server with ip for example 11.11.11 at the domain from which the script is running the same ip 11.11.11
I take the second ip previously issued for this server, for example 22.22.22 I add the domain, put it on this ip 22.22.22 I wait until DNS will be updated, I check the ip of the site on 2ip shows 22.22.22 I throw it on the second script, I make a request for the answer: "your ip 11.11.11 it is already used on another account."
How? How exactly does he see 11/11/11?
Or does the type 22.22.22 only work to access site2, and all outgoing requests from the server will still be with its native ip?
Answer the question
In order to leave comments, you need to log in
So the appeal to Yandex goes not through 22.22.22, but through 11.11.11. It all depends on the routing on the server.
Yandex does not look at domains, but at the IP from which they connect.
/sbin/ip ro add 213.180.204.56 via dev ethX src 22.22.22.22
Try that.
In Russian it reads like this - "on ip 213.180.204.56 go through the gateway from the ethX network card with the outgoing address 22.22.22.22"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question