How do an application resolve a host inside an ipv4-over-ipv6 network? [closed] - networking

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 days ago.
Improve this question
Suppose there is an IPv4 over IPv6 network, and a client inside an IPv4 subnet wants to access a server that has both IPv6 and IPv4 addresses. However, the client only knows that it is in an IPv4 network and not an IPv6-supported network. So when the client resolves the server's hostname, it receives an IPv4 address from the +A record(Because it should specify the query-type as +A). How can the client use this IPv4 address to access the server via the IPv6-only network, considering that the subnet accesses the public network via an IPv6 router that only has a public IPv6 address?
I ask the question to chatgpt, but it didn't response a clear answer.

Related

TCP Communication Without a LAN Connection [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 months ago.
Improve this question
I want to test my TCP communication program but my PC doesn't have any Ethernet Ports. What can I use to create a testing enviroment for my program?
Any host running TCP/IP has a virtual loopback adapter that responds to IPv4 addresses 127.0.0.0/8 (often only 127.0.0.1 is used), or the IPv6 address ::1.
I'd recommend binding your listener to 0.0.0.0 (the unspecified address, representing any local address) and then connect using 127.0.0.1. For IPv6, use :: or ::0 for listening and connect to ::1.
TCP works in the exact same way as with a real address, so use ports as desired.

How to NAT source IP address of POD connecting to server on external Public IP address? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have an application running in a POD on kubernetes.
This application connects to server external Public IP address and expects the clients to have specific public IP address. The server checks the source IP address for security.
Now that my application is running inside k8s cluster it will have some local IP address.
How to fix this ... is there a way to do NAT on source IP address based in the destination server address ?
If so how to do this ?
Kubernetes uses worker nodes Internet connection. You can setup NAT for your nodes and the Kubernetes will use NAT's public IP. You can further attach multiple public IPs to NAT node and write iptables or iproute rules which can make NAT or routing decisions based on destination IP address.

How IP resolves a hostname? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I understand that the job of IP in the TCP stack, when dealing with an outgoing message, is to resolve an IP address from a host name and add this address as a header.
Is this process that IP goes through equivalent to using a tool like nslookup for a given hostname?
Your understanding is incorrect. IP doesn't know anything about device names, it only deals with IP addresses.
An application can query a DNS server or a hosts file to resolve a name into an IP address. This must be done prior to using IP to forward a packet since IP can only use an IP address. Tools, like you mention, and other applications, such as browsers, query a DNS server (requires you have the IP address of a DNS server configured) or use a hosts file to resolve the name to an IP address.

How can i connect to a system in different lan? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am new to networking concepts. i know the basics of public and private ip. If two systems are in different LAN and i want to connect to one system from other and i need to send data. I've already tried with command line search, it will give only the private ip? Even if i know the public ip, how can i specify my destination system (there could be more than one system coming under the same public ip right?)
You have to configure on router or firewall of the network where the ftp server is a NAT or a PAT, in order to map a public IP address to the private address that you obtain with the netstat command.
Over than this you have to configure firewall rules on the network of the ftp server to allow inbound ftp connection to the public ip address. You can restrict this connection for the public ip used by the client.
In the network where the client is, you have to allow the client to estabilish ftp connection with the public ip address of the ftp server. You have to do it on the firewall or the router of the client network.
It is not possible to give you more details about it, the detailed implementation depends on your network topology and network devices.
Regards
Giova

ip alias on the same nic with different subnets on Windows 2008R2 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a Windows 2008R2.
On a NIC, I have 3 ip aliases :
- two have the same subnet and it works well
- the third is on a different subnet
I can ping the third ip.
I can see the packets who are coming on this ip with Wireshark.
I have a service who list on the 0.0.0.0 address.
When I try to connect to this service, it is like the packet are not going to the service.
I tried with netcat also in listen mode and I had the same problem (If I connect via the loopback ip, netcat receive my datas...)
Is the ip aliases have to be on the same subnet on the same nic ?
Thanks in advance
Best regards
This will never work. I tried with an additionnal nic and it worked

Resources