| 
					
				 | 
			
			
				@@ -69,12 +69,20 @@ ejabber runs under user `ejabberd` with uid/guid `9000`. All data is stored in ` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 3. Setup DNS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 To allow service discovery, following DNS records have to be created. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ``` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-im                              3600 IN A               1.2.3.4 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+im                              3600 IN A               203.0.113.113 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 *.im                            3600 IN CNAME           in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #_service._proto.name TTL class SRV priority weight port target 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 _xmpp-client._tcp.im.example.net.  3600 IN SRV    5 0 5222 im.example.net. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 _xmpp-clients._tcp.im.example.net. 3600 IN SRV   10 0 5223 im.example.net. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 _xmpp-server._tcp.im.example.net.  3600 IN SRV    5 0 5269 im.example.net. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_stun._tcp.example.net.            3600 IN SRV    5 0 3478 im.example.net. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_stun._udp.example.net.            3600 IN SRV    5 0 3478 im.example.net. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_stuns._tcp.example.net.           3600 IN SRV    5 0 5349 im.example.net. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_turn._tcp.example.net.            3600 IN SRV    5 0 3478 im.example.net. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_turn._udp.example.net.            3600 IN SRV    5 0 3478 im.example.net. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_turns._tcp.example.net.           3600 IN SRV    5 0 5349 im.example.net. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ``` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 To check the records: https://kingant.net/check_xmpp_dns/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |