- dns, DrayOS 4, imported, multi_wan, wan_failover, vigor3900, inbound_load_balance
WAN Inbound Load Balance in Failover mode by Vigor3900
Inbound Load Balance is a feature that allows Vigor3900/2960/300B to be the authoritative name server for your domain names. The router can automatically reply its WAN IP to the internet clients asking about your domain names. Furthermore, it can do Load Balance or Failover if the router has multiple WAN interfaces. This note is going to demonstrate how to use Inbound Load Balance in Failover mode. In the following example, we want the router to respond with its WAN2 IP in the DNS answers whenever WAN2 is available, and use WAN1's IP as failover.
NOTE: For this setup to work for internet clients, the DNS server of the upper-level domain (which is draytek.com in this example) needs an NS record to redirect the DNS queries for your hostname to this router.
Set up Inbound Load Balance
1. Go to WAN >> Inbound Load Balance, enable Inbound Load Balance and click Add to add a profile for your domain name.
2. Configure the Inbound Load Balance profile:
- Enable the profile
- Enter the Domain Name that you own.
- Select Mode to 'Failover'
- Set the Priority Setting for each interface. The highest priority is 'Top,' and the lowest is '5. In this example, we want WAN2 to be the primary interface and WAN1 to be the failover.
- Click Add, enter both WAN1 and WAN2 and set the same weight for them in the Interface Mapping/Weight.
- Click Apply to save the settings.
3. Furthermore, we can set Vigor3900 to answer the WAN IP of the other router, to distribute the inbound traffic.
- Set the Priority of interface
externin the Priority Setting. - Select 'Manual Input' in Alias Setting.
- Click Add, enter the Alias IP address and set the Weight.
4. On Detail tab, you may edit the DNS Parameter or add Resource Records to give more information about this domain name.
Verify the settings
Now, when the router receives a DNS query for the domain "fae.draytek.com", it will always reply with its WAN2 IP.
When WAN2 is down, the clients will get the IP of WAN1.
Once WAN2 resume its service, they will get the IP of WAN2 again.
Add Sub-domains
In each domain name profile, you may add up to 20 sub-domains. To do this, click Add in the domain name profile, enter the hostname, and add the interface which can be mapped to this sub-domain.
After clicking apply, the router will also reply to the DNS queries asking about ftp.fae.draytek.com.
