mirror of
				https://gitea.blesmrt.net/mikaela/scripts.git
				synced 2025-11-04 03:17:32 +01:00 
			
		
		
		
	bash/dns-ecs-debug.bash: initial commit
This commit is contained in:
		
							parent
							
								
									e42724c75e
								
							
						
					
					
						commit
						b5fa5f0b82
					
				
							
								
								
									
										23
									
								
								bash/dns-ecs-debug.bash
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										23
									
								
								bash/dns-ecs-debug.bash
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,23 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
# This script just digs domains that return information the authoritative
 | 
			
		||||
# nameserver receives which is resolver's IP and ECS if the server in
 | 
			
		||||
# question sends that.
 | 
			
		||||
# $@ takes all parameters so another DNS server can be specified
 | 
			
		||||
# e.g. ./dns-ecs-debug.bash @9.9.9.11
 | 
			
		||||
 | 
			
		||||
echo "Google $@"
 | 
			
		||||
dig +short TXT o-o.myaddr.l.google.com. "$@"
 | 
			
		||||
echo ""
 | 
			
		||||
 | 
			
		||||
echo "Akamai dualstack $@"
 | 
			
		||||
dig +short TXT whoami.ds.akahelp.net. "$@"
 | 
			
		||||
echo ""
 | 
			
		||||
 | 
			
		||||
echo "Akamai IPv6 $@"
 | 
			
		||||
dig +short TXT whoami.ipv6.akahelp.net. "$@"
 | 
			
		||||
echo ""
 | 
			
		||||
 | 
			
		||||
echo "Akamai IPv4 $@"
 | 
			
		||||
dig +short TXT whoami.ipv4.akahelp.net. "$@"
 | 
			
		||||
echo ""
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user