mirror of
				https://github.com/11notes/docker-bind.git
				synced 2025-11-03 21:33:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			305 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			305 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/ash
 | 
						|
  if [ ! -f "/bind/var/root.db" ]; then
 | 
						|
    elevenLogJSON debug "no root db found, using IP of a.root"
 | 
						|
    ROOT_DB_NS=198.41.0.4
 | 
						|
  else
 | 
						|
    ROOT_DB_NS=a.root-servers.net
 | 
						|
  fi
 | 
						|
 | 
						|
  dig +bufsize=1200 +norec NS . @${ROOT_DB_NS} | egrep -v ';|^$' | egrep -v '\S.+AAAA.+|^$' | sort > /bind/var/root.db |