This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11235|Reply: 0

Intelligent domain name wildcard DNS lookup

[Copy link]
Posted on 1/23/2021 12:06:44 PM | | | |
When deploying a cluster, some services need to set a node address, usually a domain name. We need to modify the hosts file of the server and set the domain name resolution. If you query certain domain names with IP addresses without modifying hosts, the service will return that IP address.

Scene

ip-2001-500-20-3ab8--68-1030.example.com Convert to 2001:500:20:3ab8::68:1030 instead of adding records to the DNS one by one, just point to the NS service and use it.

Domain Name resolution IP service

  • https://nip.io/
  • https://sslip.io/
  • http://xip.io/


nip.io Example

nip.io allows you to do this by mapping any IP address to a hostname using the following format:

  • 10.0.0.1.nip.io mapped to 10.0.0.1
  • 192-168-1-250.nip.io Map to 192.168.1.250
  • app.10.8.0.1.nip.io mapped to 10.8.0.1
  • app-37-247-48-68.nip.io mapped to 37.247.48.68
  • customer1.app.10.0.0.1.nip.io Map to 10.0.0.1
  • customer2-app-127-0-0-1.nip.io mapped to 127.0.0.1


Test


ping 10.0.0.1.nip.io
ping myapp.127.0.0.1.nip.io
pingwww.itsvse.com.192.168.0.1.nip.io


Browser Testing:https://127.0.0.1.nip.io:44307/







Previous:asp.net Core 3.1 command line to start the dynamic listening port
Next:asp.net core 3.1 enables the website Brotli compression algorithm
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com