Home > OS >  Keepalived virtual IP, how my ali cloud domain name resolves to the virtual IP
Keepalived virtual IP, how my ali cloud domain name resolves to the virtual IP

Time:10-01

1. Use keepalived build nginx Lord for
- server when. 98.123.1 public IP
- server couldest. 98.123.2 public IP
- server 3:47. 98.123.3 public IP # master
- server when. 98.123.4 public IP # backup
2. Below is I set of master keepalived configuration file
Vrrp_instance VI_1 {
State MASTER
Interface eth0
McAst_src_ip 172.29.88.224
Virtual_router_id 51
The priority of 101
Advert_int 2
The authentication {
The auth_type PASS
Auth_pass 1111
}
Virtual_ipaddress {
192.168.127.1
}
Track_script {
Chk_nginx
}
}
3. Can you tell me how I set this virtual_ipaddress virtual IP can use the domain name www.demo.com ali cloud can access to this 192.168.127.1 this virtual IP

CodePudding user response:

Ali cloud cloud analytical DNS can set up the binding domain name, IP

CodePudding user response:

1. The DNS record resolution to public IP
2. In what are you doing on the gateway of the mapping, the public IP port 80 is mapped to a VIP on port 80

CodePudding user response:

reference 1st floor zhouchao6 response:
ali cloud cloud analytical DNS can set up the binding domain name, IP

But I the virtual IP is!

CodePudding user response:

refer to the second floor X - I - n reply:
1. The DNS record resolution to public IP
2. In what are you doing on the gateway of the mapping, the public IP port 80 is mapped to a VIP on port 80

You mean is to modify the Linux hosts file, then put the public IP of ali cloud pointing to my set up virtual IP

CodePudding user response:

No firewall in your network?

CodePudding user response:

refer to fifth floor X - I - n reply:
no firewall in your network?

No! Ali cloud should have

CodePudding user response:

In that case, it is suggested that gives no one VPS public IP, then the elastic public IP tied to the VIP, or simply SLB,
  • Related